Opened 5 years ago

Closed 4 years ago

#11149 closed defect (fixed)

BACKENDS: Android - Blade Runner Engine crash (SDL)

Reported by: mim2011 Owned by: sev-
Priority: normal Component: Engine: Bladerunner
Version: Keywords: androidsdl
Cc: antoniou79, ccawley2011 Game: Blade Runner

Description

On the Androidsdl port the Blade Runner Engine exits immediately.
Android 4.2.2 (Asus tablet) and 5.1.1 (Samsung phone). Other engines, like for example Tinsel are ok. I build it on Ubuntu only for arm7a (32 bits) architecture.

09-16 12:26:21.866 32445-32445/? I/SDL: AutoDetectTouchInput: hoverTouchDistance 0.0 threshold 360 hover false fingerHover false
09-16 12:26:21.936 32445-32565/? A/libc: Fatal signal 11 (SIGSEGV), code 2, fault addr 0x82400c14 in tid 32565 (GLThread)
09-16 12:26:22.011 2171-2171/? I/DEBUG: *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
09-16 12:26:22.011 2171-2171/? I/DEBUG: Build fingerprint: 'samsung/hlltexx/hllte:5.1.1/LMY47X/N7505XXSDRI2:user/release-keys'
09-16 12:26:22.011 2171-2171/? I/DEBUG: Revision: '10'
09-16 12:26:22.011 2171-2171/? I/DEBUG: ABI: 'arm'
09-16 12:26:22.016 2171-2171/? I/DEBUG: pid: 32445, tid: 32565, name: GLThread  >>> org.scummvm.scummvm <<<
09-16 12:26:22.016 2171-2171/? I/DEBUG: signal 11 (SIGSEGV), code 2 (SEGV_ACCERR), fault addr 0x82400c14
09-16 12:26:22.051 2171-2171/? I/DEBUG:     r0 000000ff  r1 82400bf4  r2 00000003  r3 401c8fac
09-16 12:26:22.056 2171-2171/? I/DEBUG:     r4 82400000  r5 ffffff24  r6 82502414  r7 401bc600
09-16 12:26:22.056 2171-2171/? I/DEBUG:     r8 6842b200  r9 0000000c  sl 825026d8  fp 8250259c
09-16 12:26:22.056 2171-2171/? I/DEBUG:     ip 837a3c44  sp 825023e8  lr 40164d19  pc 4019c034  cpsr 20070030
09-16 12:26:22.056 2171-2171/? I/DEBUG: backtrace:
09-16 12:26:22.056 2171-2171/? I/DEBUG:     #00 pc 0004a034  /system/lib/libc.so (ifree+47)
09-16 12:26:22.056 2171-2171/? I/DEBUG:     #01 pc 00012d17  /system/lib/libc.so (free+10)
09-16 12:26:22.056 2171-2171/? I/DEBUG:     #02 pc 00144139  /data/app/org.scummvm.scummvm-1/lib/arm/libapplication.so (BladeRunner::BladeRunnerEngine::run()+224)
09-16 12:26:22.056 2171-2171/? I/DEBUG:     #03 pc 00132301  /data/app/org.scummvm.scummvm-1/lib/arm/libapplication.so (scummvm_main+3720)
09-16 12:26:22.056 2171-2171/? I/DEBUG:     #04 pc 00130325  /data/app/org.scummvm.scummvm-1/lib/arm/libapplication.so (SDL_main+104)
09-16 12:26:22.056 2171-2171/? I/DEBUG:     #05 pc 00000c53  /data/app/org.scummvm.scummvm-1/lib/arm/libsdl_main.so (Java_org_scummvm_scummvm_DemoRenderer_nativeInit+530)
09-16 12:26:22.056 2171-2171/? I/DEBUG:     #06 pc 0000f82b  /data/dalvik-cache/arm/data@app@org.scummvm.scummvm-1@base.apk@classes.dex

Change History (23)

comment:1 by antoniou79, 5 years ago

@mim2011, could you please test and answer the following:

  1. Is the error log the same for both devices?
  1. Have you followed the steps from the wiki to build the port, outside of changing the MultiABI line? https://wiki.scummvm.org/index.php/Compiling_ScummVM/Android-SDL
  1. Does the plain Android port (you can try our nightly development builds) work ok, or does it have the same issue?
  1. Do you know if a previous version of the Android SDL port worked ok for your devices?

I've written this in the other ticket; I have tested the AndroidSDL port on a Android 5.1 (Moto E) device and an Android 4.4.4 device (Huawei) and I don't get this crash at all.
I've read some google results about this kind of error, and it seems that it could be caused by some badly implemented native android libraries (specific to some devices, including old Samsung devices), in which case there will be little we can do to resolve this.

comment:2 by antoniou79, 5 years ago

Cc: antoniou79 added

comment:3 by mim2011, 5 years ago

@antoniou79
thank you for paying attention
1) It is the same phenomenon, I will attach tomorrow the logcat for the 4.2.2 tablet
2) yes I configured a Ubuntu VM using those steps
3) I will try it and report
4) yes it was working until about middle August, after that I didnt test it any more

comment:4 by mim2011, 5 years ago

@antoniou79
3) I used the arm build from here
https://buildbot.scummvm.org/snapshots/master/android_arm-master-latest.zip
and it is the same, it exits when starting the engine but only on the tablet with Android 4.2.2
On the mobile phone, with 5.1.1 it runs the engine.
I will paste tomorrow the logcat also for this version

Last edited 5 years ago by mim2011 (previous) (diff)

comment:5 by antoniou79, 5 years ago

Keywords: androidsdl android added
Summary: Androidsdl Blade Runner Engine crashAndroid Blade Runner Engine crash

comment:6 by mim2011, 5 years ago

@antoniou79
I tested it again today and now the android build it is working on both devices (4.x and 5.x) I don't know why yesterday crashed on the older one, but it is ok. Sorry
I will try again the androidsdl build

comment:7 by mim2011, 5 years ago

Keywords: android removed

comment:8 by mim2011, 5 years ago

@antoniou79
I build fresh androidsdl and installed it on both devices:

Samsung 5.1.1

