Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Thread: [Android 3.1.0] GL Crash while creating surface after update

  1. #1
    Neuer skobbler
    Join Date
    26.07.2016
    Posts
    5

    [Android 3.1.0] GL Crash while creating surface after update

    Hello.

    I updated the Skobbler library to 3.1.0 (from 3.1.0 beta I believe), by replacing the library files (.jar, .zip, .so) and fixing compilation errors. Now the app crashes while creating surface. I did clean & rebuild the whole project. The sample app works fine on the same device. When I reset the library files to previous (from 17/08/2016), it works fine.

    Any ideas where might be the problem? Thank you very much in advance.

    04-08 14:46:58.649 6938-6938/my.app.name.debug D/SKMaps: SKmaps----onMapTexturesPrepared - true
    04-08 14:46:58.649 6938-6938/my.app.name.debug D/SKMaps: SKmaps---- INITIALIZE SK MAPS WITH SETTINGS
    04-08 14:46:58.649 6938-6938/my.app.name.debug D/SKMaps: SKmaps----versionFileName = version3_android_3_1_https.txt
    04-08 14:46:58.649 6938-6938/my.app.name.debug D/SKMaps: SKMapInitSettings---- Map style SKMapViewStyle{resourceFolderPath='/data/user/0/my.app.name.debug/files/SKMaps/daystyle/', styleFileName='daystyle.json', styleDetail=null, displayPixelDensity=null}
    04-08 14:46:58.652 6938-6938/my.app.name.debug D/SKMaps: SKUtils----Return calculated device type HIGH
    04-08 14:46:58.652 6938-6938/my.app.name.debug D/SKMaps: SKmaps----initializeLibraryWithSettings - SKAdvisorSettings is null! creating it!
    04-08 14:46:58.652 6938-6938/my.app.name.debug D/SKMaps: SKmaps----initializeLibraryWithSettings - SKAdvisorSettings = SKAdvisorSettings [advisorVoice=en, resourcePath=/data/user/0/my.app.name.debug/files/SKMaps/Advisor/Languages/, advisorConfigPath=/data/user/0/my.app.name.debug/files/SKMaps/Advisor/, language=LANGUAGE_EN, advisorType=AUDIO_FILES]
    04-08 14:46:58.653 6938-6938/my.app.name.debug D/SKMaps: SKmaps----Map style json file /data/user/0/my.app.name.debug/files/SKMaps/daystyle/daystyle.json styleDetail = HIGH
    04-08 14:46:58.653 6938-6938/my.app.name.debug D/SKMaps: SKmaps----Style detail = HIGH Road Cache 96468992 POI cache = 4194304 SHAPE CACHE 50331648
    04-08 14:46:58.653 6938-6938/my.app.name.debug D/SKMaps: SKmaps----CurrentMapResources Path=/data/user/0/my.app.name.debug/files/SKMaps
    04-08 14:46:59.422 6938-6938/my.app.name.debug D/SKMaps: SKmaps----found proxyUser: null, proxyPassword: null
    04-08 14:46:59.425 6938-6938/my.app.name.debug D/SKMaps: SKMaps - Connectivity---- Connectivity = online
    04-08 14:46:59.435 6938-6938/my.app.name.debug E/SKMaps: SKmaps---- SecurityException getDeviceId: Neither user 10256 nor current process has android.permission.READ_PHONE_STATE.
    04-08 14:46:59.438 6938-6938/my.app.name.debug D/SKMaps: SKmaps----UID = [omitted]
    04-08 14:46:59.439 6938-6938/my.app.name.debug D/SKMaps: SKmaps----i = 0 key = osName , value = android
    04-08 14:46:59.439 6938-6938/my.app.name.debug D/SKMaps: SKmaps----i = 1 key = osVer , value = 7.0
    04-08 14:46:59.439 6938-6938/my.app.name.debug D/SKMaps: SKmaps----i = 2 key = appName , value = MyAppName-DEBUG
    04-08 14:46:59.440 6938-6938/my.app.name.debug D/SKMaps: SKmaps----i = 3 key = appVer , value = 0.7.61-debug
    04-08 14:46:59.440 6938-6938/my.app.name.debug D/SKMaps: SKmaps----i = 4 key = uid , value = [omitted]
    04-08 14:46:59.441 6938-6938/my.app.name.debug D/SKMaps: SKmaps----Map version updated at initialisation =true
    04-08 14:46:59.449 6938-6938/my.app.name.debug D/SKMaps: SKmaps----INITIALIZE FCD accountKey= locale= en macAddress=02:00:00:00:00:00 osName=android osVersion=7.0 deviceMaker =Xiaomi deviceModel=MI 5 orientation= 1 appid=[omitted] appName=MyAppName-DEBUG appVersion=0.7.61-debug serverUrl=https://tors.skobbler.net/tor
    04-08 14:46:59.457 6938-6938/my.app.name.debug D/SKMaps: SKRouteManager----@setAudioAdvisorSettings SKAdvisorSettings [advisorVoice=en, resourcePath=/data/user/0/my.app.name.debug/files/SKMaps/Advisor/Languages/, advisorConfigPath=/data/user/0/my.app.name.debug/files/SKMaps/Advisor/, language=LANGUAGE_EN, advisorType=AUDIO_FILES]
    04-08 14:46:59.457 6938-6938/my.app.name.debug D/SKMaps: SKRouteManager----@setAudioAdvisorSettings - Advisor config path /data/user/0/my.app.name.debug/files/SKMaps/Advisor/Languages//en/advisor_configfiles/
    04-08 14:46:59.461 6938-6938/my.app.name.debug D/SKMaps: SKRouteManager----@setAudioAdvisorSettings advisorConfigPathStatus = true
    04-08 14:46:59.461 6938-6938/my.app.name.debug D/SKMaps: SKRouteManager----@setAudioAdvisorSettings - ShouldEnableTTS false Advisor type:AUDIO_FILES
    04-08 14:46:59.465 6938-6938/my.app.name.debug D/SKMaps: SKRouteManager----@@setAudioAdvisorSettings language set true LANGUAGE_EN
    04-08 14:46:59.465 6938-6938/my.app.name.debug D/SKMaps: SKmaps----PASSED INITALIZE WITH SETTINGS
    04-08 14:46:59.466 6938-6938/my.app.name.debug D/SKMaps: SKLibraryVersioningManager----Collecting data: apikey=[omitted] SDK version=3.1 map version=20170626 buildType=publicSDK deviceType=Device Manufacturer:Xiaomi Model:MI 5 osVersion=7.0
    04-08 14:46:59.466 6938-6938/my.app.name.debug E/MyAppName: [MapSplashActivity$1.onLibraryInitialized] initializeLibrary: true
    04-08 14:46:59.476 6938-7178/my.app.name.debug D/SKMaps: SKVersionManager---- newversioncallback updatemapversionstatus=-1
    04-08 14:46:59.477 6938-7178/my.app.name.debug D/SKMaps: SKVersionManager----Version file update status = -1 nothing to update
    04-08 14:46:59.477 6938-7178/my.app.name.debug D/SKMaps: SKVersionManager----Request done at startup
    04-08 14:46:59.477 6938-7178/my.app.name.debug D/SKMaps: SKVersionManager----Current version is 20170626
    04-08 14:46:59.478 6938-7178/my.app.name.debug D/SKMaps: SKVersionManager---- Map has a version = 20170626 mapVersionSet =true
    04-08 14:46:59.478 6938-7178/my.app.name.debug D/SKMaps: SKVersionManager---- Map was updated to latest remote version = -372826896 mapVersionSet=false
    04-08 14:46:59.478 6938-7178/my.app.name.debug D/SKMaps: SKVersionManager----mapVersionSet = false, mapUpdateListener = null
    04-08 14:46:59.478 6938-7178/my.app.name.debug D/SKMaps: SKVersionManager----A new map version was detected -372826896 null
    04-08 14:46:59.479 6938-6938/my.app.name.debug I/Timeline: Timeline: Activity_launch_request time:738703992
    04-08 14:46:59.491 6938-6938/my.app.name.debug I/Choreographer: Skipped 50 frames! The application may be doing too much work on its main thread.
    04-08 14:46:59.505 6938-7084/my.app.name.debug I/Adreno: QUALCOMM build : 4f3d4bc, I07a8b16b27
    Build Date : 10/26/17
    OpenGL ES Shader Compiler Version: XE031.09.00.04
    Local Branch : mybranch28842968
    Remote Branch : quic/gfx-adreno.lnx.1.0.r5-rel
    Remote Branch : NONE
    Reconstruct Branch : NOTHING
    04-08 14:46:59.513 6938-6940/my.app.name.debug I/art: Do partial code cache collection, code=8KB, data=17KB
    04-08 14:46:59.516 6938-6940/my.app.name.debug I/art: After code cache collection, code=8KB, data=17KB
    04-08 14:46:59.517 6938-6940/my.app.name.debug I/art: Increasing code cache capacity to 128KB
    04-08 14:46:59.519 6938-7084/my.app.name.debug I/OpenGLRenderer: Initialized EGL, version 1.4
    04-08 14:46:59.520 6938-7084/my.app.name.debug D/OpenGLRenderer: Swap behavior 1
    04-08 14:46:59.540 6938-6938/my.app.name.debug W/SKMaps: SKVersionManager----No SKMapUpdateListener was set !!!
    04-08 14:46:59.650 6938-7001/my.app.name.debug D/FA: Connected to remote service
    04-08 14:46:59.702 6938-6938/my.app.name.debug D/SKMaps: SKMapSurfaceView----SKMapSurfaceView constructor
    04-08 14:46:59.704 6938-6938/my.app.name.debug D/SKMaps: MapRenderer----Set map density 3.0
    04-08 14:46:59.705 6938-6938/my.app.name.debug D/SKMaps: SKMapSurfaceView----SKMapSurfaceView constructor preserved GL Context is true
    04-08 14:46:59.705 6938-6938/my.app.name.debug D/SKMaps: SKMapSurfaceView----@onPause
    04-08 14:46:59.705 6938-6938/my.app.name.debug D/SKMaps: SKMapSurfaceView----@onPause preserver GlContext is TRUE
    04-08 14:46:59.709 6938-6938/my.app.name.debug D/SKMaps: SKCalloutView----Image path = /data/user/0/my.app.name.debug/files/SKMaps/res/xhdpi/icon_map_popup_navigate.png
    04-08 14:46:59.715 6938-6938/my.app.name.debug D/SKMaps: SKCalloutView----Image path = /data/user/0/my.app.name.debug/files/SKMaps/res/xhdpi/icon_map_popup_arrow.png
    04-08 14:46:59.718 6938-6938/my.app.name.debug D/SKMaps: SKMapViewHolder----Constructor WITH attributeset called
    04-08 14:46:59.718 6938-6938/my.app.name.debug E/SKMaps: SKMapViewHolder----InitSettings!=null
    04-08 14:46:59.718 6938-6938/my.app.name.debug E/SKMaps: SKMapViewHolder----setAttributionsLayout - getStyleFileName not null, getStyleFileName=daystyle.json
    04-08 14:46:59.720 6938-6938/my.app.name.debug E/BitmapFactory: Unable to decode stream: java.io.FileNotFoundException: /data/user/0/my.app.name.debug/files/SKMaps/attributions/xhdpi/tnav_logo1.png (No such file or directory)
    04-08 14:46:59.720 6938-6938/my.app.name.debug E/BitmapFactory: Unable to decode stream: java.io.FileNotFoundException: /data/user/0/my.app.name.debug/files/SKMaps/attributions/xhdpi/tnav_logo3.png (No such file or directory)
    04-08 14:46:59.721 6938-6938/my.app.name.debug E/BitmapFactory: Unable to decode stream: java.io.FileNotFoundException: /data/user/0/my.app.name.debug/files/SKMaps/attributions/xhdpi/tnav_logo2.png (No such file or directory)
    04-08 14:46:59.929 6938-6938/my.app.name.debug I/FloatingActionButton: Setting a custom background is not supported.
    04-08 14:47:00.123 6938-6938/my.app.name.debug I/FloatingActionButton: Setting a custom background is not supported.
    04-08 14:47:00.190 6938-6938/my.app.name.debug D/SKMaps: SKMapViewHolder----@onResume
    04-08 14:47:00.190 6938-6938/my.app.name.debug D/SKMaps: SKMapSurfaceView----@onResume
    04-08 14:47:00.190 6938-6938/my.app.name.debug D/SKMaps: SKMapSurfaceView----@onResume preserve GL context is TRUE
    04-08 14:47:00.295 6938-7192/my.app.name.debug D/SKMaps: MapRenderer----@onSurfaceCreated
    04-08 14:47:00.295 6938-7192/my.app.name.debug D/SKMaps: MapRenderer----@onSurfaceCreated LinInitialized = true
    04-08 14:47:00.295 6938-7192/my.app.name.debug D/SKMaps: MapRenderer---- @initGLView
    04-08 14:47:00.297 6938-6940/my.app.name.debug I/art: Do partial code cache collection, code=43KB, data=62KB
    04-08 14:47:00.297 6938-6940/my.app.name.debug I/art: After code cache collection, code=42KB, data=62KB
    04-08 14:47:00.297 6938-6940/my.app.name.debug I/art: Increasing code cache capacity to 256KB
    04-08 14:47:00.472 6938-7192/my.app.name.debug I/Adreno: ERROR: 0:14: '' : GLSL compile error: Extension directives must occur before any non-preprocessor tokens.
    ERROR: 0:50: 'gl_LastFragData' : requires extension GL_EXT_shader_framebuffer_fetch to be enabled
    ERROR: 2 compilation errors. No code generated.
    04-08 14:47:01.682 6938-7192/my.app.name.debug A/libc: Fatal signal 11 (SIGSEGV), code 1, fault addr 0x4 in tid 7192 (GLThread 64202)

    [ 04-08 14:47:01.685 460: 460 W/ ]
    debuggerd: handling request: pid=6938 uid=10256 gid=10256 tid=7192
    04-08 14:47:04.262 7439-7439/my.app.name.debug I/MultiDex: VM with version 2.1.0 has multidex support
    04-08 14:47:04.263 7439-7439/my.app.name.debug I/MultiDex: Installing application
    04-08 14:47:04.263 7439-7439/my.app.name.debug I/MultiDex: VM has multidex support, MultiDex support library is disabled.
    Last edited by jansvehla; 08.04.2018 at 15:49.

  2. #2
    Erfahrener skobbler
    Join Date
    12.09.2016
    Posts
    105
    Hello,

    When updating the SDK you have to add the SKMaps.jar, SKMaps-docs.jar, libngnative.so (3 files) and the new map resources SKMaps.zip (which seems to be missing in your case). Also, according to your logs it seems that mapUpdateListener is not properly set mapUpdateListener = null

  3. #3
    Neuer skobbler
    Join Date
    08.07.2016
    Location
    USA
    Posts
    9
    I was also getting the Fatal signal 11 (SIGSEGV) crash. The fix for me was to uninstall the app on the phone before installing the new apk. Will this cause users to crash if they upgrade from the Play store without uninstalling first?

  4. #4
    Neuer skobbler
    Join Date
    08.07.2016
    Location
    USA
    Posts
    9
    I just had to revert my release in the Android app store. The 3.1 upgrade crashes unless the app is uninstalled and then reinstalled. Is there any way to fix this?

  5. #5
    Neuer skobbler
    Join Date
    08.07.2016
    Location
    USA
    Posts
    9
    The 3.1.0 SDK app data is incompatible with older Skobbler versions. I was able to fix the problem by forcing the app data to clear if going from an older version to a new version of my app. The only downside is my users' shared preferences get reset.

    I used the methods in this post:
    https://stackoverflow.com/questions/...ogrammatically

  6. #6
    Neuer skobbler
    Join Date
    26.07.2016
    Posts
    5
    Quote Originally Posted by ifwinterends View Post
    The 3.1.0 SDK app data is incompatible with older Skobbler versions. I was able to fix the problem by forcing the app data to clear if going from an older version to a new version of my app. The only downside is my users' shared preferences get reset.

    I used the methods in this post:
    https://stackoverflow.com/questions/...ogrammatically
    Thank you a lot! This saved me a lot of time.

    @adrian.bortas will there be a fix for this? Thanks.

  7. #7
    Erfahrener skobbler
    Join Date
    12.09.2016
    Posts
    105
    Our android team is investigating this. As soon as I have a feedback I'll let you know.

  8. #8
    Erfahrener skobbler
    Join Date
    12.09.2016
    Posts
    105
    Hello,

    We made some tests, but no crash was detected so far.
    Please share with us the crashlog using “No filters” logging from Android Studio.

  9. #9
    Neuer skobbler
    Join Date
    26.07.2016
    Posts
    5
    @adrian.bortas Of course. Can you contact me in private message? Or email.

  10. #10
    Erfahrener skobbler
    Join Date
    12.09.2016
    Posts
    105
    You can find us at dev@telenav.com

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •