love2d / love-android

Android build setup for LÖVE.
https://love2d.org
Other
200 stars 70 forks source link

Version 11.5 does not work on Android 9 #260

Closed risejs closed 8 months ago

risejs commented 9 months ago

ABI: armeabi-v7a Test: LabyrinthOfLegendaryLoot-1.12.love

MikuAuahDark commented 9 months ago

Could you give more information about what exactly doesn't work?

risejs commented 9 months ago

Install love-11.5-android.apk

  1. Tap "LÖVE for Android" > Nothing happens (version 11.4 works here)
  2. Tap "LÖVE Loader" > Select "Test.love" (any .love) > Nothing happens
  3. Tap "Test.love" > Select "LÖVE for Android" > Nothing happens (version 11.4 works here)

PS: After installing the apk the folder "/Android/data/org.love2d.android" is not created.

MikuAuahDark commented 9 months ago

It works as expected in here (using LÖVE Loader) Screenshot_20231210_174511

risejs commented 9 months ago

It doesn't work on Android 9 armeabi-v7a.

MikuAuahDark commented 9 months ago

Could you provide video showing how you atempted to launch the game? If privacy is a concern, feel free to DM me in Discord (please don't send friend request) by joining the LOVE Discord first.

risejs commented 9 months ago

adb logcat --buffer=crash fatal_exception_main

MikuAuahDark commented 9 months ago

That explains everything. I think it's related to #258. Can you try the GitHub-compiled binaries from a81931be2cbe39181bc8d7db453eb4f1203e8c98? You need to uninstall existing app first.

risejs commented 9 months ago

I can't, only apk.

MikuAuahDark commented 9 months ago

Uh, yes? Install the love-android-debug.apk in https://github.com/love2d/love-android/actions/runs/7157034022

risejs commented 9 months ago

No, the same crash.

risejs commented 9 months ago

However, 11.5 works on Android 8 arm64-v8a (Tablet)...

MikuAuahDark commented 9 months ago

That crash seems to be very rare and weird. There's only 1 reported crash in SO: https://stackoverflow.com/q/57922110

Searching over the internet only gives that exact result.

MikuAuahDark commented 8 months ago

8a3d635cdb2a32feff5fb57f65b8469e48f74152 probably solve the issue. Can you try installing love-android-debug.apk in https://github.com/love2d/love-android/actions/runs/7306340688? Again, you need to uninstall existing application first.

risejs commented 8 months ago

No, the same.

MikuAuahDark commented 8 months ago

I think I fixed it in d1f74df6866a3697146fec401683e880b6d9ce46. Try it in here https://github.com/love2d/love-android/actions/runs/7319055241, same instructions.

risejs commented 8 months ago

Oh, yeah! It's working. Thank you.

Should I now only use the debug version until the next release?

MikuAuahDark commented 8 months ago

I plan to release hotfix version soon.

ydw222333 commented 5 months ago

main version have the same crash in Android10. use "// setIntent(null);" can fix it; why you still use "setIntent(null);" in main version? Don't set the intent to null, only set the intent data to null.

MikuAuahDark commented 5 months ago

Do you get the exact same crash in Android 10 with exact stack trace? If not, then please create new issue.

The main branch now correspond to upcoming LOVE 12.0. For LOVE 11 branch, checkout 11.x branch.