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

Native crashes being reported by users #28

Open
riclage opened this issue Oct 2, 2014 · 2 comments
Open

Native crashes being reported by users #28

riclage opened this issue Oct 2, 2014 · 2 comments

Comments

@riclage
Copy link

riclage commented Oct 2, 2014

Hi,

I believe the following code is causing my app to crash on some devices:

StackBlurManager stackBlurManager = new StackBlurManager(normalBitmap);
blurredBitmap = stackBlurManager.processNatively(100);

I can't know for sure because native crashes do not provide any stack trace but there is just this one place in my code where I'm calling the method processNatively().

I'm not sure if it helps but here is the backtrace provided:
#00 pc 0000156a /data/app-lib/.../libblur.so (stackblurJob+1713)
#1 pc 00001b1d /data/app-lib/.../libblur.so (Java_com_enrique_stackblur_NativeBlurProcess_functionToBlur+96)
#2 pc 00158a64 /data/dalvik-cache/data@app@[email protected]

This crash seems to happen regardless of API level (my app runs on 4.0+) or device. I get one crash report roughly every 2 days.

Any ideas on how I can debug this or at least catch the crash somehow?

Thank you,
Ricardo

@illarionov
Copy link
Contributor

Try the path from #29 pull request please.
I also recommend to set the number of threads to 1. Multithread version is a little bit buggy now (#21)

@riclage
Copy link
Author

riclage commented Oct 3, 2014

Thanks, will look into it. How do I set the number of threads?

I'm also trying to add the library https://github.com/xroche/coffeecatch to yours to catch exceptions within the native code and propagate it as a Java error. Maybe it's something you could look into as well.

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

2 participants