saintbyte / openbmap

Automatically exported from code.google.com/p/openbmap
Other
1 stars 1 forks source link

Screen rotation occasionally crashes Radiobeacon #72

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Make sure display rotation is enabled.
2. Start logging.
3. Switch to map view.
4. Rotate the device, alternating betwen portrait and landscape a few times.

What is the expected output? What do you see instead?
I would Radiobeacon to operate normally. Instead, a few rotations in rapid 
succession will make it crash.

What version of the product are you using? On what operating system?
0.8.4 (as downloaded from F-Droid), on Cyanogenmod 11.0m11

Please provide any additional information below.
This frequently happens when the cell is in a sports armband and display 
rotation is on. Crashes only happen when I'm in Map View, not in Overview. A 
quick view at the logcat (starting in line 542) indeed confirms that the 
exception occurs somewhere in the Mapsforge code. I suspect that this is 
triggered by two rotation in rapid succession, when the view is destroyed 
before it is fully initialized. Introducing an extra null pointer check will 
probably solve this.

Original issue reported on code.google.com by mich...@vonglasow.com on 27 Feb 2015 at 9:18

Attachments:

GoogleCodeExporter commented 9 years ago
Thanks for reporting..

I can reproduce this issue on my Nexus 4.
I filed an issue over at mapsforge 
(https://github.com/mapsforge/mapsforge/issues/584)

Original comment by wish7code on 28 Feb 2015 at 7:56

GoogleCodeExporter commented 9 years ago
Mapsforge fixed that issue upstream, so we'll include that in the next release

Original comment by wish7code on 11 Mar 2015 at 8:18