-
Notifications
You must be signed in to change notification settings - Fork 1.3k
"mmap failed errno 12 Out of memory" after several minutes of Location tracking #6429
Comments
Did a quick test on my Nexus 5x using the same activity you pointed out and was unable to reproduce. I had it follow a fake route (camera was constantly moving) and let it run for ~20 minutes. I'll have to try later on using a Nexus 7. |
I tried another Nexus 7 device and got the same crash. |
Below is a callstack from Nexus 7, but for other app that uses the same code for tracking as in the LocationTrackingActivity: F/libc (15974): Fatal signal 11 (SIGSEGV), code 1, fault addr 0x14 in tid 15974 (x.test.mapbox) |
Got my hands on the office Nexus 7 and tested this out. A few differences were that I'm using the latest beta, cc: @zugaldia |
I'll try the beta on Oct 10. Don't have access to Nexus 7 right now. |
Was able to reproduce it on 4.2.0-beta.3 + Android 5.1.1 But it's not reproduced after update up to Android 6.0.1 |
Could you share any of your code to help us reproduce this issue? Otherwise is this ticket safe to close? |
Attached code. It's based on official examples and the issue was also reproduced using official Mapbox Dev Preview app from Google play (LocationTrackingActivity) as I stated in the initial post. Please let me know if additional details are needed. |
@tobrun do you have a older device by chance to test this issue out on? |
MyLocationView and related tracking modes can now be found in the related LocationLayer plugin |
Facing the same issue How is it closed didn't understand your explanation. What does LocationLayer plugin has to do with this ? @tobrun |
@niteshgrg The location layer plugin is gonna replace the functionality currently provided by the features in |
Platform: Android 5.1.1
Device: Nexus 7
Mapbox SDK version: 4.1.1
Steps to trigger behavior
The same issue occurs without enabled MyLocation if map's center is changed every second using animateCamera() API.
Expected behavior
There is no performance degradation and crashes.
Actual behavior
Performance of animation deteriorated after several minutes and finally a crash is occured:
W/Adreno-GSL( 6482): <sharedmem_gpumem_alloc_id:1554>: sharedmem_gpumem_alloc: mmap failed errno 12 Out of memory
E/Adreno-GSL( 6482): <gsl_memory_alloc_pure:1576>: GSL MEM ERROR: kgsl_sharedmem_alloc ioctl failed.
F/libc ( 6482): Fatal signal 11 (SIGSEGV), code 1, fault addr 0x14 in tid 6482 (pboxandroiddemo)
The text was updated successfully, but these errors were encountered: