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.

crash when i build iOS dynamic framework with source code (iOS) #5457

Closed

Description

@wangjinyu

I build the source code create dynamic framework on branch master.

follow is error info:

2016-06-23 20 28 10

2016-06-23 20 28 19

2016-06-23 20 28 28

Why?

Who can help me.

Activity

  1. changed the title [-]crash when i build iOS dynamic framework with source code[/-] [+]crash when i build iOS dynamic framework with source code (iOS)[/+] on Jun 23, 2016
  2. added
    iOS
    on Jun 23, 2016
  3. ChenJian345 commented on Jun 23, 2016

    @ChenJian345

    I met the same problem, Hope solve ASAP.

  4. friedbunny commented on Jun 23, 2016

    @friedbunny
    Contributor

    @wangjinyu Please provide more information about when and how you encountered this issue — include code that will reproduce it, if at all possible.

    @ChenJian345 See these instructions if you’re interested in developing and contributing to this project.

  5. wangjinyu commented on Jun 24, 2016

    @wangjinyu
    Author

    @friedbunny I use the dynamic framework that build with source code on branch master.

    When i addSubview on view.

    2016-06-24 11 05 21

    I only do this. I get the crash above.

  6. wangjinyu commented on Jun 24, 2016

    @wangjinyu
    Author

    @friedbunny This is the framework i build.

    Mapbox.framework.zip

  7. friedbunny commented on Jun 24, 2016

    @friedbunny
    Contributor

    @wangjinyu A few questions and one request:

    1. What build command are you using to create the dynamic framework?
    2. Have you successfully built it before?
    3. Does the demo app (“iosapp”) in the Xcode project (make iproj) work for you?
    4. Please post the build output here, after running make clean && make distclean and rebuilding.
  8. ChenJian345 commented on Jun 24, 2016

    @ChenJian345

    @friedbunny I use the make iproj command to start up the ios xcode project and build in the xcode.

    Here is the output when I use make clean && make distclean command.

    ➜  mapbox-gl-native git:(release-ios-v3.2.2) make clean && make distclean
    rm -f ~/Library/Application\ Support/Mapbox\ GL/cache.db
    clearing files in ~/Library/Developer/Xcode/DerivedData/{mapboxgl-app,osxapp}-* older than one day
    find: /Users/mark/Library/Developer/Xcode/DerivedData/mapboxgl-app-*: No such file or directory
    find: /Users/mark/Library/Developer/Xcode/DerivedData/osxapp-*: No such file or directory
    find ./deps/gyp -name "*.pyc" -exec rm {} \;
    find ./build -type f -not -path '*/*.xcodeproj/*' -exec rm {} \;
    rm -rf ./gyp/build/
    rm -rf ./config/*.gypi
    rm -rf ./platform/android/MapboxGLAndroidSDK/build \
                ./platform/android/MapboxGLAndroidSDKTestApp/build \
                ./platform/android/MapboxGLAndroidSDK/src/main/jniLibs \
                ./platform/android/MapboxGLAndroidSDK/src/main/obj.target \
                ./platform/android/MapboxGLAndroidSDK/src/main/assets
    rm -f ~/Library/Application\ Support/Mapbox\ GL/cache.db
    clearing files in ~/Library/Developer/Xcode/DerivedData/{mapboxgl-app,osxapp}-* older than one day
    find: /Users/mark/Library/Developer/Xcode/DerivedData/mapboxgl-app-*: No such file or directory
    find: /Users/mark/Library/Developer/Xcode/DerivedData/osxapp-*: No such file or directory
    find ./deps/gyp -name "*.pyc" -exec rm {} \;
    find ./build -type f -not -path '*/*.xcodeproj/*' -exec rm {} \;
    rm -rf ./gyp/build/
    rm -rf ./config/*.gypi
    rm -rf ./platform/android/MapboxGLAndroidSDK/build \
                ./platform/android/MapboxGLAndroidSDKTestApp/build \
                ./platform/android/MapboxGLAndroidSDK/src/main/jniLibs \
                ./platform/android/MapboxGLAndroidSDK/src/main/obj.target \
                ./platform/android/MapboxGLAndroidSDK/src/main/assets
    rm -rf ./mason_packages
    
  9. ChenJian345 commented on Jun 25, 2016

    @ChenJian345

    Anyone can help?

  10. ChenJian345 commented on Jun 25, 2016

    @ChenJian345

    When I use the mapbox mapview, it will hang up and then terminate after a few seconds. Crash log as below.

    2016-06-25 23:51:58.779 beastsbike[1564:809300] Failed to bind EAGLDrawable: <CAEAGLLayer: 0x137cd42b0> to GL_RENDERBUFFER 1
    2016-06-25 23:51:58.779 beastsbike[1564:809300] Failed to make complete framebuffer object 8cd6
    2016-06-25 23:51:58.856 beastsbike[1564:809300] Failed to bind EAGLDrawable: <CAEAGLLayer: 0x137d7f530> to GL_RENDERBUFFER 1
    2016-06-25 23:51:58.857 beastsbike[1564:809300] Failed to make complete framebuffer object 8cd6
    2016-06-25 23:51:58.907 beastsbike[1564:809300] Failed to bind EAGLDrawable: <CAEAGLLayer: 0x137cd42b0> to GL_RENDERBUFFER 1
    2016-06-25 23:51:58.907 beastsbike[1564:809300] Failed to make complete framebuffer object 8cd6
    2016-06-25 23:51:58.967 beastsbike[1564:809300] Failed to bind EAGLDrawable: <CAEAGLLayer: 0x137d7f530> to GL_RENDERBUFFER 1
    2016-06-25 23:51:58.967 beastsbike[1564:809300] Failed to make complete framebuffer object 8cd6
    libc++abi.dylib: terminating with uncaught exception of type mbgl::gl::Error: glStencilFunc(value.func, value.ref, value.mask): Error GL_INVALID_ENUM - ../include/mbgl/gl/gl_values.hpp:104
    
  11. kvurd commented on Jun 28, 2016

    @kvurd

    The issue in the first post occurs for me too, but only if my MGLMapView has a CGRect.zero frame when added to a view. Perhaps try instantiating your MGLMapView with a non-zero frame.

  12. friedbunny commented on Jun 28, 2016

    @friedbunny
    Contributor

    Ah, sorry I missed that — failing to init with frame:CGRectZero is a known issue (#1572).

  13. ChenJian345 commented on Jun 29, 2016

    @ChenJian345

    @friedbunny Yes, when will you fix it?

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

    iOSsupport

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions