objectbox-java: Native crash when profiling the app with Android Studio 3.2 canary
Issue Basics
- ObjectBox version (are using the latest version?): 1.5.0
- Reproducibility: always
Reproducing the bug
Description
Launch the app in profiling mode in latest AS 3.2 canary.
Logs & stackstraces
2018-06-14 12:09:18.371 11937-11984/A/libc: Fatal signal 11 (SIGSEGV), code 1, fault addr 0x1f in tid 11984 (RxCachedThreadS)
2018-06-14 12:09:18.429 12301-12301/? A/DEBUG: *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
2018-06-14 12:09:18.429 12301-12301/? A/DEBUG: Build fingerprint: 'samsung/starltexx/starlte:8.0.0/R16NW/G960FXXU1ARD4:user/release-keys'
2018-06-14 12:09:18.429 12301-12301/? A/DEBUG: Revision: '26'
2018-06-14 12:09:18.429 12301-12301/? A/DEBUG: ABI: 'arm'
2018-06-14 12:09:18.429 12301-12301/? A/DEBUG: pid: 11937, tid: 11984, name: RxCachedThreadS
2018-06-14 12:09:18.429 12301-12301/? A/DEBUG: signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x1f
2018-06-14 12:09:18.429 12301-12301/? A/DEBUG: Cause: null pointer dereference
2018-06-14 12:09:18.429 12301-12301/? A/DEBUG: r0 c80f1080 r1 ffffffff r2 00000013 r3 c8a53948
2018-06-14 12:09:18.429 12301-12301/? A/DEBUG: r4 c80f1028 r5 c80f1080 r6 00000000 r7 c80f0fd0
2018-06-14 12:09:18.429 12301-12301/? A/DEBUG: r8 00000008 r9 c8a927e7 sl 00000001 fp 00000000
2018-06-14 12:09:18.429 12301-12301/? A/DEBUG: ip c8af0b7c sp c80f0fd0 lr c8ac6a33 pc c8ac6c0c cpsr 80070030
2018-06-14 12:09:18.430 4406-4406/? E/audit: type=1400 audit(1528967358.426:5297): avc: denied { search } for pid=12301 comm="crash_dump32" name="" dev="dm-3" ino=590481 scontext=u:r:crash_dump:s0:c512,c768 tcontext=u:object_r:app_data_file:s0:c512,c768 tclass=dir permissive=0 SEPF_SM-G960F_8.0.0_0001 audit_filtered
2018-06-14 12:09:18.430 4406-4406/? E/audit: type=1300 audit(1528967358.426:5297): arch=40000028 syscall=322 per=8 success=no exit=-13 a0=ffffff9c a1=e77c3620 a2=20000 a3=0 items=0 ppid=1 pid=12301 auid=4294967295 uid=10254 gid=10254 euid=10254 suid=10254 fsuid=10254 egid=10254 sgid=10254 fsgid=10254 tty=(none) ses=4294967295 comm="crash_dump32" exe="/system/bin/crash_dump32" subj=u:r:crash_dump:s0:c512,c768 key=(null)
2018-06-14 12:09:18.430 4406-4406/? E/audit: type=1327 audit(1528967358.426:5297): proctitle=63726173685F64756D703332003131393834003132323939
2018-06-14 12:09:18.431 12301-12301/? A/DEBUG: backtrace:
2018-06-14 12:09:18.431 12301-12301/? A/DEBUG: #00 pc 00084c0c /data/app/-tsII1NBO7czYaOApnkUgzw==/lib/arm/libobjectbox.so
2018-06-14 12:09:18.431 12301-12301/? A/DEBUG: #01 pc 00084a2f /data/app/-tsII1NBO7czYaOApnkUgzw==/lib/arm/libobjectbox.so
2018-06-14 12:09:18.431 12301-12301/? A/DEBUG: #02 pc 0006ea47 /data/app-tsII1NBO7czYaOApnkUgzw==/lib/arm/libobjectbox.so (__gxx_personality_v0+330)
2018-06-14 12:09:18.431 12301-12301/? A/DEBUG: #03 pc 0014cc8c /data/data/libperfa_arm.so
2018-06-14 12:09:18.431 12301-12301/? A/DEBUG: #04 pc 0014d5b0 /data/data/libperfa_arm.so
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Comments: 17 (8 by maintainers)
Me too, the same problem happened.
I have not used objectbox in my case, maybe it’s the bug of android native code profiler?
My issue turned out to be an issue with updating an entity without following the instructions. Nuking and rebuilding worked for me. Hopefully this can help other people
Sure. I will update this issue with each Canary release.
Does one of those “cause” the crash (profiling mode, AS 3.2)?