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

Crash when navigating to Tracks while recording #4398

Open
klausr64 opened this issue Feb 24, 2025 · 6 comments
Open

Crash when navigating to Tracks while recording #4398

klausr64 opened this issue Feb 24, 2025 · 6 comments

Comments

@klausr64
Copy link

Description

While recording a track going to "My Places" -> Tracks makes the app crash.

Steps to reproduce

Start a new recording by pressing the "REC" button from the widget.
In the main menu navigate to "My Places". On the bottom tap on "Tracks".

Actual result

The app crashes (vanishes from screen, but is accessible in the list of open apps, when switched to it restarts).
The recording then continues but I am not able to access the "Tracks" section.
When the recording is stopped the behaviour is as expected.

Expected result

"Tracks" should be accessible during recording as well as without recording.

Feb. 24, 2025 13:52.log

Your Environment (required)

Warning: Logs may contain information you deem sensitive.
Review this carefully before posting your issue!

OsmAnd Version: 4947
iOS version: 18.3.1
Device model: iPhone SE 2. Generation

@klausr64
Copy link
Author

While looking at the attached log I found a workaround by moving the reported gpx-files from the top-level "GPX" folder underneath the "rec" folder inside.
The app now does not crash any more.
Nevertheless, this seems to be an uncaught exception.
Note that the gpx-files can be displayed apparently correctly on the map. But in the list they display with zero length.

@yuriiurshuliak
Copy link

I was unable to reproduce the bug on my end. When I followed the steps you provided:

  1. Started a new recording by pressing the "REC" button from the widget.
  2. Navigated to "My Places" from the main menu.
  3. Tapped on "Tracks" at the bottom.

I was able to access the "Tracks" section both during and after recording without any crashes.

Could you please try our TestFlight version and let me know if the crash occurs there? You can join the TestFlight here: TestFlight Link.

OsmAnd 4.9.5 (4982)

IMG_6151.MP4

@klausr64
Copy link
Author

It seems the problem is caused by the presence of certain gpx-files inside the GPX-folder.
When the file is moved inside the rec-folder the problem is gone.

Files of type gpx are apparently not allowed to be attached. So here is a snippet of the section at the very end of the file which the log seems to be claiming about:

    <extensions>
        <locus:lscolorbase>#C8FF0000</locus:lscolorbase>
        <locus:lsunits>PIXELS</locus:lsunits>
        <locus:lswidth>3.0</locus:lswidth>
        <osmand:color>FF0000</osmand:color>
        <osmand:opacity>0.78</osmand:opacity>
        <osmand:width>3.0</osmand:width>
        <osmand:activity>walking</osmand:activity>
    </extensions>
</trk>

@yuriiurshuliak
Copy link

@klausr64 To help us analyze the problem further, could you please provide the specific GPX file that causes the crash?

You can attach it here in a compressed ZIP format or send it to [email protected] with a note mentioning "GPX file from klausr64".

@yuriiurshuliak
Copy link

I tried to reproduce the crash with your GPX track 2021-09-04-19_14_07.gpx. Here’s what I did:

  1. Imported the submitted GPX track into My PlacesTracksImport.
  2. Started a new recording by pressing the "REC" button from the widget.
  3. Navigated to My Places from the main menu.
  4. Tapped on "Tracks" at the bottom.

I was able to access the "Tracks" section both during and after recording without any crashes.

Could you please clarify whether you have tried using our TestFlight version of the application? Does this crash reproduce there?

Additionally, could you provide us with the log files? You can find them by going to iOS SettingsAnalyticsAnalytics Data → OsmAnd Maps .ips-format file. These files should appear after the crash and will help us investigate the issue further.

OsmAnd 4.9.5 (4984)

IMG_6171.MP4

@yuriiurshuliak
Copy link

I couldn't reproduce the crash in any scenario:

  • Menu > My Places > Back → No crash.
  • During real navigation & recording → No crash.
  • During location simulation & recording → No crash.

It seems like a local issue. Logs attached for further investigation.
Mar 03, 2025 14_56.zip

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

2 participants