Skip to content
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
This repository was archived by the owner on Aug 8, 2023. It is now read-only.

Map styles do not load from local file #585

Closed

Description

@ljbade

@incanus encountered this error while testing the app:
11-10 13:33:42.691    4742-4776/com.mapbox.mapboxgl.app E/Setup﹕ loading style failed: 404 (no such file or directory)

He got around it by changing setStyleURL to a https source.

However I have not seen this error myself before.

@incanus Could you please add more detail about what you did to get this error?
e.g. was it Android 4 or 5, was it the emulator or your Nexus 7, how did you install/run the app etc.
Any other relevant log messages? (perhaps copy whole log into a gist)

I am going to see if I can recreate it by deleting the app's data folder.

Activity

  1. added
    Android
    on Nov 11, 2014
  2. ljbade commented on Nov 11, 2014

    @ljbade
    ContributorAuthor

    I have not been able to reproduce the problem on my HTC One (M7) or Nexus 7 (2012)

    I have tried both uninstalling the app then reinstalling it, was well as just using the Android app settings menu to clear the cache and data folders.

  3. ljbade commented on Nov 11, 2014

    @ljbade
    ContributorAuthor

    I am having problems getting the emulator to run - I think my laptop is running out of memory.

    In the mean time I am going to switch styles and ca-bundle to the data dir instead of the cache dir.

    I am also adding logging messages to Assetbridge to see if it highlight any problems.

  4. ljbade commented on Nov 11, 2014

    @ljbade
    ContributorAuthor

    Found Context.getPackageCodePath that may allow the C++ code to read styles directly from the APK zip file if we include C++ zip library.

  5. ljbade commented on Nov 11, 2014

    @ljbade
    ContributorAuthor

    Hrm making a list of all the different dirs you can write files too:

    • Context.getCacheDir - Returns the absolute path to the application specific cache directory on the filesystem. These files will be ones that get deleted first when the device runs low on storage. There is no guarantee when these files will be deleted.
    • getCodeCacheDir - Returns the absolute path to the application specific cache directory on the filesystem designed for storing cached code. The system will delete any files stored in this location both when your specific application is upgraded, and when the entire platform is upgraded.
    • getDir - Retrieve, creating if needed, a new directory in which the application can place its own custom data files. You can use the returned File object to create and access files in this directory. Note that files created through a File object will only be accessible by your own application; you can only set the mode of the entire directory, not of individual files.
    • getExternalCacheDir/s - Returns the absolute path to the directory on the primary external filesystem (that is somewhere on Environment.getExternalStorageDirectory() where the application can place cache files it owns. These files are internal to the application, and not typically visible to the user as media.
    • getExternalFilesDir/s - Returns the absolute path to the directory on the primary external filesystem (that is somewhere on Environment.getExternalStorageDirectory()) where the application can place persistent files it owns. These files are internal to the applications, and not typically visible to the user as media.
    • getExternalMediaDirs - Returns absolute paths to application-specific directories on all external storage devices where the application can place media files. These files are scanned and made available to other apps through MediaStore.
    • getFilesDir - Returns the absolute path to the directory on the filesystem where files created with openFileOutput(String, int) are stored.
    • getNoBackupFilesDir - Returns the absolute path to the directory on the filesystem similar to getFilesDir(). The difference is that files placed under this directory will be excluded from automatic backup to remote storage. See BackupAgent for a full discussion of the automatic backup mechanism in Android.
    • getObbDir/s - Return the primary external storage directory where this application's OBB files (if there are any) can be found. Note if the application does not have any OBB files, this directory may not exist.
  6. ljbade commented on Nov 11, 2014

    @ljbade
    ContributorAuthor

    It would appear that getCodeCacheDir is the best candidate.

    EDIT: argh, it is only on Android 5+
    I will use getNoBackupFilesDir instead.

    EDIT 2: So is that. Well getFilesDir it is.

  7. ljbade commented on Nov 11, 2014

    @ljbade
    ContributorAuthor

    OK so Asset bridge extracts some random stuff:

    11-11 22:13:45.052    2166-2166/com.mapbox.mapboxgl.app V/Assetbridge﹕ sounds was a dir
    11-11 22:13:45.232    2166-2166/com.mapbox.mapboxgl.app V/Assetbridge﹕ Copying sounds/bootanim0.raw
    11-11 22:13:45.232    2166-2166/com.mapbox.mapboxgl.app V/Assetbridge﹕ sounds/bootanim0.raw was a file
    11-11 22:13:45.242    2166-2166/com.mapbox.mapboxgl.app V/Assetbridge﹕ Copying sounds/bootanim1.raw
    11-11 22:13:45.242    2166-2166/com.mapbox.mapboxgl.app V/Assetbridge﹕ sounds/bootanim1.raw was a file
    
  8. ljbade commented on Nov 11, 2014

    @ljbade
    ContributorAuthor

    OK I think I may have fixed this in de1f37f.

    @incanus Can you test if the problem has been fixed?

  9. incanus commented on Nov 12, 2014

    @incanus
    Contributor

    Nope, I am still seeing this on my 4.4.4 Nexus 7.

    11-12 10:20:40.611    4564-4564/com.mapbox.mapboxgl.app V/FragmentActivity﹕ onCreate
    11-12 10:20:40.661    4564-4564/com.mapbox.mapboxgl.app V/MapFragment﹕ onInflate
    11-12 10:20:40.661    4564-4564/com.mapbox.mapboxgl.app V/MapFragment﹕ onCreateView
    11-12 10:20:40.671    4564-4564/com.mapbox.mapboxgl.app V/MapView﹕ initialize
    11-12 10:20:40.671    4564-4564/com.mapbox.mapboxgl.app V/Assetbridge﹕ Extracting assets to /data/data/com.mapbox.mapboxgl.app/files
    11-12 10:20:40.671    4564-4564/com.mapbox.mapboxgl.app V/Assetbridge﹕ Copying ca-bundle.crt
    11-12 10:20:40.671    4564-4564/com.mapbox.mapboxgl.app V/Assetbridge﹕ ca-bundle.crt was a file
    11-12 10:20:40.691    4564-4564/com.mapbox.mapboxgl.app V/Assetbridge﹕ Copying styles
    11-12 10:20:40.691    4564-4564/com.mapbox.mapboxgl.app V/Assetbridge﹕ styles was a dir
    11-12 10:20:40.771    4564-4564/com.mapbox.mapboxgl.app D/dalvikvm﹕ Trying to load lib /data/app-lib/com.mapbox.mapboxgl.app-1/libmapbox-gl.so 0x41eb9878
    11-12 10:20:40.791    4564-4564/com.mapbox.mapboxgl.app D/dalvikvm﹕ Added shared lib /data/app-lib/com.mapbox.mapboxgl.app-1/libmapbox-gl.so 0x41eb9878
    11-12 10:20:40.811    4564-4564/com.mapbox.mapboxgl.app V/MapView﹕ onCreate
    11-12 10:20:40.821    4564-4564/com.mapbox.mapboxgl.app D/libEGL﹕ loaded /system/lib/egl/libEGL_tegra.so
    11-12 10:20:40.851    4564-4564/com.mapbox.mapboxgl.app D/libEGL﹕ loaded /system/lib/egl/libGLESv1_CM_tegra.so
    11-12 10:20:40.891    4564-4564/com.mapbox.mapboxgl.app D/libEGL﹕ loaded /system/lib/egl/libGLESv2_tegra.so
    11-12 10:20:40.911    4564-4564/com.mapbox.mapboxgl.app I/../../android/cpp/native_map_view.cpp:22﹕ EGL Vendor: Android
    11-12 10:20:40.911    4564-4564/com.mapbox.mapboxgl.app I/../../android/cpp/native_map_view.cpp:22﹕ EGL Version: 1.4 Android META-EGL
    11-12 10:20:40.911    4564-4564/com.mapbox.mapboxgl.app I/../../android/cpp/native_map_view.cpp:22﹕ EGL Client APIs: OpenGL_ES
    11-12 10:20:40.911    4564-4564/com.mapbox.mapboxgl.app I/../../android/cpp/native_map_view.cpp:22﹕ EGL Client Extensions: EGL_KHR_get_all_proc_addresses EGL_ANDROID_presentation_time EGL_KHR_image EGL_KHR_image_base EGL_KHR_image_pixmap EGL_KHR_lock_surface EGL_KHR_gl_texture_2D_image EGL_KHR_gl_texture_cubemap_image EGL_KHR_gl_renderbuffer_image EGL_KHR_fence_sync EGL_EXT_create_context_robustness EGL_NV_system_time EGL_ANDROID_image_native_buffer EGL_ANDROID_recordable
    11-12 10:20:40.911    4564-4564/com.mapbox.mapboxgl.app I/../../android/cpp/native_map_view.cpp:156﹕ ro.kernel.qemu =
    11-12 10:20:40.911    4564-4564/com.mapbox.mapboxgl.app I/../../android/cpp/native_map_view.cpp:369﹕ Found 6 configs
    11-12 10:20:40.911    4564-4564/com.mapbox.mapboxgl.app I/../../android/cpp/native_map_view.cpp:375﹕ Config 0:
    11-12 10:20:40.911    4564-4564/com.mapbox.mapboxgl.app I/../../android/cpp/native_map_view.cpp:455﹕ Caveat: 12344
    11-12 10:20:40.911    4564-4564/com.mapbox.mapboxgl.app I/../../android/cpp/native_map_view.cpp:456﹕ Conformant: 5
    11-12 10:20:40.911    4564-4564/com.mapbox.mapboxgl.app I/../../android/cpp/native_map_view.cpp:457﹕ Color: 32
    11-12 10:20:40.911    4564-4564/com.mapbox.mapboxgl.app I/../../android/cpp/native_map_view.cpp:458﹕ Red: 8
    11-12 10:20:40.911    4564-4564/com.mapbox.mapboxgl.app I/../../android/cpp/native_map_view.cpp:459﹕ Green: 8
    11-12 10:20:40.911    4564-4564/com.mapbox.mapboxgl.app I/../../android/cpp/native_map_view.cpp:460﹕ Blue: 8
    11-12 10:20:40.911    4564-4564/com.mapbox.mapboxgl.app I/../../android/cpp/native_map_view.cpp:461﹕ Alpha: 8
    11-12 10:20:40.911    4564-4564/com.mapbox.mapboxgl.app I/../../android/cpp/native_map_view.cpp:462﹕ Alpha mask: 8
    11-12 10:20:40.911    4564-4564/com.mapbox.mapboxgl.app I/../../android/cpp/native_map_view.cpp:463﹕ Depth: 16
    11-12 10:20:40.911    4564-4564/com.mapbox.mapboxgl.app I/../../android/cpp/native_map_view.cpp:464﹕ Stencil: 8
    11-12 10:20:40.911    4564-4564/com.mapbox.mapboxgl.app I/../../android/cpp/native_map_view.cpp:465﹕ Sample buffers: 0
    11-12 10:20:40.911    4564-4564/com.mapbox.mapboxgl.app I/../../android/cpp/native_map_view.cpp:466﹕ Samples: 0
    11-12 10:20:40.911    4564-4564/com.mapbox.mapboxgl.app I/../../android/cpp/native_map_view.cpp:375﹕ Config 1:
    11-12 10:20:40.911    4564-4564/com.mapbox.mapboxgl.app I/../../android/cpp/native_map_view.cpp:455﹕ Caveat: 12344
    11-12 10:20:40.911    4564-4564/com.mapbox.mapboxgl.app I/../../android/cpp/native_map_view.cpp:456﹕ Conformant: 4
    11-12 10:20:40.911    4564-4564/com.mapbox.mapboxgl.app I/../../android/cpp/native_map_view.cpp:457﹕ Color: 32
    11-12 10:20:40.911    4564-4564/com.mapbox.mapboxgl.app I/../../android/cpp/native_map_view.cpp:458﹕ Red: 8
    11-12 10:20:40.911    4564-4564/com.mapbox.mapboxgl.app I/../../android/cpp/native_map_view.cpp:459﹕ Green: 8
    11-12 10:20:40.911    4564-4564/com.mapbox.mapboxgl.app I/../../android/cpp/native_map_view.cpp:460﹕ Blue: 8
    11-12 10:20:40.911    4564-4564/com.mapbox.mapboxgl.app I/../../android/cpp/native_map_view.cpp:461﹕ Alpha: 8
    11-12 10:20:40.911    4564-4564/com.mapbox.mapboxgl.app I/../../android/cpp/native_map_view.cpp:462﹕ Alpha mask: 8
    11-12 10:20:40.911    4564-4564/com.mapbox.mapboxgl.app I/../../android/cpp/native_map_view.cpp:463﹕ Depth: 16
    11-12 10:20:40.911    4564-4564/com.mapbox.mapboxgl.app I/../../android/cpp/native_map_view.cpp:464﹕ Stencil: 8
    11-12 10:20:40.911    4564-4564/com.mapbox.mapboxgl.app I/../../android/cpp/native_map_view.cpp:465﹕ Sample buffers: 0
    11-12 10:20:40.911    4564-4564/com.mapbox.mapboxgl.app I/../../android/cpp/native_map_view.cpp:466﹕ Samples: 0
    11-12 10:20:40.911    4564-4564/com.mapbox.mapboxgl.app I/../../android/cpp/native_map_view.cpp:375﹕ Config 2:
    11-12 10:20:40.911    4564-4564/com.mapbox.mapboxgl.app I/../../android/cpp/native_map_view.cpp:455﹕ Caveat: 12344
    11-12 10:20:40.911    4564-4564/com.mapbox.mapboxgl.app I/../../android/cpp/native_map_view.cpp:456﹕ Conformant: 5
    11-12 10:20:40.911    4564-4564/com.mapbox.mapboxgl.app I/../../android/cpp/native_map_view.cpp:457﹕ Color: 32
    11-12 10:20:40.911    4564-4564/com.mapbox.mapboxgl.app I/../../android/cpp/native_map_view.cpp:458﹕ Red: 8
    11-12 10:20:40.911    4564-4564/com.mapbox.mapboxgl.app I/../../android/cpp/native_map_view.cpp:459﹕ Green: 8
    11-12 10:20:40.911    4564-4564/com.mapbox.mapboxgl.app I/../../android/cpp/native_map_view.cpp:460﹕ Blue: 8
    11-12 10:20:40.911    4564-4564/com.mapbox.mapboxgl.app I/../../android/cpp/native_map_view.cpp:461﹕ Alpha: 0
    11-12 10:20:40.911    4564-4564/com.mapbox.mapboxgl.app I/../../android/cpp/native_map_view.cpp:462﹕ Alpha mask: 8
    11-12 10:20:40.911    4564-4564/com.mapbox.mapboxgl.app I/../../android/cpp/native_map_view.cpp:463﹕ Depth: 16
    11-12 10:20:40.911    4564-4564/com.mapbox.mapboxgl.app I/../../android/cpp/native_map_view.cpp:464﹕ Stencil: 8
    11-12 10:20:40.911    4564-4564/com.mapbox.mapboxgl.app I/../../android/cpp/native_map_view.cpp:465﹕ Sample buffers: 0
    11-12 10:20:40.911    4564-4564/com.mapbox.mapboxgl.app I/../../android/cpp/native_map_view.cpp:466﹕ Samples: 0
    11-12 10:20:40.911    4564-4564/com.mapbox.mapboxgl.app I/../../android/cpp/native_map_view.cpp:375﹕ Config 3:
    11-12 10:20:40.911    4564-4564/com.mapbox.mapboxgl.app I/../../android/cpp/native_map_view.cpp:455﹕ Caveat: 12344
    11-12 10:20:40.911    4564-4564/com.mapbox.mapboxgl.app I/../../android/cpp/native_map_view.cpp:456﹕ Conformant: 4
    11-12 10:20:40.911    4564-4564/com.mapbox.mapboxgl.app I/../../android/cpp/native_map_view.cpp:457﹕ Color: 32
    11-12 10:20:40.911    4564-4564/com.mapbox.mapboxgl.app I/../../android/cpp/native_map_view.cpp:458﹕ Red: 8
    11-12 10:20:40.911    4564-4564/com.mapbox.mapboxgl.app I/../../android/cpp/native_map_view.cpp:459﹕ Green: 8
    11-12 10:20:40.911    4564-4564/com.mapbox.mapboxgl.app I/../../android/cpp/native_map_view.cpp:460﹕ Blue: 8
    11-12 10:20:40.911    4564-4564/com.mapbox.mapboxgl.app I/../../android/cpp/native_map_view.cpp:461﹕ Alpha: 0
    11-12 10:20:40.911    4564-4564/com.mapbox.mapboxgl.app I/../../android/cpp/native_map_view.cpp:462﹕ Alpha mask: 8
    11-12 10:20:40.911    4564-4564/com.mapbox.mapboxgl.app I/../../android/cpp/native_map_view.cpp:463﹕ Depth: 16
    11-12 10:20:40.911    4564-4564/com.mapbox.mapboxgl.app I/../../android/cpp/native_map_view.cpp:464﹕ Stencil: 8
    11-12 10:20:40.911    4564-4564/com.mapbox.mapboxgl.app I/../../android/cpp/native_map_view.cpp:465﹕ Sample buffers: 0
    11-12 10:20:40.911    4564-4564/com.mapbox.mapboxgl.app I/../../android/cpp/native_map_view.cpp:466﹕ Samples: 0
    11-12 10:20:40.911    4564-4564/com.mapbox.mapboxgl.app I/../../android/cpp/native_map_view.cpp:375﹕ Config 4:
    11-12 10:20:40.911    4564-4564/com.mapbox.mapboxgl.app I/../../android/cpp/native_map_view.cpp:455﹕ Caveat: 12344
    11-12 10:20:40.911    4564-4564/com.mapbox.mapboxgl.app I/../../android/cpp/native_map_view.cpp:456﹕ Conformant: 5
    11-12 10:20:40.911    4564-4564/com.mapbox.mapboxgl.app I/../../android/cpp/native_map_view.cpp:457﹕ Color: 16
    11-12 10:20:40.911    4564-4564/com.mapbox.mapboxgl.app I/../../android/cpp/native_map_view.cpp:458﹕ Red: 5
    11-12 10:20:40.911    4564-4564/com.mapbox.mapboxgl.app I/../../android/cpp/native_map_view.cpp:459﹕ Green: 6
    11-12 10:20:40.911    4564-4564/com.mapbox.mapboxgl.app I/../../android/cpp/native_map_view.cpp:460﹕ Blue: 5
    11-12 10:20:40.911    4564-4564/com.mapbox.mapboxgl.app I/../../android/cpp/native_map_view.cpp:461﹕ Alpha: 0
    11-12 10:20:40.911    4564-4564/com.mapbox.mapboxgl.app I/../../android/cpp/native_map_view.cpp:462﹕ Alpha mask: 8
    11-12 10:20:40.911    4564-4564/com.mapbox.mapboxgl.app I/../../android/cpp/native_map_view.cpp:463﹕ Depth: 16
    11-12 10:20:40.911    4564-4564/com.mapbox.mapboxgl.app I/../../android/cpp/native_map_view.cpp:464﹕ Stencil: 8
    11-12 10:20:40.911    4564-4564/com.mapbox.mapboxgl.app I/../../android/cpp/native_map_view.cpp:465﹕ Sample buffers: 0
    11-12 10:20:40.911    4564-4564/com.mapbox.mapboxgl.app I/../../android/cpp/native_map_view.cpp:466﹕ Samples: 0
    11-12 10:20:40.911    4564-4564/com.mapbox.mapboxgl.app I/../../android/cpp/native_map_view.cpp:375﹕ Config 5:
    11-12 10:20:40.911    4564-4564/com.mapbox.mapboxgl.app I/../../android/cpp/native_map_view.cpp:455﹕ Caveat: 12344
    11-12 10:20:40.911    4564-4564/com.mapbox.mapboxgl.app I/../../android/cpp/native_map_view.cpp:456﹕ Conformant: 4
    11-12 10:20:40.911    4564-4564/com.mapbox.mapboxgl.app I/../../android/cpp/native_map_view.cpp:457﹕ Color: 16
    11-12 10:20:40.911    4564-4564/com.mapbox.mapboxgl.app I/../../android/cpp/native_map_view.cpp:458﹕ Red: 5
    11-12 10:20:40.911    4564-4564/com.mapbox.mapboxgl.app I/../../android/cpp/native_map_view.cpp:459﹕ Green: 6
    11-12 10:20:40.911    4564-4564/com.mapbox.mapboxgl.app I/../../android/cpp/native_map_view.cpp:460﹕ Blue: 5
    11-12 10:20:40.911    4564-4564/com.mapbox.mapboxgl.app I/../../android/cpp/native_map_view.cpp:461﹕ Alpha: 0
    11-12 10:20:40.911    4564-4564/com.mapbox.mapboxgl.app I/../../android/cpp/native_map_view.cpp:462﹕ Alpha mask: 8
    11-12 10:20:40.911    4564-4564/com.mapbox.mapboxgl.app I/../../android/cpp/native_map_view.cpp:463﹕ Depth: 16
    11-12 10:20:40.911    4564-4564/com.mapbox.mapboxgl.app I/../../android/cpp/native_map_view.cpp:464﹕ Stencil: 8
    11-12 10:20:40.911    4564-4564/com.mapbox.mapboxgl.app I/../../android/cpp/native_map_view.cpp:465﹕ Sample buffers: 0
    11-12 10:20:40.911    4564-4564/com.mapbox.mapboxgl.app I/../../android/cpp/native_map_view.cpp:466﹕ Samples: 0
    11-12 10:20:40.911    4564-4564/com.mapbox.mapboxgl.app I/../../android/cpp/native_map_view.cpp:272﹕ Context initialized
    11-12 10:20:40.931    4564-4564/com.mapbox.mapboxgl.app V/MapFragment﹕ onStart
    11-12 10:20:40.931    4564-4564/com.mapbox.mapboxgl.app V/MapView﹕ onStart
    11-12 10:20:40.931    4564-4564/com.mapbox.mapboxgl.app V/MapFragment﹕ onResume
    11-12 10:20:40.931    4564-4564/com.mapbox.mapboxgl.app V/MapView﹕ onResume
    11-12 10:20:41.021    4564-4564/com.mapbox.mapboxgl.app D/OpenGLRenderer﹕ Enabling debug mode 0
    11-12 10:20:41.051    4564-4564/com.mapbox.mapboxgl.app V/MapView﹕ surfaceCreated
    11-12 10:20:41.111    4564-4564/com.mapbox.mapboxgl.app I/../../android/cpp/native_map_view.cpp:31﹕ GL Vendor: NVIDIA Corporation
    11-12 10:20:41.111    4564-4564/com.mapbox.mapboxgl.app I/../../android/cpp/native_map_view.cpp:31﹕ GL Renderer: NVIDIA Tegra 3
    11-12 10:20:41.111    4564-4564/com.mapbox.mapboxgl.app I/../../android/cpp/native_map_view.cpp:31﹕ GL Version: OpenGL ES 2.0 14.01003
    11-12 10:20:41.111    4564-4564/com.mapbox.mapboxgl.app I/../../android/cpp/native_map_view.cpp:31﹕ GL SL Version: OpenGL ES GLSL 1.00
    11-12 10:20:41.111    4564-4564/com.mapbox.mapboxgl.app I/../../android/cpp/native_map_view.cpp:31﹕ GL Extensions: GL_OES_rgb8_rgba8 GL_OES_EGL_sync GL_OES_fbo_render_mipmap GL_NV_depth_nonlinear GL_NV_draw_path GL_NV_texture_npot_2D_mipmap GL_OES_EGL_image GL_OES_EGL_image_external GL_OES_vertex_half_float GL_OES_mapbuffer GL_NV_draw_buffers GL_NV_multiview_draw_buffers GL_EXT_Cg_shader GL_EXT_packed_float GL_OES_texture_half_float GL_EXT_texture_array GL_OES_compressed_ETC1_RGB8_texture GL_EXT_texture_compression_latc GL_NV_texture_compression_latc GL_EXT_texture_compression_dxt1 GL_EXT_texture_compression_s3tc GL_NV_texture_compression_s3tc GL_EXT_texture_filter_anisotropic GL_NV_get_tex_image GL_NV_read_buffer GL_NV_shader_framebuffer_fetch GL_NV_copy_image GL_NV_fbo_color_attachments GL_EXT_bgra GL_EXT_texture_format_BGRA8888 GL_EXT_unpack_subimage GL_NV_pack_subimage GL_NV_texture_compression_s3tc_update GL_NV_read_depth GL_NV_read_stencil GL_NV_uniform_buffer_object GL_EXT_robustness GL_OES_standard_derivatives GL_NV_EGL_stream_consumer_external GL_NV_3dvision_settings GL_EXT_debug_marker GL_EXT_deb
    11-12 10:20:41.111    4564-4564/com.mapbox.mapboxgl.app V/MapView﹕ surfaceChanged
    11-12 10:20:41.111    4564-4564/com.mapbox.mapboxgl.app I/MapView﹕ resize 4 800 1097
    11-12 10:20:41.111    4564-4564/com.mapbox.mapboxgl.app V/MapView﹕ surfaceRedrawNeeded
    11-12 10:20:41.141    4564-4564/com.mapbox.mapboxgl.app V/MapView﹕ surfaceRedrawNeeded
    11-12 10:20:41.571    4564-4579/com.mapbox.mapboxgl.app E/Setup﹕ loading style failed: 404 (no such file or directory)
    11-12 10:20:41.571    4564-4579/com.mapbox.mapboxgl.app W/OpenGL﹕ Not using Vertex Array Objects
    
  10. ljbade commented on Nov 12, 2014

    @ljbade
    ContributorAuthor

    @incanus have you loaded the styles submodule? it appears it is not copying the contents of the styles folder correctly to the android assets folder

  11. incanus commented on Nov 12, 2014

    @incanus
    Contributor

    Ah, sorry about that — that was it exactly. And this just bit me on iOS the other day. I forgot I had checked out this copy previously and barring any sort of error message this was tricky to remember.

  12. ljbade commented on Nov 13, 2014

    @ljbade
    ContributorAuthor

    @incanus I added a command that will error when the styles files are missing: 14714a1

  13. incanus commented on Nov 14, 2014

    @incanus
    Contributor

    The Makefile thing is breaking for me, including with the fix commit 990be67. Reverting for now & don't have time to fix.

  14. ljbade commented on Nov 14, 2014

    @ljbade
    ContributorAuthor

    Hrm will need to think of another way of detecting missing styles

  15. incanus commented on Nov 14, 2014

    @incanus
    Contributor

    Isn't the real issue that the submodule wouldn't be cloned? Can't we just detect that (i.e. in top-level ./styles)?

  16. ljbade commented on Nov 14, 2014

    @ljbade
    ContributorAuthor

    Ah yes, that will work

  17. ljbade commented on Nov 14, 2014

    @ljbade
    ContributorAuthor

    Just check for files in ./styles?

  18. ljbade commented on Nov 14, 2014

    @ljbade
    ContributorAuthor

    I added a git submodules init and update to make android.

    Do you think that will work?

  19. incanus commented on Nov 14, 2014

    @incanus
    Contributor

    Eh, I would avoid automatically pulling submodules. Just feels weird to me. TBH we can probably just leave this and if/when people get the error from not having pulled down the styles, tell them to follow the directions properly (myself included).

  20. ljbade commented on Nov 15, 2014

    @ljbade
    ContributorAuthor

    Well OK then. reverting.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Androidbug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions