-
Notifications
You must be signed in to change notification settings - Fork 129
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Crashes with iOS 12.3.1 on XCode 10.1 #122
Comments
@ericwlange Any thoughts on this please ? Has anyone come across this issue ? Thanks! |
I am not finding a lot of information from Googling this error. Are you using version 0.6.2 of LiquidCore? The reason I ask is because of this thread: https://forums.xamarin.com/discussion/155919/ios-crash-using-testflight-release-configuration It was caused because a library was using non-public functions. Versions 0.6.1 and below used private JavaScriptCore API calls (see #108), which is fixed in the latest release. Otherwise, can you post the entire stack trace? |
@ericwlange - We are currently using 0.6.2. |
Hey @ericwlange , we are using 0.6.2. Please help us on this issue!!! Thanks in advance. |
Here is the complete crashlog from the device. |
@umangkathuria @Pooja16Fartyal Unfortunately, there isn't a lot of information in the crash logs, and the change log for 12.3.1 does not seem in any way relevant: https://support.apple.com/en-us/HT209084#1231 I will try to see what's happening, but at the moment I have no timeframe to give. If you discover anything else that may seem remotely useful, please add them to this thread. |
@umangkathuria @Pooja16Fartyal Also, can you try creating the IPA in debug mode and see if you get the same result? The crash logs will have a better stack trace. |
@ericwlange , We tried by creating iPA in debug mode but unfortunately the result is same. Thread 10 Crashed: Can you please check the issue and help us resolve it quickly? |
Hey @ericwlange Did you get a chance to look into this issue? Thanks in advance for help! |
@ericwlange - Just to check, while we are creating the IPA in Debug mode, is there a way to get more readable logs from LiquidCore's side. Some configuration we could add to get more logs for the crash from LiquidCore side. i.e. using LiquidCore in some equivalent develop/debug mode to understand the crash better. Any help is appreciated! |
@umangkathuria @Pooja16Fartyal @praveenkg85 My basic debugging plan for things like this is to add console debug messages ( |
Is this only failing on 12.3.1? What about 12.4? My Xcode does not even give me the option to install the 12.3.1 runtime. I ran my test app from an .ipa (both release and debug modes) on 12.4 and it ran with no trouble. Can you validate if this issue only exists on 12.3.1 or other versions as well? I don't have any hardware with that version, unfortunately. |
Actually, I take that back. I found that I have an iPad with 12.3.1 on it. I am also not getting any crashes. Do you have a simple app that can demonstrate the crash? |
@umangkathuria @praveenkg85 Is this the process you followed? |
@ericwlange After creating and installing the IPA in the device, as soon as we hit the "Call JS Function" button, the application crashes. The expected scenario would be to get an alert on screen showing the response received from the JS. If you are able to get the success response, please do let us know the exact configuration you kept for creating the IPA. Just want to re-iterate that the application doesn't crash when we install it directly in a device, i.e. by not creating the IPA and directly connecting the device and then installing it on it. Please let us know if you need any more information. Thanks for the help! |
@ericwlange - Regarding the process for builds, we tried both release and debug and both had same logs and they both crashed. I can't share the IPA directly due to profiling issues. May be the sample code will help us understand better where the issue lies. |
@umangkathuria My iPad updated itself, so I no longer have 12.3.1, but I built, archived, exported and copied the IPA to my 12.4 device and it worked just fine. ¯\(ツ)/¯ |
I also tried release mode, same result. What I did: XCode 10.3 (10G8) Select Liquidcore_SampleApp > General iOS Device SUMMARY Export -> Export Devices -> Click '+' Icon showed up on my iPhone It worked. No crash. |
@ericwlange thanks for a quick response. |
Build procedure:
Opened workspace, and then used process described above. |
I will send the ipa by email |
Nevermind, I zipped it here. |
thanks, will let you know if its a success or not! |
hey @ericwlange ! The IPA couldn't be installed since I keep getting "A Valid provisioning file was not found for this executable". Or any way this IPA can be installed ? |
I think you will have to give me the UDID of the device you want it installed on and I can add it to my provisioning profile. Apple doesn't make this easy. |
@ericwlange - is [email protected] the correct email address? or do you want me send the UDID on some other ID ? |
@umangkathuria Yes, please send any UDIDs that you would like me to provision to the flicket email. I think I can add them dynamically and shouldn't have to recreate the ipa, but not 100% sure. |
@ericwlange Sent UDID in your email. Thank you so much for all the help and the extra effort! Appreciate it! |
@umangkathuria Ok, please give this one a try. |
This worked just fine! iOS 12.3.1 and No Crashes at all. I need to figure out the difference in the build process to understand the root cause. Will post my findings here in case someone else faces the same issue. Thanks a lot! |
@umangkathuria Very confusing. I would be interested in what you find. |
Eric, after following the steps you mentioned above, my build also worked fine. Could this be specific to LiquidCore, may be at a lower level or some library that we use. I remember we had some issues with iOS 12.2 where in JavaScriptCore Library got updated and a few symbols were added(kJSTypeSymbol). Could these be related ? |
Hard to tell. I can try to replicate this on 10.1 and see if I can track down the issue. BUT, is there any reason to do so? Is there some reason (with clients, perhaps?) why you need to work with 10.1 and not upgrade to the latest XCode? For now, the best workaround is just to upgrade to the latest XCode. |
Yes, that's the reason I asked. There are certain issues due to which I can't upgrade to 10.3 for now. |
@ericwlange - Any update ? |
@umangkathuria No sorry, I have not had a chance to look at it. The priority is lower for me now, considering there is a viable workaround for most use cases. |
Closing. |
Hi,
I have been facing an issue with the latest iOS version- 12.3.1.
I have a simple application which uses LiquidCore to communicate with the NodeJS layer of the app. We ran the same ipa file on different versions of iOS, on iOS12.3.1 we found that the application launches successfully.. and there after as soon as I click the button which internally calls JavaScript code, the application crashes.
I tried looking into the logs and console of the device, and this is the error message that we get at the time application crash-
Can't get most elevated app state from dictionary {
BKSApplicationStateExtensionKey = 0;
SBApplicationStateDisplayIDKey = “com.my.bundle.identifier”;
SBApplicationStateKey = 0;
SBApplicationStateProcessIDKey = 1595;
SBApplicationStateRunningReasonsKey = (
{
SBApplicationStateRunningReasonAssertionIdentifierKey = Resume;
SBApplicationStateRunningReasonAssertionReasonKey = 10000;
}
);
}
I ran the same app while my device connected i.e. without creating the iPA, and the application runs fine.
Its just that whenever I use the ipa, the application crashes the very moment I call the JavaScript code.
Can anyone help on this?
Has anyone seen this issue ?
Any thoughts or ideas are welcomed!
Thanks in advance for the help.
@ericwlange @Neusoft-Technology-Solutions @j0j00
The text was updated successfully, but these errors were encountered: