objectbox / objectbox-java

Android Database - first and fast, lightweight on-device vector database
https://objectbox.io
Apache License 2.0
4.41k stars 302 forks source link

nativeCreateCursor crash #1059

Closed unengchen closed 2 years ago

unengchen commented 2 years ago

Describe the bug debug application, everytime running this crash (long cursorHandle = nativeCreateCursor(transaction, entityInfo.getDbName(), entityClass);) , and do not catch exception。 the error detail:

2022-03-14 18:40:09.919 8350-8389/com.zcla.bankaccesscontrol A/libc: Fatal signal 7 (SIGBUS), code 2, fault addr 0xeecf900a in tid 8389 (DefaultDispatch), pid 8350 (nkaccesscontrol)
2022-03-14 18:40:10.028 8460-8460/? A/DEBUG: *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
2022-03-14 18:40:10.028 8460-8460/? A/DEBUG: Build fingerprint: 'rockchip/rk3326_evb/rk3326_evb:8.1.0/OPM8.181205.001/150642:userdebug/test-keys'
2022-03-14 18:40:10.028 8460-8460/? A/DEBUG: Revision: '0'
2022-03-14 18:40:10.028 8460-8460/? A/DEBUG: ABI: 'arm'
2022-03-14 18:40:10.028 8460-8460/? A/DEBUG: pid: 8350, tid: 8389, name: DefaultDispatch  >>> com.zcla.bankaccesscontrol <<<
2022-03-14 18:40:10.028 8460-8460/? A/DEBUG: signal 7 (SIGBUS), code 2 (BUS_ADRERR), fault addr 0xeecf900a
2022-03-14 18:40:10.028 8460-8460/? A/DEBUG:     r0 00000010  r1 00001000  r2 eecf9000  r3 00000000
2022-03-14 18:40:10.028 8460-8460/? A/DEBUG:     r4 d12e4a80  r5 00000020  r6 00000008  r7 d08f9140
2022-03-14 18:40:10.028 8460-8460/? A/DEBUG:     r8 d12831fc  r9 ed8ea940  sl 00000000  fp d12831f8
2022-03-14 18:40:10.028 8460-8460/? A/DEBUG:     ip d12831f0  sp d08f90d8  lr d12831c0  pc d17d6e14  cpsr 600e0030
2022-03-14 18:40:10.034 8460-8460/? A/DEBUG: backtrace:
2022-03-14 18:40:10.034 8460-8460/? A/DEBUG:     #00 pc 00155e14  /data/app/com.zcla.bankaccesscontrol-l8qJhbFpzmGc_2qyoT9RFw==/base.apk (offset 0x6e000)
2022-03-14 18:40:10.034 8460-8460/? A/DEBUG:     #01 pc 00159f21  /data/app/com.zcla.bankaccesscontrol-l8qJhbFpzmGc_2qyoT9RFw==/base.apk (offset 0x6e000)
2022-03-14 18:40:10.034 8460-8460/? A/DEBUG:     #02 pc 00159907  /data/app/com.zcla.bankaccesscontrol-l8qJhbFpzmGc_2qyoT9RFw==/base.apk (offset 0x6e000)
2022-03-14 18:40:10.035 8460-8460/? A/DEBUG:     #03 pc 0015376f  /data/app/com.zcla.bankaccesscontrol-l8qJhbFpzmGc_2qyoT9RFw==/base.apk (offset 0x6e000)
2022-03-14 18:40:10.035 8460-8460/? A/DEBUG:     #04 pc 00153cdd  /data/app/com.zcla.bankaccesscontrol-l8qJhbFpzmGc_2qyoT9RFw==/base.apk (offset 0x6e000)
2022-03-14 18:40:10.035 8460-8460/? A/DEBUG:     #05 pc 000fb53b  /data/app/com.zcla.bankaccesscontrol-l8qJhbFpzmGc_2qyoT9RFw==/base.apk (offset 0x6e000)
2022-03-14 18:40:10.035 8460-8460/? A/DEBUG:     #06 pc 000fb7d7  /data/app/com.zcla.bankaccesscontrol-l8qJhbFpzmGc_2qyoT9RFw==/base.apk (offset 0x6e000)
2022-03-14 18:40:10.035 8460-8460/? A/DEBUG:     #07 pc 000f6445  /data/app/com.zcla.bankaccesscontrol-l8qJhbFpzmGc_2qyoT9RFw==/base.apk (offset 0x6e000)
2022-03-14 18:40:10.035 8460-8460/? A/DEBUG:     #08 pc 000eb78d  /data/app/com.zcla.bankaccesscontrol-l8qJhbFpzmGc_2qyoT9RFw==/base.apk (offset 0x6e000)
2022-03-14 18:40:10.035 8460-8460/? A/DEBUG:     #09 pc 000f50c1  /data/app/com.zcla.bankaccesscontrol-l8qJhbFpzmGc_2qyoT9RFw==/base.apk (offset 0x6e000)
2022-03-14 18:40:10.036 8460-8460/? A/DEBUG:     #10 pc 000efcb1  /data/app/com.zcla.bankaccesscontrol-l8qJhbFpzmGc_2qyoT9RFw==/base.apk (offset 0x6e000)
2022-03-14 18:40:10.036 8460-8460/? A/DEBUG:     #11 pc 00066141  /data/app/com.zcla.bankaccesscontrol-l8qJhbFpzmGc_2qyoT9RFw==/base.apk (offset 0x6e000)
2022-03-14 18:40:10.036 8460-8460/? A/DEBUG:     #12 pc 00036479  /data/app/com.zcla.bankaccesscontrol-l8qJhbFpzmGc_2qyoT9RFw==/oat/arm/base.odex (offset 0x33000)
2022-03-14 18:40:12.347 292-292/? E//system/bin/tombstoned: Tombstone written to: /data/tombstones/tombstone_13

when I use browser to watch data,it shows error: Query response has unknown format. See console for details.: undefined

Basic info (please complete the following information):

greenrobot-team commented 2 years ago

Thanks for reporting! However, the tombstone log output you submitted does not appear to contain ObjectBox code in the backtrace.

Regardless, there was a similar issue reported in #984. Is that your issue? In that case, please try again with the latest version of ObjectBox (3.1.2).

If this then still happens, please share the objects inserted and the code that is crashing.

no-response[bot] commented 2 years ago

Without additional information, we are unfortunately not sure how to resolve this issue. Therefore this issue has been automatically closed. Feel free to comment with additional details and we can re-open this issue.