Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

crash happened while build a new boxstore. #369

Closed
Oo121oO opened this issue Feb 21, 2018 · 5 comments
Closed

crash happened while build a new boxstore. #369

Oo121oO opened this issue Feb 21, 2018 · 5 comments

Comments

@Oo121oO
Copy link

Oo121oO commented Feb 21, 2018

a native crash was found here. code bellow:

MyObjectBox.builder().name(name)
.androidContext(context.getApplicationContext())
.build();

all crashed mobile phone info is more or less like these:
until now there were 40 mobile phones crashed.

  1. Operating system: Android
    0.0.0 Linux 4.1.18-g455cb5e RxJava2 support #1 SMP PREEMPT Tue Jan 16 03:34:55 CST 2018 armv7l

  2. CPU: arm
    ARMv1 ARM part(0x4100d030) features: half,thumb,fastmult,vfpv2,edsp,neon,vfpv3,tls,vfpv4,idiva,idivt
    8 CPUs

  3. Android 7.0+

Native crash stack is here:

Thread 77 (crashed)
crashed thread info start
frame_count = 680
0 libc.so + 0x4a680 (tgkill+0x0000000c)
r0 = 0x00000000 r1 = 0x00004691 r2 = 0x00000006 r3 = 0x00000008
r4 = 0xc57ce978 r5 = 0x00000006 r6 = 0xc57ce920 r7 = 0x0000010c
r8 = 0x00000001 r9 = 0xffffffff r10 = 0x00000000 r12 = 0x00000011
fp = 0xffffffff sp = 0xc57cc7c8 lr = 0xee7b2e17 pc = 0xee7b5680
Found by: given as instruction pointer in context
1 libc.so + 0x1d8b7 (raise+0x0000000c)
sp = 0xc57cc7e0 pc = 0xee7888b9
Found by: stack scanning
2 libc.so + 0x19403 (__atomic_inc+0x0000003e)
sp = 0xc57cc7e8 pc = 0xee784405
Found by: stack scanning
3 libc.so + 0x4f541 (__swrite+0x0000004a)
sp = 0xc57cc7f8 pc = 0xee7ba543
Found by: stack scanning
4 libobjectbox.so + 0x10d21a
sp = 0xc57cc804 pc = 0xc008621c
Found by: stack scanning
5 libc.so + 0x170e6 (abort+0x00000006)
sp = 0xc57cc810 pc = 0xee7820e8
Found by: stack scanning
6 libc.so + 0x1b8b5 (__libc_current_sigrtmin+0x000009f8)
sp = 0xc57cc818 pc = 0xee7868b7
Found by: stack scanning
...

one more thing is that our abi is only support armabi-v7, is there any matter with this?

if you need more details, please contact me.

@Oo121oO Oo121oO changed the title crash happened while build a boxstore. crash happened while build a new boxstore. Feb 21, 2018
@greenrobot
Copy link
Member

greenrobot commented Feb 21, 2018

We would need more info, e.g. do you use multi process? Is there any pattern visible about the devices (e.g. single OS, specific Brands, only ARM 32 bit, etc.). Is there a crash message e.g. SIGSEGV? Etc.

Also, how much percent are 40 device? If you are in the millions, it might be a tiny percentage.

@Oo121oO
Copy link
Author

Oo121oO commented Feb 22, 2018

Our App is using multi process, but Objectbox access is only on main process.

The mobile Brands list bellow:
Xiaomi MIX 2, Xiaomi MI 6, ZUK Z2131, VIVO X9L, Meizu M5 Note, OnePlus A5000, Samsung G9208, HUAWEI BLN-AL40, HUAWEI NXT-AL10, HUAWEI PRA-AL00X, etc

All crash message is SIGABRT.

of-cause our App DAU is more than 20, 000, and this crash is 3.5% of all crash percentage.

This might be help.

[thread RxCachedThreadScheduler-1, id 8288]
io.objectbox.BoxStore.nativeCreate(Native Method)
io.objectbox.BoxStore.(BoxStore.java:194)
io.objectbox.b.a(BoxStoreBuilder.java:308)
com.duowan.minivideo.objectbox.ObjectboxServiceImpl.c(ObjectboxServiceImpl.java:80)
com.duowan.minivideo.objectbox.ObjectboxServiceImpl.a(ObjectboxServiceImpl.java:50)
com.duowan.minivideo.objectbox.c.accept(Unknown Source)
...

@greenrobot
Copy link
Member

Our App is using multi process, but Objectbox access is only on main process.

Are you sure ObjectBox is not even created in other processes? This has been a problem before in another app.

@Oo121oO
Copy link
Author

Oo121oO commented Feb 22, 2018

I'm pretty sure that. Because before we use Objectbox, we have check if it is on main process. If NOT, return or throw an Exception.

And I really know that Objectbox does not support multi process. I check this with yours.

@greenrobot-team
Copy link
Member

Closing this issue due to inactivity. 💤 Please re-open with more details or submit a new issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants