PojavLauncher icon indicating copy to clipboard operation
PojavLauncher copied to clipboard

[BUG] Pojav Launcher crashing

Open MazeXP opened this issue 2 years ago • 3 comments

Describe the bug

After launching 1.19.2 instance the complete app is crashing when loading has finished.

The log file and images/videos

Log from Logcat:

11-04 14:30:43.780 30369 30369 F libc    : Fatal signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x0 in tid 30369 (ojavlaunch:game), pid 30369 (ojavlaunch:game)
11-04 14:30:44.183 30396 30396 F DEBUG   : *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
11-04 14:30:44.183 30396 30396 F DEBUG   : Build fingerprint: 'samsung/r8qxeea/r8q:12/SP1A.210812.016/G781BXXU4FVI4:user/release-keys'
11-04 14:30:44.183 30396 30396 F DEBUG   : Revision: '6'
11-04 14:30:44.183 30396 30396 F DEBUG   : ABI: 'arm64'
11-04 14:30:44.183 30396 30396 F DEBUG   : Processor: '7'
11-04 14:30:44.183 30396 30396 F DEBUG   : Timestamp: 2022-11-04 14:30:43.838182789+0100
11-04 14:30:44.183 30396 30396 F DEBUG   : Process uptime: 1s
11-04 14:30:44.183 30396 30396 F DEBUG   : Cmdline: net.kdt.pojavlaunch:game
11-04 14:30:44.183 30396 30396 F DEBUG   : pid: 30369, tid: 30369, name: ojavlaunch:game  >>> net.kdt.pojavlaunch:game <<<
11-04 14:30:44.183 30396 30396 F DEBUG   : uid: 10584
11-04 14:30:44.184 30396 30396 F DEBUG   : signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x0
11-04 14:30:44.184 30396 30396 F DEBUG   : Cause: null pointer dereference
11-04 14:30:44.184 30396 30396 F DEBUG   :     x0  000000799c78e010  x1  000000799c78e000  x2  b400007acbcc5800  x3  00000000000000f9
11-04 14:30:44.184 30396 30396 F DEBUG   :     x4  00000000000000f9  x5  000000000000006e  x6  3b676e697274532f  x7  0000000000000008
11-04 14:30:44.184 30396 30396 F DEBUG   :     x8  0000007a0a7fca50  x9  0000000000000000  x10 0000000000000002  x11 0000000000000000
11-04 14:30:44.184 30396 30396 F DEBUG   :     x12 00000000000000e0  x13 00000000190eeb00  x14 0000007fdc355fa0  x15 0000000000000000
11-04 14:30:44.184 30396 30396 F DEBUG   :     x16 0000007ac4773800  x17 0000007ac3869ec0  x18 0000007acc5f0000  x19 b400007acbcc5800
11-04 14:30:44.184 30396 30396 F DEBUG   :     x20 0000000000000000  x21 0000000000000000  x22 b400007acbc7e500  x23 0000000000000007
11-04 14:30:44.184 30396 30396 F DEBUG   :     x24 0000000000000007  x25 0000007fdc356178  x26 0000007fdc356188  x27 0000007fdc356178
11-04 14:30:44.184 30396 30396 F DEBUG   :     x28 0000007fdc3561a0  x29 0000007fdc356090
11-04 14:30:44.184 30396 30396 F DEBUG   :     lr  0000007a0a7f50ec  sp  0000007fdc356090  pc  0000007a0a7f50f8  pst 0000000060001000
11-04 14:30:44.184 30396 30396 F DEBUG   : backtrace:
11-04 14:30:44.184 30396 30396 F DEBUG   :       #00 pc 00000000000040f8  /data/app/~~cZUM9Nz8JbZivhSu8t3tfA==/net.kdt.pojavlaunch-c4y6RyENTgLrIzNkM3uoaA==/lib/arm64/libpojavexec.so (Java_net_kdt_pojavlaunch_utils_JREUtils_setupBridgeWindow+28) (BuildId: a6bf199847ca97ca680cbfae6f617b39ea0ba435)
11-04 14:30:44.184 30396 30396 F DEBUG   :       #01 pc 000000000000f090  /data/app/~~cZUM9Nz8JbZivhSu8t3tfA==/net.kdt.pojavlaunch-c4y6RyENTgLrIzNkM3uoaA==/oat/arm64/base.odex (art_jni_trampoline+128)

Steps To Reproduce

1. Start PojavLauncher
2. Launch 1.19.2 Instance
3. Crash

Expected Behavior

Instance start normally

Platform

- Device model: Samsung S20 FE 5G
- CPU architecture: arm64
- Android version: 12
- PojavLauncher version: Latest Release from Play Store

Anything else?

No response

MazeXP avatar Nov 04 '22 13:11 MazeXP

It seems like the global variable pojav_environ ist not initialized correctly:

Output of adb logcat *:S Environ

11-04 14:53:16.765  7319  7319 I Environ : No environ found, creating...
11-04 14:53:16.765  7319  7319 I Environ : 0x0

0x0 indicates that the global variable pojav_environ is not properly being set. It seems the build on play store quite some time old and does not have the latest changes to environ.c, but this version: https://github.com/PojavLauncherTeam/PojavLauncher/blob/ec10409e7ef4713a76454899f3bd0bd34c65043a/app_pojavlauncher/src/main/jni/environ/environ.c

MazeXP avatar Nov 04 '22 14:11 MazeXP

Latest build of https://github.com/PojavLauncherTeam/PojavLauncher/actions?query=is%3Asuccess+branch%3Av3_openjdk is working fine, but Play Store build needs an update nevertheless.

MazeXP avatar Nov 04 '22 14:11 MazeXP

Latest build of https://github.com/PojavLauncherTeam/PojavLauncher/actions?query=is%3Asuccess+branch%3Av3_openjdk is working fine, but Play Store build needs an update nevertheless.

latest is not quite fine (cause it fails to load optifine), but this should be addressed pretty soon I hope

GaucovyAero avatar Nov 04 '22 17:11 GaucovyAero

fixed in the latest play store build

GaucovyAero avatar Jan 25 '23 11:01 GaucovyAero