Comments (8)
Definitely a bug.... I didn't get that but may be just something I didn't handle properly....
It's not clear to me why mCurrentNotification
is null in https://github.com/3v1n0/GMapsParser/blob/master/navparser/src/main/java/me/trevi/navparser/service/NavigationListener.kt#L168 might be worth checking for it, can you maybe debug the library?
If you got an event for the navigation added it's quite weird that the notification is null...
Do you get it when using the embedded example app?
from gmapsparser.
I ran my app in debug mode with breakpoint at NavigationListener.kt:168.
It never had null value there and it won't crash.
The peculiar thing is the app crashes when I simply 'Run'. But does not crash in debugging mode 😕
from gmapsparser.
Mhmh, i expect a race then... Could be that the coroutine thread isn't doing what I'm expected is doing?
from gmapsparser.
As for the embedded example app, I can't get it build in Android Studio.
I tried opening GMapsParser directory as a project as well as GMapsParser/app as a project in Android Studio. Both throw gradle errors when it starts syncing.
Attached gradle logs:
GMapsParser-AppGradle.log
GMapsParserGradle.log
from gmapsparser.
Mhmh, i expect a race then... Could be that the coroutine thread isn't doing what I'm expected is doing?
Yes it must be a race condition.
As sometimes even in normal execution the crash does not happen. It is intermittent
from gmapsparser.
I have the same issue too ...
java.lang.NullPointerException
at me.trevi.navparser.service.NavigationListener.onNotificationRemoved(NavigationListener.kt:168)
at android.service.notification.NotificationListenerService.onNotificationRemoved(NotificationListenerService.java:420)
at android.service.notification.NotificationListenerService.onNotificationRemoved(NotificationListenerService.java:446)
at android.service.notification.NotificationListenerService.onNotificationRemoved(NotificationListenerService.java:459)
at android.service.notification.NotificationListenerService$MyHandler.handleMessage(NotificationListenerService.java:2176)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loop(Looper.java:246)
at android.app.ActivityThread.main(ActivityThread.java:8506)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:602)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1130)
Would be great if you can fix it atleast temporarily since our users are using our app while riding their motorcycles and when the navigation crashes, they have to stop take their gloves off and do the whole process again.
Other than this the library is kickass and i cant thank you enough for this..
from gmapsparser.
And as per crashlytics this is our number 1 issue as of now ... I still use Java and wish I could have worked on it . Is there anything I can help you with ?
from gmapsparser.
I've added some more checks on the callback, hopefully should not crash anymore... It may happen only if the value isn't unset, unless something weird happens in the coroutine.
Let me know.
PS: In what project are you using this?
from gmapsparser.
Related Issues (6)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gmapsparser.