09-17 09:30:20.436 22515-22570/? A/libc: Fatal signal 11 (SIGSEGV), code 1, fault addr 0x0 in tid 22570 (GLThread)
09-17 09:30:20.481 2733-2825/? D/SensorService: [SO] 4.794 0.178 8.142
09-17 09:30:20.481 2733-2825/? D/SensorService: [SO] [255 -> 1]
09-17 09:30:20.481 2733-2845/? V/WindowOrientationListener: Rotation Sensor : x=1.0
09-17 09:30:20.496 2171-2171/? I/DEBUG: *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
09-17 09:30:20.496 2171-2171/? I/DEBUG: Build fingerprint: 'samsung/hlltexx/hllte:5.1.1/LMY47X/N7505XXSDRI2:user/release-keys'
09-17 09:30:20.496 2171-2171/? I/DEBUG: Revision: '10'
09-17 09:30:20.496 2171-2171/? I/DEBUG: ABI: 'arm'
09-17 09:30:20.496 2171-2171/? I/DEBUG: pid: 22515, tid: 22570, name: GLThread  >>> org.scummvm.scummvm <<<
09-17 09:30:20.496 2171-2171/? I/DEBUG: signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x0
09-17 09:30:20.516 2171-2171/? I/DEBUG:     r0 00000000  r1 42400000  r2 00000000  r3 00000109
09-17 09:30:20.516 2171-2171/? I/DEBUG:     r4 68407ff8  r5 68407600  r6 82a36414  r7 401c8fc8
09-17 09:30:20.516 2171-2171/? I/DEBUG:     r8 00000069  r9 68407fd8  sl 401c0df4  fp 401c8fd8
09-17 09:30:20.516 2171-2171/? I/DEBUG:     ip 401bc7cc  sp 82a363e8  lr 4019c123  pc 4019c29e  cpsr 80070030
09-17 09:30:20.516 2171-2171/? I/DEBUG: backtrace:
09-17 09:30:20.516 2171-2171/? I/DEBUG:     #00 pc 0004a29e  /system/lib/libc.so (ifree+665)
09-17 09:30:20.516 2171-2171/? I/DEBUG:     #01 pc 00012d17  /system/lib/libc.so (free+10)
09-17 09:30:20.516 2171-2171/? I/DEBUG:     #02 pc 001446c9  /data/app/org.scummvm.scummvm-1/lib/arm/libapplication.so (BladeRunner::BladeRunnerEngine::run()+224)
09-17 09:30:20.521 2171-2171/? I/DEBUG:     #03 pc 00132709  /data/app/org.scummvm.scummvm-1/lib/arm/libapplication.so (scummvm_main+3720)
09-17 09:30:20.521 2171-2171/? I/DEBUG:     #04 pc 00130711  /data/app/org.scummvm.scummvm-1/lib/arm/libapplication.so (SDL_main+104)
09-17 09:30:20.521 2171-2171/? I/DEBUG:     #05 pc 00000c53  /data/app/org.scummvm.scummvm-1/lib/arm/libsdl_main.so (Java_org_scummvm_scummvm_DemoRenderer_nativeInit+530)
09-17 09:30:20.521 2171-2171/? I/DEBUG:     #06 pc 0000f82b  /data/dalvik-cache/arm/data@app@org.scummvm.scummvm-1@base.apk@classes.dex
09-17 09:30:20.566 19341-19383/? W/CursorWindow: Window is full: requested allocation 996 bytes, free space 542 bytes, window size 2097152 bytes
09-17 09:30:20.656 19341-19382/? I/art: Explicit concurrent mark sweep GC freed 40319(1918KB) AllocSpace objects, 0(0B) LOS objects, 39% free, 6MB/10MB, paused 1.033ms total 43.803ms

Asus 4.2.2

