Opened 5 years ago
Last modified 5 years ago
#1352 new defect/bug
Android crashes if dbg_printf() is called
Reported by: | wiki.navit-project.org/index.php/user:tryagain | Owned by: | KaZeR |
---|---|---|---|
Priority: | major | Milestone: | |
Component: | core | Version: | git master |
Severity: | normal | Keywords: | |
Cc: |
Description
Android version seems to crash with default nvit.xml
I have found that offending config line is
<debug name="navit:popup_printf_cb" dbg_level="debug" level="0"/>
If I switch dbg_level to "error" or remove that line completely, no crash happens.
Changing name to point to existing or not existing function makes no change.
As we currently have no popup_printf_cb function, this line makes no sense.
As a workaround, I will remove this line from the navit_shipped.xml.
But we have to investigate, why entering dbg_printf() on Android makes Navit crash.
Linux version seems to be unaffected.
Change History (2)
comment:1 Changed 5 years ago by wiki.navit-project.org/index.php/user:tryagain
comment:2 Changed 5 years ago by wiki.navit-project.org/index.php/user:tryagain
Logcat is here https://pastebin.com/5CC1E2nj
Note: See
TracTickets for help on using
tickets.
The workaround is applied with https://github.com/navit-gps/navit/commit/48f4f856a8b2fd2dcff0432b3e76fc716f3dd4f9
We still have to figure out what makes navit crash if debug is activated.