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
Haxe 4.3.0 and HXCPP 4.3.2 prodce APK that crashes on Android 10 #2631
Comments
Which NDK version are you using? |
Tried with two build configurations: Config 1 (I put NDK 24.0.8215888 originally here, but it was a mistake) Config 2 Both configs |
NDK r21e is the newest known NDK to work with Lime/hxcpp right now, and 24 is definitely expected to fail. We intend to support newer NDKs in the future, though. Before r21e, r15c was usually our recommendation, so that might be worth trying too. It's certainly possible that something needs to be fixed in Lime to properly support Haxe/hxcpp 4.3, though. Personally, I haven't had a chance to fully test things out. |
Oh actually it was a mistake. I do have NDK 24 installed, but NDK 21 is used for Android build. Sorry for the mess, the NDK in config 1 is 21.4.7075529. Will edit the original post too.
Thanks, it's actually easy to test since the issue can be reproduced with an emulator, hope it can be addressed. On our end we just don't have enough understanding to try to fix it :) |
Use r15c is ok? |
Tested, use |
Does "OK" mean that the APK doesn't crash, or that it compiles? :) |
Yes, it can compile normally and this error will not occur: |
We actually build lime.ndll with NDK r15c because this is the only known NDK that works for it. For a long time, r15c was also the only known good NDK for building apps too. My discovery that r21e worked for apps is relatively recent. It's unfortunate that it doesn't seem to work with Haxe 4.3. In Lime 8.2.0, the a number of dependencies and things have been updated, and we found that we could build lime.ndll with r21e. Presumably, when using Lime 8.2.0, you will be able to build an app with r21e too. You could try a nightly build of Lime from the 8.2.0-Dev branch, if you want to test things out. Lime 8.2+ should be able to start using newer NDKs than r21e after the next hxcpp update because HaxeFoundation/hxcpp#992 was merged recently (but it hasn't been released to Haxelib yet). |
Thanks! :) |
Was the issue actually fixed? |
@pozirk As I recall, you won't get the __atomic error as long as you use NDK r15c. For those who don't mind living on the edge, using the 8.2.0-Dev branch of Lime and the latest master branch of hxcpp allows you to bypass NDKs that cause the __atomic error and use the latest NDK r25. |
I’ve updated haxe to 4.3.0 and then OpenFL, Lime, HXCPP and other haxelibs to the latest versions.
Then compiled PiratePig example that is a part of OpenFL samples (GitHub - openfl/openfl-samples: Haxelib-based OpenFL sample projects).
The resulting build crashes on launch on Redmi 9C NFC (Android 10) with the following error:
The same build works fine on other devices that we have (Android 11+).
The Android build enviroment (NDK, Java and such) was the same as before the Haxe update and it worked well before.
Switching to older versions of OpenFL and Lime doesn't fix the issue. Switching to the previous hxcpp version is not possible with the new Haxe version installed.
The log is blow (filtered for the PID).
Also posted at openfl.org, sorry for the duplicate, just wanted to make sure this issue is noticed.
The text was updated successfully, but these errors were encountered: