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

Mapbox library causes crash on Replicant #496

Closed
ghost opened this issue Aug 5, 2018 · 12 comments
Closed

Mapbox library causes crash on Replicant #496

ghost opened this issue Aug 5, 2018 · 12 comments
Labels
bug 🐞 A functional defect or unexpected behavior. upstream 🏞️ Related to an upstream issue.

Comments

@ghost
Copy link

ghost commented Aug 5, 2018

Since version 2.0 (including the latest 2.0.2) the app crashes when a transportation network is selected. Version 1.1.9 works perfectly. Reinstalling/removing data doesn't help.

OS: Replicant 6.0003

@grote
Copy link
Owner

grote commented Aug 5, 2018 via email

@ghost
Copy link
Author

ghost commented Aug 5, 2018

08-05 17:28:13.399 D/libEGL (19619): Emulator without GPU support detected. Fallback to software renderer.
08-05 17:28:13.469 D/libEGL (19619): loaded /system/lib/egl/libGLES_android.so
08-05 17:28:13.534 E/AndroidRuntime(19619): FATAL EXCEPTION: GLThread 591
08-05 17:28:13.534 E/AndroidRuntime(19619): Process: de.grobox.liberario, PID: 19619
08-05 17:28:13.534 E/AndroidRuntime(19619): Theme: themes:{}
08-05 17:28:13.534 E/AndroidRuntime(19619): com.mapbox.mapboxsdk.maps.renderer.egl.EGLConfigException: eglChooseConfig() failed
08-05 17:28:13.534 E/AndroidRuntime(19619): at com.mapbox.mapboxsdk.maps.renderer.egl.EGLConfigChooser.chooseConfig(EGLConfigChooser.java:65)
08-05 17:28:13.534 E/AndroidRuntime(19619): at android.opengl.GLSurfaceView$EglHelper.start(GLSurfaceView.java:1024)
08-05 17:28:13.534 E/AndroidRuntime(19619): at android.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1401)
08-05 17:28:13.534 E/AndroidRuntime(19619): at android.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1240)
08-05 17:28:13.769 W/ActivityManager( 9464): Force finishing activity de.grobox.liberario/de.grobox.transportr.map.MapActivity
08-05 17:28:13.779 W/InputMethodManagerService( 9464): Focus gain on non-focused client com.android.internal.view.IInputMethodClient$Stub$Proxy@638f2b (uid=10084 pid=19619)
08-05 17:28:13.789 I/Choreographer(19619): Skipped 43 frames! The application may be doing too much work on its main thread.
08-05 17:28:14.069 I/WindowManager( 9464): Screenshot max retries 4 of Token{262da04 ActivityRecord{7d5617 u0 de.grobox.liberario/de.grobox.transportr.map.MapActivity t114 f}} appWin=Window{6453f88 u0 SurfaceView} drawState=3
08-05 17:28:14.074 W/art ( 9464): Long monitor contention event with owner method=void com.android.server.am.ActivityManagerService.crashApplication(com.android.server.am.ProcessRecord, android.app.ApplicationErrorReport$CrashInfo) from ActivityManagerService.java:13027 waiters=0 for 536ms
08-05 17:28:15.059 I/Choreographer(10198): Skipped 50 frames! The application may be doing too much work on its main thread.
08-05 17:28:15.144 I/ActivityManager( 9464): Killing 18547:com.android.externalstorage/u0a9 (adj 15): empty #17

Never done that before. But i think i got the right part of the log. Please tell me if you need more.

@grote
Copy link
Owner

grote commented Aug 5, 2018

Thanks that looks like the right part and unfortunately is an issue with the map library. Seems that it thinks that the Replicant is an Emulator without GPU (OpenGL) support.

You could check if this is known upstream.

@grote grote added bug 🐞 A functional defect or unexpected behavior. upstream 🏞️ Related to an upstream issue. labels Aug 5, 2018
@grote grote changed the title App crashes when selecting transportation network on Replicant Mapbox library causes crash on Replicant Aug 5, 2018
@ghost
Copy link
Author

ghost commented Aug 5, 2018

I think that's because Replicant relies on the android software renderer for graphics rendering.

"By default, Replicant devices use the Android software renderer which uses the CPU for graphics rendering. The dedicated graphics processor (GPU) cannot be used with Replicant because for none of the currently supported devices, a fully free software implementation does exist that can make use of it (see GraphicsResearch). The software rendering is the reason why Replicant devices appear slow at times and it is responsible for a lot of crashes that can happen during usage."

https://redmine.replicant.us/projects/replicant/wiki/Graphics

It would require non-free software to use the dedicated gpu. I hope it's possible to make it work with the software renderer (like version 1.1.9). I love this app and really appreciate the work that goes in to it!

@grote
Copy link
Owner

grote commented Aug 5, 2018

Yes, that sounds like the reason!

You could help by looking into the upstream library whether there's something we can do about it in Transportr.

@ghost
Copy link
Author

ghost commented Aug 5, 2018

I think this is the same issue:
DaylightingSociety/WhereAreTheEyes#54

Referencing this issue, which says it's fixed in upstream:
mapbox/mapbox-gl-native#7273

Is transportr using the latest version of mapbox-gl-native? If so it may not be fixed and the issue will need to be reopened.

@grote
Copy link
Owner

grote commented Aug 5, 2018

It is not clear in which version this should have been fixed. The comment was from Jan 4. Jan 10 they released v5.3.1. Transportr currently uses 5.5.0 which was released Mar 1, so it is unlikely to be fixed.

There's a demo app that uses 6.3.0. Maybe you can check if that crashes.

@ghost
Copy link
Author

ghost commented Aug 7, 2018

Unfortunately it still crashes with 6.3.0. So i guess they haven't fixed it yet.

08-07 17:26:12.394 D/libEGL  ( 4618): loaded /system/lib/egl/libGLES_android.so
08-07 17:26:12.404 I/ActivityManager( 9464): Displayed com.mapbox.mapboxandroiddemo/.examples.basics.SimpleMapViewActivity: +759ms
08-07 17:26:12.474 E/UncaughtException( 4618): 
08-07 17:26:12.474 E/UncaughtException( 4618): com.mapbox.mapboxsdk.maps.renderer.egl.EGLConfigException: eglChooseConfig() failed
08-07 17:26:12.474 E/UncaughtException( 4618): 	at com.mapbox.mapboxsdk.maps.renderer.egl.EGLConfigChooser.chooseConfig(Unknown Source)
08-07 17:26:12.474 E/UncaughtException( 4618): 	at android.opengl.GLSurfaceView$EglHelper.start(GLSurfaceView.java:1024)
08-07 17:26:12.474 E/UncaughtException( 4618): 	at android.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1401)
08-07 17:26:12.474 E/UncaughtException( 4618): 	at android.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1240)
08-07 17:26:12.479 E/AndroidRuntime( 4618): FATAL EXCEPTION: GLThread 934
08-07 17:26:12.479 E/AndroidRuntime( 4618): Process: com.mapbox.mapboxandroiddemo, PID: 4618
08-07 17:26:12.479 E/AndroidRuntime( 4618): Theme: themes:{}
08-07 17:26:12.479 E/AndroidRuntime( 4618): com.mapbox.mapboxsdk.maps.renderer.egl.EGLConfigException: eglChooseConfig() failed
08-07 17:26:12.479 E/AndroidRuntime( 4618): 	at com.mapbox.mapboxsdk.maps.renderer.egl.EGLConfigChooser.chooseConfig(Unknown Source)
08-07 17:26:12.479 E/AndroidRuntime( 4618): 	at android.opengl.GLSurfaceView$EglHelper.start(GLSurfaceView.java:1024)
08-07 17:26:12.479 E/AndroidRuntime( 4618): 	at android.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1401)
08-07 17:26:12.479 E/AndroidRuntime( 4618): 	at android.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1240)
08-07 17:26:12.489 W/ActivityManager( 9464):   Force finishing activity com.mapbox.mapboxandroiddemo/.examples.basics.SimpleMapViewActivity
08-07 17:26:12.489 W/ActivityManager( 9464):   Force finishing activity com.mapbox.mapboxandroiddemo/.MainActivity

@ghost
Copy link
Author

ghost commented Aug 7, 2018

I have submitted the issue to mapbox-gl-native:
mapbox/mapbox-gl-native#12567

@Altonss
Copy link
Collaborator

Altonss commented Oct 9, 2023

This issue might get resolved with the switch to maplibre: #880

@Altonss
Copy link
Collaborator

Altonss commented Dec 5, 2023

Can you try out this branch @ghost #888? Maybe it could fix your issue.

@Altonss
Copy link
Collaborator

Altonss commented May 13, 2024

I'll close this issue for now, feel free to reopen if the issue is still there on the latest version.

@Altonss Altonss closed this as completed May 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐞 A functional defect or unexpected behavior. upstream 🏞️ Related to an upstream issue.
Projects
None yet
Development

No branches or pull requests

2 participants