Announcement

Collapse
No announcement yet.

Retrieving image from Vuforia results in SIGSEGV error

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Retrieving image from Vuforia results in SIGSEGV error

    I am attempting to access the image from Vuforia following the explanation at https://ftcforum.usfirst.org/forum/f...v-with-vuforia. I am using this code: https://gist.github.com/anonymous/8f...666cc4218dd52b. During initialization, the Vuforia camera view correctly displays. However, once the program starts, the image width telemetry displays for a moment, and the Robot Controller app crashes with the following error:

    Fatal signal 11 (SIGSEGV), code 1, fault addr 0x2 in tid 11549 (LinearOpMode ma)

    Here is the full Logcat: https://pastebin.com/4t1mwDLP

    I am running app version 3.6 for both the RC and DS phones. Does anyone know what I am doing wrong, or how to fix this error?
    Lead programmer for team 6287, Vertigo

  • #2
    If you get rid of the frame.close() statement in your "finally" block, it won't crash. I think the problem is that when you are returning the Image object, but closing the Frame that the Image object is somehow dependent on. Then when you call rgb.getWidth(), it crashes.

    Of course, getting rid of the frame.close() statement defeats the purpose of making it closeable.

    Instead, within your getImage() use the Image object to get either a Bitmap or an array of bytes that you can return instead of the Image object.

    Also, Vuforia is already the name of a class in the SDK. I had to change the name of your class to get it to work.

    Comment


    • #3
      Thank you so much! That fixed the problem.
      Lead programmer for team 6287, Vertigo

      Comment

      Working...
      X