OS: Android 8.0 (Samsung Galaxy 9+)
Version: 0.1.2
Commit/Build: ad4e50d
With the RCT1 and RCT2 files in the right place, the correct locations of these files set in the config.ini and the most recent version of the OpenRCT2-app installed from openrct2.org, OpenRCT2 crashes everytime at startup.
Edit: this seems to be a regression:
On my Samsung Galaxy S8+, which I still have and is also updated to Adroid Oreo/8.0, runs an older version of OpenRCT2 perfectly, but I don't know which commit. But after updating it to the most recent version, also on this phone OpenRCT2 crashes every time at startup of the app. So, this seems not to be an issue with Android 8.0 but a regression in OpenRCT2.
Any chance you could get us a log, e.g. via adb logcat?
Or bisect?
I can see it reproduces on bde913ee1660922a309d30a6430a137fc9757cfd
@janisozaur To be honest, I don't know exactly how to do that. But it seems like you already found the commit that seems to have caused this...
pid: 9848, tid: 847, name: SDLThread >>> website.openrct2.debug <<<
signal 6 (SIGABRT), code -6 (SI_TKILL), fault addr --------
Abort message: 'thread.cc:2016] No pending exception expected: java.lang.UnsatisfiedLinkError: No implementation found for long website.openrct2.ZipArchive.allocBytes(byte[], int) (tried Java_website_openrct2_ZipArchive_allocBytes and Java_website_openrct2_ZipArchive_allocBytes___3BI)'
x0 0000000000000000 x1 000000000000034f x2 0000000000000006 x3 0000000000000008
x4 0000202020232a3d x5 0000202020232a3d x6 0000202020232a3d x7 3d2a23202020ffff
x8 0000000000000083 x9 5a60e33c8e43ca0c x10 0000000000000000 x11 0000000000000001
x12 ffffffffffffffff x13 ffffffffffffffff x14 ffff000000000000 x15 ffffffffffffffff
x16 00000075f53122e8 x17 00000075f52b3d00 x18 0000000000000020 x19 0000000000002678
x20 000000000000034f x21 00000075eae326c0 x22 0000000000000019 x23 0000000000000264
x24 0000000000000071 x25 00000075eae65300 x26 0000000000000263 x27 0000000000000059
x28 00000075d66052f1 x29 00000075d6604ff0 x30 00000075f5267e14
sp 00000075d6604fb0 pc 00000075f52b3d08 pstate 0000000060000000
backtrace:
#00 pc 0000000000069d08 /system/lib64/libc.so (tgkill+8)
#01 pc 000000000001de10 /system/lib64/libc.so (abort+88)
#02 pc 00000000004364bc /system/lib64/libart.so (_ZN3art7Runtime5AbortEPKc+528)
#03 pc 0000000000436bcc /system/lib64/libart.so (_ZN3art7Runtime7AborterEPKc+24)
#04 pc 000000000052123c /system/lib64/libart.so (_ZN7android4base10LogMessageD1Ev+900)
#05 pc 0000000000461108 /system/lib64/libart.so (_ZNK3art6Thread24AssertNoPendingExceptionEv+1144)
#06 pc 0000000000127c68 /system/lib64/libart.so (_ZN3art11ClassLinker9FindClassEPNS_6ThreadEPKcNS_6HandleINS_6mirror11ClassLoaderEEE+64)
#07 pc 0000000000310550 /system/lib64/libart.so (_ZN3art3JNI9FindClassEP7_JNIEnvPKc+1432)
#08 pc 000000000010cd28 /data/app/website.openrct2.debug-yTI9y2R9N2CcMKUbqFuQlQ==/lib/arm64/libopenrct2.so (_ZN3Zip7TryOpenEPKc10ZIP_ACCESS+80)
#09 pc 000000000039df40 /data/app/website.openrct2.debug-yTI9y2R9N2CcMKUbqFuQlQ==/lib/arm64/libopenrct2.so (_Z17LoadTitleSequencePKc+104)
#10 pc 00000000003a59fc /data/app/website.openrct2.debug-yTI9y2R9N2CcMKUbqFuQlQ==/lib/arm64/libopenrct2.so (_ZN19TitleSequencePlayer5BeginEm+76)
#11 pc 000000000039d624 /data/app/website.openrct2.debug-yTI9y2R9N2CcMKUbqFuQlQ==/lib/arm64/libopenrct2.so (_ZN11TitleScreen15TryLoadSequenceEb+92)
#12 pc 000000000039d824 /data/app/website.openrct2.debug-yTI9y2R9N2CcMKUbqFuQlQ==/lib/arm64/libopenrct2.so (_ZN11TitleScreen4LoadEv+176)
#13 pc 00000000000e48e8 /data/app/website.openrct2.debug-yTI9y2R9N2CcMKUbqFuQlQ==/lib/arm64/libopenrct2.so (_ZN8OpenRCT27Context6LaunchEv+100)
#14 pc 00000000000e3c60 /data/app/website.openrct2.debug-yTI9y2R9N2CcMKUbqFuQlQ==/lib/arm64/libopenrct2.so (_ZN8OpenRCT27Context11RunOpenRCT2EiPPKc+28)
#15 pc 0000000000036448 /data/app/website.openrct2.debug-yTI9y2R9N2CcMKUbqFuQlQ==/lib/arm64/libopenrct2-ui.so (main+216)
#16 pc 000000000009dbc8 /data/app/website.openrct2.debug-yTI9y2R9N2CcMKUbqFuQlQ==/lib/arm64/libopenrct2-ui.so (Java_org_libsdl_app_SDLActivity_nativeInit+320)
#17 pc 000000000003517c /data/app/website.openrct2.debug-yTI9y2R9N2CcMKUbqFuQlQ==/oat/arm64/base.odex (deleted) (offset 0x21000)
@Gymnasiast why did you remove this from 0.1.2? Is not launching not enough of a showstopper?
It's Android. It isn't exactly high priority, and IntelOrca wanted to remove issues from the milestone. Feel free to re-add it if you consider this a showstopper.
Can we get a volunteer to investigate this?
This was a regression introduced in 778ba466c5c5ebcee5fc0b771723c92cde175545
Nice work @janisozaur :) Will test it tomorrow.
Most helpful comment
This was a regression introduced in 778ba466c5c5ebcee5fc0b771723c92cde175545