Tableview doesn't load with error "Failed to load resource" on Android 2.2 - titanium

My app works fine on the iPhone simulator. However, when I launch the Android 2.2 simulator, the app loads (all the tabs appear) but then it crashes before my TableView appears. Here's the error:
E/TiJSError( 269): (main) [644,1030] ----- Titanium Javascript Runtime Error -----
E/TiJSError( 269): (main) [1,1031] - In ti:/titanium.js:178,19
E/TiJSError( 269): (main) [0,1031] - Message: Uncaught Error: Failed to load resource, Java exception was thrown.
E/TiJSError( 269): (main) [1,1032] - Source: source = assets.readAsset(assetPath);
E/V8Exception( 269): Exception occurred at ti:/titanium.js:178: Uncaught Error: Failed to load resource, Java exception was thrown.
Does this have anything to do with memory? How can I fix this?
Thanks!!

I had a similar problem, and it turned out to be a memory issue.
Try inserting the following line into tiapp.xml:
<property name="ti.android.threadstacksize" type="int">32768</property>
Then clean the Android build folder and run the app again. I hope it works for you!

Related

Make sure the correct deployment target has been selected for its compilation in Xcode

I am using the following desiredCapabilities in my codeceptconf.js file.
Appium: { // IOS local Simulator iPhone 13
app: "./ipa/arvApp.app",
platform: "iOS",
desiredCapabilities: {
deviceName: "iPhone 13",
//os_version: "15.5",
"automationName": "XCUITest",
autoAcceptAlerts: 'true' ,
autoDissmissAlerts: 'true',
},
}
Facing the below error -
App Launch And Login options. --
Navigate to just browse in app and Login with Gmail
2022-10-04T17:44:00.627Z ERROR webdriver: Request failed with status 500 due to
unknown error: An unknown server-side error occurred while processing the command.
Original error: Simulator architecture is unsupported by the
'/Users/jule/Desktop/arive/automation/ipa/ariveApp.app' application. Make sure the
correct deployment target has been selected for its compilation in Xcode.
2022-10-04T17:44:00.628Z ERROR webdriver: unknown error: An unknown server-side
error occurred while processing the command. Original error: Simulator architecture is unsupported by the '/Users/jule/Desktop/arive/automation/ipa/ariveApp.app' application. Make sure the correct deployment target has been selected for its compilation in Xcode.
at getErrorFromResponseBody (/Users/jule/Desktop/arive/automation/node_modules/webdriver/build/utils.js:197:12)
at NodeJSRequest._request (/Users/jule/Desktop/arive/automation/node_modules/webdriver/build/request/index.js:166:60)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at async startWebDriverSession (/Users/jule/Desktop/arive/automation/node_modules/webdriver/build/utils.js:67:20)
at async Function.newSession (/Users/jule/Desktop/arive/automation/node_modules/webdriver/build/index.js:46:45)
at async Object.remote (/Users/jule/Desktop/arive/automation/node_modules/webdriverio/build/index.js:77:22)
at async Appium._startBrowser (/Users/jule/Desktop/arive/automation/node_modules/codeceptjs/lib/helper/Appium.js:232:24)
Error: Can't connect to WebDriver.
Error: Failed to create session.
An unknown server-side error occurred while processing the command. Original error: Simulator architecture is unsupported by the '/Users/jule/Desktop/arive/automation/ipa/ariveApp.app' application. Make sure the correct deployment target has been selected for its compilation in Xcode.
Please make sure Selenium Server is running and accessible
I wait for element 30
✖ FAILED in 13ms
Please help to resolve this error.
Thanks

Error: Uncaught (in promise): ChunkLoadError: Loading chunk 24 failed

We have migrated application from angular 4.4 to 8.2.
And also we implemented lazy loading, it seems working fine in local environment with (PROD mode).
But after deployment in different server, it throws chunk files not found.
The command we used :
ng build --prod=true --cross-origin=anonymous --source-map=false
ng build --prod=true --cross-origin=anonymous --source-map=false
Error: Uncaught (in promise): ChunkLoadError: Loading chunk 24 failed.

Failed to update auto layout status / Failed to render instance

I try to run friend old app that written in objective c .
my friend develop this in Xcode 5 ,I try to run this app in 7.3.1 .
I get this error:
file:///Users/myname/Desktop/myapp%20test%201/after%20coca%20update/myapp/Base.lproj/Main.storyboard: error: IB Designables: Failed to update auto layout status: The agent raised a "NSInternalInconsistencyException" exception: Could not load NIB in bundle: 'NSBundle (loaded)' with name 'myappStepper'
file:///Users/myname/Desktop/myapp%20test%201/after%20coca%20update/myapp/Base.lproj/Main.storyboard: error: IB Designables: Failed to render instance of myappStepper: The agent threw an exception.
I solved this with change in myappStepper.xib "Open in" from Xcode 5.0 to Xcode 6.0.
Like the storyboard.xib.

TouchID crash on some iPhone 5S devices

My app crashes on some iPhone 5S device (only some) with the error:
Fatal Exception: NSInternalInconsistencyException Unexpected error:
Error Domain=NSCocoaErrorDomain Code=4097 "The operation couldn’t be
completed. (Cocoa error 4097.)" (connection to service named
com.apple.CoreAuthentication.daemon) UserInfo=0x174461dc0
{NSDebugDescription=connection to service named
com.apple.CoreAuthentication.daemon}
The line which breaks the app is the following:
LAContext().canEvaluatePolicy(LAPolicy.DeviceOwnerAuthenticationWithBiometrics, error: nil)
Is this an Apple bug?
What am I doing wrong here?
It's an iOS bug. When an API returns a 4097 error, it usually means that the system daemon that was responsible for handling your request crashed. You can look for crash logs from the device and file a bug with Apple.

How to debug Core Data validation error code zero (0)?

When I call save on the Core Data managed object context while running the application in the simulator (iOS 5.1.1, XCode 4.4.1) I get two of the following validation errors:
Error Domain=CollectionItemError Code=0 "The operation couldn’t be completed. (CollectionItemError error 0.)"
Since there is an error code of zero (0) I'm not sure how to debug the problem. Suggestions?