GithubHelp home page GithubHelp logo

Comments (8)

3v1n0 avatar 3v1n0 commented on August 25, 2024

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.

sharan-nyn avatar sharan-nyn commented on August 25, 2024

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.

3v1n0 avatar 3v1n0 commented on August 25, 2024

Mhmh, i expect a race then... Could be that the coroutine thread isn't doing what I'm expected is doing?

from gmapsparser.

sharan-nyn avatar sharan-nyn commented on August 25, 2024

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.

sharan-nyn avatar sharan-nyn commented on August 25, 2024

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.

lohith8099 avatar lohith8099 commented on August 25, 2024

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.

lohith8099 avatar lohith8099 commented on August 25, 2024

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.

3v1n0 avatar 3v1n0 commented on August 25, 2024

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 photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.