09-17 09:34:14.178 23186-23208/? A/libc: Fatal signal 11 (SIGSEGV) at 0xdeadbaad (code=1), thread 23208 (GLThread)
09-17 09:34:14.180 120-120/? D/AEE/AED: $===AEE===AEE===AEE===$
09-17 09:34:14.180 120-120/? D/AEE/AED: p 0 poll events 1 revents 0
09-17 09:34:14.180 120-120/? D/AEE/AED: not know revents:0
09-17 09:34:14.180 120-120/? D/AEE/AED: p 1 poll events 1 revents 0
09-17 09:34:14.180 120-120/? D/AEE/AED: not know revents:0
09-17 09:34:14.180 120-120/? D/AEE/AED: p 2 poll events 1 revents 1
09-17 09:34:14.180 120-120/? D/AEE/AED: aed_main_fork_worker: generator 0x97e168, worker 0xbecd19d8, recv_fd 14
09-17 09:34:14.181 120-120/? D/AEE/AED: p 3 poll events 1 revents 0
09-17 09:34:14.181 120-120/? D/AEE/AED: not know revents:0
09-17 09:34:14.181 120-120/? D/AEE/AED: p 4 poll events 1 revents 0
09-17 09:34:14.181 120-120/? D/AEE/AED: not know revents:0
09-17 09:34:14.181 23252-23252/? I/DEBUG: handle_request(14)
09-17 09:34:14.181 23252-23252/? I/DEBUG: check process 23186 name:scummvm.scummvm
09-17 09:34:14.181 23252-23252/? I/DEBUG: BOOM: pid=23186 uid=10111 gid=10111 tid=23208
09-17 09:34:14.182 23252-23252/? I/DEBUG: [OnPurpose Redunant in preset_info] pid: 23186, tid: 23208, name: GLThread  >>> org.scummvm.scummvm <<<
09-17 09:34:14.238 23252-23252/? I/DEBUG: *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
09-17 09:34:14.238 23252-23252/? I/DEBUG: Build fingerprint: 'asus/WW_memo/ME173X:4.2.2/JDQ39/WW_user_4.2.4.04152_20140714:user/release-keys'
09-17 09:34:14.239 23252-23252/? I/DEBUG: pid: 23186, tid: 23208, name: GLThread  >>> org.scummvm.scummvm <<<
09-17 09:34:14.239 23252-23252/? I/DEBUG: signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr deadbaad
09-17 09:34:14.273 128-476/? D/lights: write_int open fd=7
09-17 09:34:14.273 128-476/? D/AALService: enableAALEvent:1, 0
09-17 09:34:14.308 128-476/? D/lights: write_int open fd=7
09-17 09:34:14.342 128-476/? D/lights: write_int open fd=7
09-17 09:34:14.377 128-476/? D/lights: write_int open fd=7
09-17 09:34:14.412 128-476/? D/lights: write_int open fd=7
09-17 09:34:14.448 128-476/? D/lights: write_int open fd=7
09-17 09:34:14.481 128-476/? D/lights: write_int open fd=7
09-17 09:34:14.516 128-476/? D/lights: write_int open fd=7
09-17 09:34:14.550 128-476/? D/lights: write_int open fd=7
09-17 09:34:14.585 128-476/? D/lights: write_int open fd=7
09-17 09:34:14.620 128-476/? D/lights: write_int open fd=7
09-17 09:34:14.644 23252-23252/? I/DEBUG:     r0 00000000  r1 00000027  r2 deadbfff  r3 00000000
09-17 09:34:14.644 23252-23252/? I/DEBUG:     r4 00000000  r5 55c2250c  r6 56b6e74b  r7 582cdaf4
09-17 09:34:14.644 23252-23252/? I/DEBUG:     r8 58267808  r9 55c22848  sl 401771f4  fp 55c2270c
09-17 09:34:14.644 23252-23252/? I/DEBUG:     ip 00000001  sp 55c22508  lr 40137d60  pc 40131628  cpsr 60000010
09-17 09:34:14.649 23252-23252/? I/DEBUG: backtrace:
09-17 09:34:14.650 23252-23252/? I/DEBUG:     #00  pc 00024628  /system/lib/libc.so
09-17 09:34:14.650 23252-23252/? I/DEBUG:     #01  pc 00019fb8  /system/lib/libc.so (dlfree+5612)
09-17 09:34:14.650 23252-23252/? I/DEBUG:     #02  pc 0000cb48  /system/lib/libc.so (free+16)
09-17 09:34:14.650 23252-23252/? I/DEBUG:     #03  pc 001446c9  /data/app-lib/org.scummvm.scummvm-1/libapplication.so (BladeRunner::BladeRunnerEngine::run()+224)
09-17 09:34:14.650 23252-23252/? I/DEBUG:     #04  pc 00132709  /data/app-lib/org.scummvm.scummvm-1/libapplication.so (scummvm_main+3720)
09-17 09:34:14.650 23252-23252/? I/DEBUG:     #05  pc 00130711  /data/app-lib/org.scummvm.scummvm-1/libapplication.so (SDL_main+104)
09-17 09:34:14.650 23252-23252/? I/DEBUG:     #06  pc 00000c53  /data/app-lib/org.scummvm.scummvm-1/libsdl_main.so (Java_org_scummvm_scummvm_DemoRenderer_nativeInit+530)
09-17 09:34:14.650 23252-23252/? I/DEBUG:     #07  pc 0001e610  /system/lib/libdvm.so (dvmPlatformInvoke+112)
09-17 09:34:14.650 23252-23252/? I/DEBUG:     #08  pc 0004df59  /system/lib/libdvm.so (dvmCallJNIMethod(unsigned int const*, JValue*, Method const*, Thread*)+500)
09-17 09:34:14.650 23252-23252/? I/DEBUG:     #09  pc 00050321  /system/lib/libdvm.so (dvmResolveNativeMethod(unsigned int const*, JValue*, Method const*, Thread*)+200)
09-17 09:34:14.650 23252-23252/? I/DEBUG:     #10  pc 000279e0  /system/lib/libdvm.so
09-17 09:34:14.650 23252-23252/? I/DEBUG:     #11  pc 0002b92c  /system/lib/libdvm.so (dvmInterpret(Thread*, Method const*, JValue*)+180)
09-17 09:34:14.650 23252-23252/? I/DEBUG:     #12  pc 00061339  /system/lib/libdvm.so (dvmCallMethodV(Thread*, Method const*, Object*, bool, JValue*, std::__va_list)+272)
09-17 09:34:14.650 23252-23252/? I/DEBUG:     #13  pc 00061363  /system/lib/libdvm.so (dvmCallMethod(Thread*, Method const*, Object*, JValue*, ...)+20)
09-17 09:34:14.650 23252-23252/? I/DEBUG:     #14  pc 000559bd  /system/lib/libdvm.so
09-17 09:34:14.650 23252-23252/? I/DEBUG:     #15  pc 0000e058  /system/lib/libc.so (__thread_entry+72)
09-17 09:34:14.650 23252-23252/? I/DEBUG: stack:
09-17 09:34:14.650 23252-23252/? I/DEBUG:          55c224c8  581b36b8  
09-17 09:34:14.650 23252-23252/? I/DEBUG:          55c224cc  00000011  
09-17 09:34:14.650 23252-23252/? I/DEBUG:          55c224d0  00000097  
09-17 09:34:14.650 23252-23252/? I/DEBUG:          55c224d4  54dc0ba0  
09-17 09:34:14.650 23252-23252/? I/DEBUG:          55c224d8  00000097  
09-17 09:34:14.650 23252-23252/? I/DEBUG:          55c224dc  40136044  /system/lib/libc.so (__sflush)
09-17 09:34:14.650 23252-23252/? I/DEBUG:          55c224e0  401774d0  
09-17 09:34:14.650 23252-23252/? I/DEBUG:          55c224e4  0000000d  
09-17 09:34:14.650 23252-23252/? I/DEBUG:          55c224e8  00000000  
09-17 09:34:14.650 23252-23252/? I/DEBUG:          55c224ec  40137d60  /system/lib/libc.so (_fwalk+64)
09-17 09:34:14.650 23252-23252/? I/DEBUG:          55c224f0  41129000  
09-17 09:34:14.651 23252-23252/? I/DEBUG:          55c224f4  55c2250c  [stack:23208]
09-17 09:34:14.651 23252-23252/? I/DEBUG:          55c224f8  56b6e74b  /data/app-lib/org.scummvm.scummvm-1/libapplication.so (virtual thunk to SurfaceSdlGraphicsManager::getSupportedFormats() const+98)
09-17 09:34:14.651 23252-23252/? I/DEBUG:          55c224fc  582cdaf4  
09-17 09:34:14.651 23252-23252/? I/DEBUG:          55c22500  df0027ad  
09-17 09:34:14.651 23252-23252/? I/DEBUG:          55c22504  00000000  
09-17 09:34:14.651 23252-23252/? I/DEBUG:     #00  55c22508  56b719dd  /data/app-lib/org.scummvm.scummvm-1/libapplication.so (POSIXFilesystemNode::exists() const)
09-17 09:34:14.651 23252-23252/? I/DEBUG:          55c2250c  fffffbdf  
09-17 09:34:14.651 23252-23252/? I/DEBUG:          55c22510  00000000  
09-17 09:34:14.651 23252-23252/? I/DEBUG:          55c22514  7973a63b  
09-17 09:34:14.651 23252-23252/? I/DEBUG:          55c22518  58267800  
09-17 09:34:14.651 23252-23252/? I/DEBUG:          55c2251c  55c225e4  [stack:23208]
09-17 09:34:14.651 23252-23252/? I/DEBUG:          55c22520  56b6e74b  /data/app-lib/org.scummvm.scummvm-1/libapplication.so (virtual thunk to SurfaceSdlGraphicsManager::getSupportedFormats() const+98)
09-17 09:34:14.651 23252-23252/? I/DEBUG:          55c22524  58267800  
09-17 09:34:14.651 23252-23252/? I/DEBUG:          55c22528  55c225e4  [stack:23208]
09-17 09:34:14.651 23252-23252/? I/DEBUG:          55c2252c  40126fbc  /system/lib/libc.so (dlfree+5616)
09-17 09:34:14.651 23252-23252/? I/DEBUG:     #01  55c22530  000017b1  
09-17 09:34:14.651 23252-23252/? I/DEBUG:          55c22534  58267800  
09-17 09:34:14.651 23252-23252/? I/DEBUG:          55c22538  00000001  
09-17 09:34:14.651 23252-23252/? I/DEBUG:          55c2253c  56b6e74b  /data/app-lib/org.scummvm.scummvm-1/libapplication.so (virtual thunk to SurfaceSdlGraphicsManager::getSupportedFormats() const+98)
09-17 09:34:14.651 23252-23252/? I/DEBUG:          55c22540  00000004  
09-17 09:34:14.651 23252-23252/? I/DEBUG:          55c22544  00000020  
09-17 09:34:14.651 23252-23252/? I/DEBUG:          55c22548  55c225e4  [stack:23208]
09-17 09:34:14.651 23252-23252/? I/DEBUG:          55c2254c  55c22560  [stack:23208]
09-17 09:34:14.651 23252-23252/? I/DEBUG:          55c22550  54d90250  
09-17 09:34:14.651 23252-23252/? I/DEBUG:          55c22554  55c22584  [stack:23208]
09-17 09:34:14.651 23252-23252/? I/DEBUG:          55c22558  56e1a188  
09-17 09:34:14.652 23252-23252/? I/DEBUG:          55c2255c  401771f4  
09-17 09:34:14.652 23252-23252/? I/DEBUG:          55c22560  55c225e4  [stack:23208]
09-17 09:34:14.652 23252-23252/? I/DEBUG:          55c22564  401771f4  
09-17 09:34:14.652 23252-23252/? I/DEBUG:          55c22568  55c2270c  [stack:23208]
09-17 09:34:14.652 23252-23252/? I/DEBUG:          55c2256c  40119b30  /system/lib/libc.so (malloc+20)
09-17 09:34:14.652 23252-23252/? I/DEBUG:          ........  ........
09-17 09:34:14.652 23252-23252/? I/DEBUG:     #02  55c225b0  58267808  
09-17 09:34:14.652 23252-23252/? I/DEBUG:          55c225b4  56a216cd  /data/app-lib/org.scummvm.scummvm-1/libapplication.so (BladeRunner::BladeRunnerEngine::run()+228)
09-17 09:34:14.655 128-476/? D/lights: write_int open fd=7
09-17 09:34:14.657 23252-23252/? I/DEBUG: memory near r5:
09-17 09:34:14.657 23252-23252/? I/DEBUG:     55c224ec 40137d60 41129000 55c2250c 56b6e74b  `}.@...A.%.UK..V
09-17 09:34:14.657 23252-23252/? I/DEBUG:     55c224fc 582cdaf4 df0027ad 00000000 56b719dd  ..,X.'.........V
09-17 09:34:14.657 23252-23252/? I/DEBUG:     55c2250c fffffbdf 00000000 7973a63b 58267800  ........;.sy.x&X
09-17 09:34:14.657 23252-23252/? I/DEBUG:     55c2251c 55c225e4 56b6e74b 58267800 55c225e4  .%.UK..V.x&X.%.U
09-17 09:34:14.657 23252-23252/? I/DEBUG:     55c2252c 40126fbc 000017b1 58267800 00000001  .o.@.....x&X....
09-17 09:34:14.657 23252-23252/? I/DEBUG: memory near r6:
09-17 09:34:14.657 23252-23252/? I/DEBUG:     56b6e728 c2036861 70117a21 f8c3605e f8cee000  ah..!z.p^`......
09-17 09:34:14.657 23252-23252/? I/DEBUG:     56b6e738 685a3004 686d6013 d00742af f13b2014  .0Zh.`mh.B... ;.
09-17 09:34:14.657 23252-23252/? I/DEBUG:     56b6e748 4603f9cb d1e42800 deff6046 f8d89a03  ...F.(..F`......
09-17 09:34:14.658 23252-23252/? I/DEBUG:     56b6e758 e8963000 429a0003 0003e889 d1024648  .0.....B....HF..
09-17 09:34:14.658 23252-23252/? I/DEBUG:     56b6e768 e8bdb005 f69b83f0 bf00efc6 002622ac  ............."&.
09-17 09:34:14.658 23252-23252/? I/DEBUG: memory near r7:
09-17 09:34:14.658 23252-23252/? I/DEBUG:     582cdad4 00000000 00000000 00000000 00000000  ................
09-17 09:34:14.658 23252-23252/? I/DEBUG:     582cdae4 00000000 00000000 00000000 00000000  ................
09-17 09:34:14.658 23252-23252/? I/DEBUG:     582cdaf4 03020302 00050b08 00000000 00000000  ................
09-17 09:34:14.658 23252-23252/? I/DEBUG:     582cdb04 62610000 00000000 00000000 00000000  ..ab............
09-17 09:34:14.658 23252-23252/? I/DEBUG:     582cdb14 2f706d00 00000000 4c420000 00000000  .mp/......BL....
09-17 09:34:14.658 23252-23252/? I/DEBUG: memory near r8:
09-17 09:34:14.658 23252-23252/? I/DEBUG:     582677e8 00000030 582d50c8 581b1c8c 581b1cec  0....P-X...X...X
09-17 09:34:14.658 23252-23252/? I/DEBUG:     582677f8 582d2e50 581b0100 00000000 00000231  P.-X...X....1...
09-17 09:34:14.658 23252-23252/? I/DEBUG:     58267808 40176d10 40176d10 03020302 00050b08  .m.@.m.@........
09-17 09:34:14.658 23252-23252/? I/DEBUG:     58267818 00000018 0000001a 58267808 58267838  .........x&X8x&X
09-17 09:34:14.658 23252-23252/? I/DEBUG:     58267828 03030302 00050a07 00000030 0000001a  ........0.......
09-17 09:34:14.658 23252-23252/? I/DEBUG: memory near r9:
09-17 09:34:14.658 23252-23252/? I/DEBUG:     55c22828 00000008 55c22830 65206f4e 726f7272  ....0(.UNo error
09-17 09:34:14.658 23252-23252/? I/DEBUG:     55c22838 006e6900 6f726e61 5320676e 00000000  .in.anrong S....
09-17 09:34:14.658 23252-23252/? I/DEBUG:     55c22848 00000015 55c22850 5f697567 5f657375  ....P(.Ugui_use_
09-17 09:34:14.658 23252-23252/? I/DEBUG:     55c22858 656d6167 6e616c5f 67617567 00000065  game_language...
09-17 09:34:14.658 23252-23252/? I/DEBUG:     55c22868 00000000 00000000 55c22874 00000000  ........t(.U....
09-17 09:34:14.658 23252-23252/? I/DEBUG: memory near sl:
09-17 09:34:14.658 23252-23252/? I/DEBUG:     401771d4 00000000 00000000 00000000 00000000  ................
09-17 09:34:14.659 23252-23252/? I/DEBUG:     401771e4 00000000 00000000 00000000 00000000  ................
09-17 09:34:14.659 23252-23252/? I/DEBUG:     401771f4 7973a63b 00000000 00000000 00000000  ;.sy............
09-17 09:34:14.659 23252-23252/? I/DEBUG:     40177204 0000000d 00000002 00000000 00000000  ................
09-17 09:34:14.659 23252-23252/? I/DEBUG:     40177214 00000000 00000000 00000000 00000000  ................
09-17 09:34:14.659 23252-23252/? I/DEBUG: memory near fp:
09-17 09:34:14.659 23252-23252/? I/DEBUG:     55c226ec 55c22824 56ddb570 56e098e4 582cd810  $(.Up..V...V..,X
09-17 09:34:14.659 23252-23252/? I/DEBUG:     55c226fc 56dcd698 55d43660 55d25198 582627f0  ...V`6.U.Q.U.'&X
09-17 09:34:14.659 23252-23252/? I/DEBUG:     55c2270c 00000003 00000003 56e21fe8 00000000  ...........V....
09-17 09:34:14.659 23252-23252/? I/DEBUG:     55c2271c 00000000 55c22724 00000000 00000000  ....$'.U........
09-17 09:34:14.659 23252-23252/? I/DEBUG:     55c2272c 7973a63b 00000000 00000000 00000000  ;.sy............
09-17 09:34:14.659 23252-23252/? I/DEBUG: memory near sp:
09-17 09:34:14.659 23252-23252/? I/DEBUG:     55c224e8 00000000 40137d60 41129000 55c2250c  ....`}.@...A.%.U
09-17 09:34:14.659 23252-23252/? I/DEBUG:     55c224f8 56b6e74b 582cdaf4 df0027ad 00000000  K..V..,X.'......
09-17 09:34:14.659 23252-23252/? I/DEBUG:     55c22508 56b719dd fffffbdf 00000000 7973a63b  ...V........;.sy
09-17 09:34:14.659 23252-23252/? I/DEBUG:     55c22518 58267800 55c225e4 56b6e74b 58267800  .x&X.%.UK..V.x&X
09-17 09:34:14.659 23252-23252/? I/DEBUG:     55c22528 55c225e4 40126fbc 000017b1 58267800  .%.U.o.@.....x&X
09-17 09:34:14.659 23252-23252/? I/DEBUG: code around pc:
09-17 09:34:14.659 23252-23252/? I/DEBUG:     40131608 1afffffb e594c014 e35c0000 0a000018  ..........\.....
09-17 09:34:14.659 23252-23252/? I/DEBUG:     40131618 e30b2fff e3a01027 e34d2ead e3a04000  ./..'.....M..@..
09-17 09:34:14.659 23252-23252/? I/DEBUG:     40131628 e5421552 ebffefb6 e3a01006 ebfff46e  R.B.........n...
09-17 09:34:14.659 23252-23252/? I/DEBUG:     40131638 e28d1008 e3a03201 e1a02001 e3a00006  .....2... ......
09-17 09:34:14.659 23252-23252/? I/DEBUG:     40131648 e58d3010 e58d4008 e58d400c ebfff23a  .0...@...@..:...
09-17 09:34:14.660 23252-23252/? I/DEBUG: code around lr:
09-17 09:34:14.660 23252-23252/? I/DEBUG:     40137d40 4a000009 e1d430fc e1a00004 e2455001  ...J.0.......PE.
09-17 09:34:14.660 23252-23252/? I/DEBUG:     40137d50 e2844054 e3530000 da000001 e12fff37  T@....S.....7./.
09-17 09:34:14.660 23252-23252/? I/DEBUG:     40137d60 e1866000 e3750001 1afffff5 e5988000  .`....u.........
09-17 09:34:14.660 23252-23252/? I/DEBUG:     40137d70 e3580000 1affffee e1a00006 e8bd81f0  ..X.............
09-17 09:34:14.660 23252-23252/? I/DEBUG:     40137d80 0003c260 e92d45f0 e0070291 e59f40a8  `....E-......@..
09-17 09:34:14.660 23252-23252/? I/DEBUG: memory map around fault addr deadbaad:
09-17 09:34:14.660 23252-23252/? I/DEBUG:     bec6f000-bec90000 [stack]
09-17 09:34:14.660 23252-23252/? I/DEBUG:     (no map for address)
09-17 09:34:14.660 23252-23252/? I/DEBUG:     ffff0000-ffff1000 [vectors]

comment:9 by antoniou79, 5 years ago

Summary: Android Blade Runner Engine crashAndroidSDL Blade Runner Engine crash

Ok, so the crash is specific to the Android SDL port. That's good, because it helps minimize the possible causes for it.

The debug trace may have changed because yesterday I changed the configure script for the SDL port to "enable optimizations" for the build. So, that's expected.

However, I still can't reproduce the issue on any of my Android devices, so I will need further help in this one.

Since the androidsdl port used to work on your devices, we need to figure out which commit caused the regression.

So could you test with various past revisions of the repository (starting from middle of August) to find which particular one last worked for you?

You can use the "git checkout <desired-SHA1>" to get a specific revision. You don't have to check each and every one(!), the commit messages should help indicate if a revision could be related to the issue.

For example:
Can you try this revision (from Aug 25): https://github.com/scummvm/scummvm/commit/b0c8b368a907f7e3d183d50dcaf259e898ac70a6

  • if that DOES NOT WORK can you then try this one (from Aug 24 - before a set of changes to SDL code):

https://github.com/scummvm/scummvm/commit/1a9fa34dc18813a1048ad24466fd957050f82ec6

  • if the Aug 25 commit WORKS then try this one next (from Sep 11 - before some changes to the Blade Runner engine):

https://github.com/scummvm/scummvm/commit/1ed2cd40f3213720cd33d96fca9f6516b5589189

Version 0, edited 5 years ago by antoniou79 (next)

comment:10 by mim2011, 5 years ago

@antoniou79

the first commit that generates this problem is

a7399c5111cc7ebeea284498a1ee5ac7542bb96d

I checked the history of the file bladerunner.cpp the previous commit a99e8d7baba5bcbc6cc07ff2d34d81fb7e3e93dc is ok.

thank you

comment:11 by antoniou79, 5 years ago

Ok, that definitely narrows it down. But it's still unclear what the actual cause is.

Could you work in the faulty commit ( https://bugs.scummvm.org/changeset/a7399c5111cc7ebeea284498a1ee5ac7542bb96d/ ) and:

  • remove the enable-optimizations and enable-release switches from the config script in dists/androidsdl/scummvm/AndroidBuild.sh
  • only build for Blade Runner engine (using the --disable-all-engines --enable-engine=bladerunner switches in the same file: dists/androidsdl/scummvm/AndroidBuild.sh
  • edit bladerunner.cpp and remove the command:

debug("Using pixel format: %s", _screenPixelFormat.toString().c_str());

then build the port and report back here with the log message or it fixed the issue?

Last edited 5 years ago by antoniou79 (previous) (diff)

comment:12 by mim2011, 5 years ago

@antoniou79

there is only one change, the engine quits before displaying the warning about "in progress engine" like before

09-17 13:15:36.922 24628-24628/? I/DEBUG: handle_request(14)
09-17 13:15:36.923 24628-24628/? I/DEBUG: check process 24593 name:scummvm.scummvm
09-17 13:15:36.923 24628-24628/? I/DEBUG: BOOM: pid=24593 uid=10111 gid=10111 tid=24616
09-17 13:15:36.924 24628-24628/? I/DEBUG: [OnPurpose Redunant in preset_info] pid: 24593, tid: 24616, name: GLThread  >>> org.scummvm.scummvm <<<
09-17 13:15:36.975 24628-24628/? I/DEBUG: *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
09-17 13:15:36.975 24628-24628/? I/DEBUG: Build fingerprint: 'asus/WW_memo/ME173X:4.2.2/JDQ39/WW_user_4.2.4.04152_20140714:user/release-keys'
09-17 13:15:36.976 24628-24628/? I/DEBUG: pid: 24593, tid: 24616, name: GLThread  >>> org.scummvm.scummvm <<<
09-17 13:15:36.976 24628-24628/? I/DEBUG: signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr deadbaad
09-17 13:15:37.287 128-476/? D/lights: write_int open fd=7
09-17 13:15:37.287 128-476/? D/AALService: enableAALEvent:1, 0
09-17 13:15:37.322 128-476/? D/lights: write_int open fd=7
09-17 13:15:37.357 128-476/? D/lights: write_int open fd=7
09-17 13:15:37.391 128-476/? D/lights: write_int open fd=7
09-17 13:15:37.426 128-476/? D/lights: write_int open fd=7
09-17 13:15:37.461 128-476/? D/lights: write_int open fd=7
09-17 13:15:37.495 128-476/? D/lights: write_int open fd=7
09-17 13:15:37.530 128-476/? D/lights: write_int open fd=7
09-17 13:15:37.565 128-476/? D/lights: write_int open fd=7
09-17 13:15:37.599 128-476/? D/lights: write_int open fd=7
09-17 13:15:37.634 128-476/? D/lights: write_int open fd=7
09-17 13:15:37.636 24628-24628/? I/DEBUG:     r0 00000000  r1 00000027  r2 deadbfff  r3 00000000
09-17 13:15:37.636 24628-24628/? I/DEBUG:     r4 00000000  r5 55bc651c  r6 56a0967b  r7 580032f4
09-17 13:15:37.636 24628-24628/? I/DEBUG:     r8 58527a80  r9 55bc685c  sl 55bc685c  fp 55bc6720
09-17 13:15:37.636 24628-24628/? I/DEBUG:     ip 00000001  sp 55bc6518  lr 40137d60  pc 40131628  cpsr 60000010
09-17 13:15:37.639 24628-24628/? I/DEBUG: backtrace:
09-17 13:15:37.639 24628-24628/? I/DEBUG:     #00  pc 00024628  /system/lib/libc.so
09-17 13:15:37.639 24628-24628/? I/DEBUG:     #01  pc 00019fb8  /system/lib/libc.so (dlfree+5612)
09-17 13:15:37.639 24628-24628/? I/DEBUG:     #02  pc 0000cb48  /system/lib/libc.so (free+16)
09-17 13:15:37.639 24628-24628/? I/DEBUG:     #03  pc 0012ffd5  /data/app-lib/org.scummvm.scummvm-1/libapplication.so (BladeRunner::BladeRunnerEngine::run()+224)
09-17 13:15:37.639 24628-24628/? I/DEBUG:     #04  pc 0011e313  /data/app-lib/org.scummvm.scummvm-1/libapplication.so (scummvm_main+3698)
09-17 13:15:37.639 24628-24628/? I/DEBUG:     #05  pc 0011c34d  /data/app-lib/org.scummvm.scummvm-1/libapplication.so (SDL_main+104)
09-17 13:15:37.639 24628-24628/? I/DEBUG:     #06  pc 00000c53  /data/app-lib/org.scummvm.scummvm-1/libsdl_main.so (Java_org_scummvm_scummvm_DemoRenderer_nativeInit+530)
09-17 13:15:37.639 24628-24628/? I/DEBUG:     #07  pc 0001e610  /system/lib/libdvm.so (dvmPlatformInvoke+112)
09-17 13:15:37.640 24628-24628/? I/DEBUG:     #08  pc 0004df59  /system/lib/libdvm.so (dvmCallJNIMethod(unsigned int const*, JValue*, Method const*, Thread*)+500)
09-17 13:15:37.640 24628-24628/? I/DEBUG:     #09  pc 00050321  /system/lib/libdvm.so (dvmResolveNativeMethod(unsigned int const*, JValue*, Method const*, Thread*)+200)
09-17 13:15:37.640 24628-24628/? I/DEBUG:     #10  pc 000279e0  /system/lib/libdvm.so
09-17 13:15:37.640 24628-24628/? I/DEBUG:     #11  pc 0002b92c  /system/lib/libdvm.so (dvmInterpret(Thread*, Method const*, JValue*)+180)
09-17 13:15:37.640 24628-24628/? I/DEBUG:     #12  pc 00061339  /system/lib/libdvm.so (dvmCallMethodV(Thread*, Method const*, Object*, bool, JValue*, std::__va_list)+272)
09-17 13:15:37.640 24628-24628/? I/DEBUG:     #13  pc 00061363  /system/lib/libdvm.so (dvmCallMethod(Thread*, Method const*, Object*, JValue*, ...)+20)
09-17 13:15:37.640 24628-24628/? I/DEBUG:     #14  pc 000559bd  /system/lib/libdvm.so
09-17 13:15:37.640 24628-24628/? I/DEBUG:     #15  pc 0000e058  /system/lib/libc.so (__thread_entry+72)
09-17 13:15:37.640 24628-24628/? I/DEBUG: stack:
09-17 13:15:37.640 24628-24628/? I/DEBUG:          55bc64d8  5809a9c0  
09-17 13:15:37.640 24628-24628/? I/DEBUG:          55bc64dc  00000011  
09-17 13:15:37.640 24628-24628/? I/DEBUG:          55bc64e0  00000097  
09-17 13:15:37.640 24628-24628/? I/DEBUG:          55bc64e4  58097cd0  
09-17 13:15:37.640 24628-24628/? I/DEBUG:          55bc64e8  00000097  
09-17 13:15:37.640 24628-24628/? I/DEBUG:          55bc64ec  40136044  /system/lib/libc.so (__sflush)
09-17 13:15:37.640 24628-24628/? I/DEBUG:          55bc64f0  401774d0  
09-17 13:15:37.640 24628-24628/? I/DEBUG:          55bc64f4  0000000d  
09-17 13:15:37.640 24628-24628/? I/DEBUG:          55bc64f8  00000000  
09-17 13:15:37.640 24628-24628/? I/DEBUG:          55bc64fc  40137d60  /system/lib/libc.so (_fwalk+64)
09-17 13:15:37.640 24628-24628/? I/DEBUG:          55bc6500  41129000  
09-17 13:15:37.640 24628-24628/? I/DEBUG:          55bc6504  55bc651c  [stack:24616]
09-17 13:15:37.640 24628-24628/? I/DEBUG:          55bc6508  56a0967b  /data/app-lib/org.scummvm.scummvm-1/libapplication.so (virtual thunk to SurfaceSdlGraphicsManager::getSupportedFormats() const+98)
09-17 13:15:37.640 24628-24628/? I/DEBUG:          55bc650c  580032f4  
09-17 13:15:37.640 24628-24628/? I/DEBUG:          55bc6510  df0027ad  
09-17 13:15:37.640 24628-24628/? I/DEBUG:          55bc6514  00000000  
09-17 13:15:37.640 24628-24628/? I/DEBUG:     #00  55bc6518  56a0cbe5  /data/app-lib/org.scummvm.scummvm-1/libapplication.so (POSIXFilesystemNode::exists() const)
09-17 13:15:37.640 24628-24628/? I/DEBUG:          55bc651c  fffffbdf  
09-17 13:15:37.641 24628-24628/? I/DEBUG:          55bc6520  00000000  
09-17 13:15:37.641 24628-24628/? I/DEBUG:          55bc6524  7973a63b  
09-17 13:15:37.641 24628-24628/? I/DEBUG:          55bc6528  58527a78  
09-17 13:15:37.641 24628-24628/? I/DEBUG:          55bc652c  55bc65f4  [stack:24616]
09-17 13:15:37.641 24628-24628/? I/DEBUG:          55bc6530  56a0967b  /data/app-lib/org.scummvm.scummvm-1/libapplication.so (virtual thunk to SurfaceSdlGraphicsManager::getSupportedFormats() const+98)
09-17 13:15:37.641 24628-24628/? I/DEBUG:          55bc6534  58527a78  
09-17 13:15:37.641 24628-24628/? I/DEBUG:          55bc6538  55bc65f4  [stack:24616]
09-17 13:15:37.641 24628-24628/? I/DEBUG:          55bc653c  40126fbc  /system/lib/libc.so (dlfree+5616)
09-17 13:15:37.641 24628-24628/? I/DEBUG:     #01  55bc6540  000017b1  
09-17 13:15:37.641 24628-24628/? I/DEBUG:          55bc6544  58527a78  
09-17 13:15:37.641 24628-24628/? I/DEBUG:          55bc6548  00000001  
09-17 13:15:37.641 24628-24628/? I/DEBUG:          55bc654c  56a0967b  /data/app-lib/org.scummvm.scummvm-1/libapplication.so (virtual thunk to SurfaceSdlGraphicsManager::getSupportedFormats() const+98)
09-17 13:15:37.641 24628-24628/? I/DEBUG:          55bc6550  00000004  
09-17 13:15:37.641 24628-24628/? I/DEBUG:          55bc6554  00000020  
09-17 13:15:37.641 24628-24628/? I/DEBUG:          55bc6558  55bc65f4  [stack:24616]
09-17 13:15:37.641 24628-24628/? I/DEBUG:          55bc655c  55bc6570  [stack:24616]
09-17 13:15:37.641 24628-24628/? I/DEBUG:          55bc6560  54d0a0d0  
09-17 13:15:37.641 24628-24628/? I/DEBUG:          55bc6564  55bc6594  [stack:24616]
09-17 13:15:37.641 24628-24628/? I/DEBUG:          55bc6568  54d042c8  
09-17 13:15:37.641 24628-24628/? I/DEBUG:          55bc656c  401771f4  
09-17 13:15:37.641 24628-24628/? I/DEBUG:          55bc6570  55bc65f4  [stack:24616]
09-17 13:15:37.641 24628-24628/? I/DEBUG:          55bc6574  55bc685c  [stack:24616]
09-17 13:15:37.641 24628-24628/? I/DEBUG:          55bc6578  55bc6720  [stack:24616]
09-17 13:15:37.641 24628-24628/? I/DEBUG:          55bc657c  40119b30  /system/lib/libc.so (malloc+20)
09-17 13:15:37.641 24628-24628/? I/DEBUG:          ........  ........
09-17 13:15:37.641 24628-24628/? I/DEBUG:     #02  55bc65c0  58527a80  
09-17 13:15:37.642 24628-24628/? I/DEBUG:          55bc65c4  568f3fd9  /data/app-lib/org.scummvm.scummvm-1/libapplication.so (BladeRunner::BladeRunnerEngine::run()+228)
09-17 13:15:37.647 24628-24628/? I/DEBUG: memory near r5:
09-17 13:15:37.647 24628-24628/? I/DEBUG:     55bc64fc 40137d60 41129000 55bc651c 56a0967b  `}.@...A.e.U{..V
09-17 13:15:37.647 24628-24628/? I/DEBUG:     55bc650c 580032f4 df0027ad 00000000 56a0cbe5  .2.X.'.........V
09-17 13:15:37.647 24628-24628/? I/DEBUG:     55bc651c fffffbdf 00000000 7973a63b 58527a78  ........;.syxzRX
09-17 13:15:37.647 24628-24628/? I/DEBUG:     55bc652c 55bc65f4 56a0967b 58527a78 55bc65f4  .e.U{..VxzRX.e.U
09-17 13:15:37.647 24628-24628/? I/DEBUG:     55bc653c 40126fbc 000017b1 58527a78 00000001  .o.@....xzRX....
09-17 13:15:37.647 24628-24628/? I/DEBUG: memory near r6:
09-17 13:15:37.647 24628-24628/? I/DEBUG:     56a09658 c2036861 70117a21 f8c3605e f8cee000  ah..!z.p^`......
09-17 13:15:37.647 24628-24628/? I/DEBUG:     56a09668 685a3004 686d6013 d00742af f1362014  .0Zh.`mh.B... 6.
09-17 13:15:37.647 24628-24628/? I/DEBUG:     56a09678 4603f86f d1e42800 deff6046 f8d89a03  o..F.(..F`......
09-17 13:15:37.647 24628-24628/? I/DEBUG:     56a09688 e8963000 429a0003 0003e889 d1024648  .0.....B....HF..
09-17 13:15:37.647 24628-24628/? I/DEBUG:     56a09698 e8bdb005 f6d383f0 bf00eede 0024e4b0  ..............$.
09-17 13:15:37.647 24628-24628/? I/DEBUG: memory near r7:
09-17 13:15:37.647 24628-24628/? I/DEBUG:     580032d4 00000000 00000000 00000000 00000000  ................
09-17 13:15:37.647 24628-24628/? I/DEBUG:     580032e4 00000000 00000000 00000000 00000000  ................
09-17 13:15:37.647 24628-24628/? I/DEBUG:     580032f4 03020302 00050b08 b5b6b500 00000000  ................
09-17 13:15:37.647 24628-24628/? I/DEBUG:     58003304 31860000 00000000 00000000 00000000  ...1............
09-17 13:15:37.648 24628-24628/? I/DEBUG:     58003314 b5b6b500 00000000 b5b60000 00000000  ................
09-17 13:15:37.648 24628-24628/? I/DEBUG: memory near r8:
09-17 13:15:37.648 24628-24628/? I/DEBUG:     58527a60 10bb3a00 67430424 148d8927 00000013  .:..$.Cg'.......
09-17 13:15:37.648 24628-24628/? I/DEBUG:     58527a70 6d561d2a 40177a64 ff3bd080 00000021  *.Vmdz.@..;.!...
09-17 13:15:37.648 24628-24628/? I/DEBUG:     58527a80 58539528 5851beb8 03020302 00050b08  (.SX..QX........
09-17 13:15:37.648 24628-24628/? I/DEBUG:     58527a90 58333700 00000000 00000020 00000032  .73X.... ...2...
09-17 13:15:37.648 24628-24628/? I/DEBUG:     58527aa0 0000ac28 ac2800d4 00cf0000 0000ac28  (.....(.....(...
09-17 13:15:37.648 24628-24628/? I/DEBUG: memory near r9:
09-17 13:15:37.648 24628-24628/? I/DEBUG:     55bc683c 00000008 55bc6844 65206f4e 726f7272  ....Dh.UNo error
09-17 13:15:37.648 24628-24628/? I/DEBUG:     55bc684c 006e6900 00000000 00000000 00000000  .in.............
09-17 13:15:37.648 24628-24628/? I/DEBUG:     55bc685c 00000015 55bc6864 5f697567 5f657375  ....dh.Ugui_use_
09-17 13:15:37.648 24628-24628/? I/DEBUG:     55bc686c 656d6167 6e616c5f 67617567 00000065  game_language...
09-17 13:15:37.648 24628-24628/? I/DEBUG:     55bc687c 00000000 00000000 55bc6888 00000000  .........h.U....
09-17 13:15:37.648 24628-24628/? I/DEBUG: memory near sl:
09-17 13:15:37.648 24628-24628/? I/DEBUG:     55bc683c 00000008 55bc6844 65206f4e 726f7272  ....Dh.UNo error
09-17 13:15:37.648 24628-24628/? I/DEBUG:     55bc684c 006e6900 00000000 00000000 00000000  .in.............
09-17 13:15:37.648 24628-24628/? I/DEBUG:     55bc685c 00000015 55bc6864 5f697567 5f657375  ....dh.Ugui_use_
09-17 13:15:37.648 24628-24628/? I/DEBUG:     55bc686c 656d6167 6e616c5f 67617567 00000065  game_language...
09-17 13:15:37.648 24628-24628/? I/DEBUG:     55bc687c 00000000 00000000 55bc6888 00000000  .........h.U....
09-17 13:15:37.648 24628-24628/? I/DEBUG: memory near fp:
09-17 13:15:37.648 24628-24628/? I/DEBUG:     55bc6700 56c600f8 56c633e4 00000000 58003018  ...V.3.V.....0.X
09-17 13:15:37.649 24628-24628/? I/DEBUG:     55bc6710 56c547d0 5852a6e0 585379f0 584d65a8  .G.V..RX.ySX.eMX
09-17 13:15:37.649 24628-24628/? I/DEBUG:     55bc6720 00000002 00000002 584d67a8 7973a63b  .........gMX;.sy
09-17 13:15:37.649 24628-24628/? I/DEBUG:     55bc6730 00000000 55bc6738 00000000 00000000  ....8g.U........
09-17 13:15:37.649 24628-24628/? I/DEBUG:     55bc6740 00000000 00000000 00000004 401771f4  .............q.@
09-17 13:15:37.649 24628-24628/? I/DEBUG: memory near sp:
09-17 13:15:37.649 24628-24628/? I/DEBUG:     55bc64f8 00000000 40137d60 41129000 55bc651c  ....`}.@...A.e.U
09-17 13:15:37.649 24628-24628/? I/DEBUG:     55bc6508 56a0967b 580032f4 df0027ad 00000000  {..V.2.X.'......
09-17 13:15:37.649 24628-24628/? I/DEBUG:     55bc6518 56a0cbe5 fffffbdf 00000000 7973a63b  ...V........;.sy
09-17 13:15:37.649 24628-24628/? I/DEBUG:     55bc6528 58527a78 55bc65f4 56a0967b 58527a78  xzRX.e.U{..VxzRX
09-17 13:15:37.649 24628-24628/? I/DEBUG:     55bc6538 55bc65f4 40126fbc 000017b1 58527a78  .e.U.o.@....xzRX
09-17 13:15:37.649 24628-24628/? I/DEBUG: code around pc:
09-17 13:15:37.649 24628-24628/? I/DEBUG:     40131608 1afffffb e594c014 e35c0000 0a000018  ..........\.....
09-17 13:15:37.649 24628-24628/? I/DEBUG:     40131618 e30b2fff e3a01027 e34d2ead e3a04000  ./..'.....M..@..
09-17 13:15:37.649 24628-24628/? I/DEBUG:     40131628 e5421552 ebffefb6 e3a01006 ebfff46e  R.B.........n...
09-17 13:15:37.649 24628-24628/? I/DEBUG:     40131638 e28d1008 e3a03201 e1a02001 e3a00006  .....2... ......
09-17 13:15:37.649 24628-24628/? I/DEBUG:     40131648 e58d3010 e58d4008 e58d400c ebfff23a  .0...@...@..:...
09-17 13:15:37.649 24628-24628/? I/DEBUG: code around lr:
09-17 13:15:37.649 24628-24628/? I/DEBUG:     40137d40 4a000009 e1d430fc e1a00004 e2455001  ...J.0.......PE.
09-17 13:15:37.649 24628-24628/? I/DEBUG:     40137d50 e2844054 e3530000 da000001 e12fff37  T@....S.....7./.
09-17 13:15:37.649 24628-24628/? I/DEBUG:     40137d60 e1866000 e3750001 1afffff5 e5988000  .`....u.........
09-17 13:15:37.650 24628-24628/? I/DEBUG:     40137d70 e3580000 1affffee e1a00006 e8bd81f0  ..X.............
09-17 13:15:37.650 24628-24628/? I/DEBUG:     40137d80 0003c260 e92d45f0 e0070291 e59f40a8  `....E-......@..
09-17 13:15:37.650 24628-24628/? I/DEBUG: memory map around fault addr deadbaad:
09-17 13:15:37.650 24628-24628/? I/DEBUG:     bec6f000-bec90000 [stack]
09-17 13:15:37.650 24628-24628/? I/DEBUG:     (no map for address)
09-17 13:15:37.650 24628-24628/? I/DEBUG:     ffff0000-ffff1000 [vectors]

comment:13 by mim2011, 5 years ago

@antoniou79
restoring these lines in bladerunner.cpp

	Graphics::PixelFormat format = screenPixelFormat();
	initGraphics(640, 480, &format);

and blade runner.h

	// Should be a format supported by Android port
	return Graphics::PixelFormat(2, 5, 5, 5, 1, 11, 6, 1, 0);

it works

Last edited 5 years ago by mim2011 (previous) (diff)

comment:14 by antoniou79, 5 years ago

@mim2011
Could you test with this code instead of the lines you restored?

	Common::List<Graphics::PixelFormat> tmpSupportedFormatsList = g_system->getSupportedFormats();
	if (!tmpSupportedFormatsList.empty()) {
		_screenPixelFormat = tmpSupportedFormatsList.front();
	} else {
		_screenPixelFormat = Graphics::PixelFormat(2, 5, 5, 5, 1, 11, 6, 1, 0);
	}
	initGraphics(640, 480, &_screenPixelFormat);
Last edited 5 years ago by antoniou79 (previous) (diff)

comment:15 by mim2011, 5 years ago

@antoniou79
hi, and thank you.
I tested it only on the Samsung phone with Android 5.1.1 but i think that it is the right solution.
I will check later on the 4.2 tablet and report back here

comment:16 by mim2011, 5 years ago

@antoniou79
i can confirm that the fix is working also on 4.2.2
thank you

comment:17 by antoniou79, 5 years ago

Owner: set to antoniou79
Resolution: fixed
Status: newpending

Ok, I've pushed the above fix to master with this commit:
https://github.com/scummvm/scummvm/commit/181055b62a3084b569b19861d49fa3035888594a

I'm leaving the ticket as pending for a few days, and if no further issues are encountered I'll be closing it in the weekend.

comment:18 by ccawley2011, 5 years ago

Cc: ccawley2011 added

Out of curiosity, do The Journeyman Project: Pegasus Prime, Urban Runner or Myst: Masterpiece Edition work on these devices, or do they crash in the same way that Blade Runner did?

comment:19 by mim2011, 5 years ago

@ccawley2011
i can not test the ones on your list, but riven works

comment:20 by mim2011, 5 years ago

@antoniou79

I have seen that the same code is used also on the glk engine(s). Your fix will be a solution also there.

comment:21 by raziel-, 4 years ago

Summary: AndroidSDL Blade Runner Engine crashBACKENDS: Android - Blade Runner Engine crash (SDL)

@mim2011
@antoniou79

The fix has been merged on Sep 19, 2019

Can this pending item be closed?

comment:22 by sev-, 4 years ago

Priority: highnormal

comment:23 by sev-, 4 years ago

Owner: changed from antoniou79 to sev-
Status: pendingclosed
Note: See TracTickets for help on using tickets.