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

Request a permission causes a crash in Android O #22

Closed
waninkoko opened this issue Aug 30, 2017 · 3 comments
Closed

Request a permission causes a crash in Android O #22

waninkoko opened this issue Aug 30, 2017 · 3 comments
Assignees

Comments

@waninkoko
Copy link

waninkoko commented Aug 30, 2017

According to some crash reports I'm receiving, there is an issue happening in Android O when a method annotated with @AskPermission is called.

This is the crash stacktrace:

Fatal Exception: com.canelmas.let.LetException: Proceeding with the annotated method failed!
       at com.canelmas.let.RuntimePermissionRequest.proceed(RuntimePermissionRequest.java:139)
       at com.canelmas.let.RuntimePermissionRequest.proceed(RuntimePermissionRequest.java:52)
       at com.canelmas.let.LetAspect.ajc$inlineAccessMethod$com_canelmas_let_LetAspect$com_canelmas_let_RuntimePermissionRequest$proceed(LetAspect.java:1)
       at com.canelmas.let.LetAspect.annotatedMethods(LetAspect.java:57)

EDIT: This happens only if the permissions is granted. Looks like the crash happens when the library tries to invoke the method.

@canelmas canelmas self-assigned this Aug 31, 2017
@canelmas
Copy link
Owner

@waninkoko hey,

is this the whole stacktrace? May your annotated method be throwing any runtimexception?

I've tested the library within an app with O, everything seemed ok.

@waninkoko
Copy link
Author

@canelmas I just copied the relevant part of the stacktrace (the next call in the stack would be the annotated method).

I have received a new crash report where looks like the method is actually throwing a RuntimeException. I hope to come back with good news asap.

@waninkoko
Copy link
Author

Confirmed that the crash was due to an exception in the annotated method. Sorry for the false alarm!

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

No branches or pull requests

2 participants