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

Exception reading rawTrack #671

Closed
devemux86 opened this issue Feb 12, 2024 · 1 comment
Closed

Exception reading rawTrack #671

devemux86 opened this issue Feb 12, 2024 · 1 comment

Comments

@devemux86
Copy link
Contributor

devemux86 commented Feb 12, 2024

This can often happen when we do a lot of route testing and a termination of BRouter.

There is a *_rawtrack.dat file in /brouter/modes/ folder but with 0 size!

Then BRouter hangs as it can't read the rawtrack file, it keeps throwing an exception
and user must delete the file manually (not possible in new Android and data folder)
or re-download any route segment.

As OsmTrack.readBinary already returns a null result, we should not also throw a RunTimeException here?

https://github.com/abrensch/brouter/blob/master/brouter-core/src/main/java/btools/router/OsmTrack.java#L288

I can provide a pull request if you agree.

@devemux86
Copy link
Contributor Author

Another similar user case was reported here:

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

1 participant