Rajawali / RajawaliVuforia

Rajawali + Vuforia Augmented Reality
Other
227 stars 108 forks source link

Error on initialization since last update #35

Closed ghost closed 10 years ago

ghost commented 10 years ago

Hey there, first of all I want to thank you for your work on rajawali and on this bridge with vuforia, which I was lately trying to protoype on.

Everything ran fine until I pulled the last changes to both the Rajawali and the RajawaliVuforia repos. Now whenever I launch any of my RajawaliVuforia-dependant projects I get a crash on initialization, here is a snippet of the logs : 06-02 16:30:28.149: D/Rajawali(20345): Java_rajawali_vuforia_RajawaliVuforiaRenderer_updateRendering 06-02 16:30:28.149: D/Rajawali(20345): configureVideoBackground LANDSCAPE 06-02 16:30:28.149: D/Rajawali(20345): Correcting rendering background size to handle missmatch between screen and video aspect ratios. 06-02 16:30:28.149: D/Rajawali(20345): Configure Video Background : Video (800,448), Screen (1280,736), mSize (1314,736) 06-02 16:30:28.249: E/Rajawali(20345): Could not create framebuffer 2: [1282]: invalid operation 06-02 16:30:28.279: W/dalvikvm(20345): threadid=14: thread exiting with uncaught exception (group=0x40ce8930) 06-02 16:30:28.279: E/AndroidRuntime(20345): FATAL EXCEPTION: GLThread 663 06-02 16:30:28.279: E/AndroidRuntime(20345): java.lang.RuntimeException: Could not create framebuffer 2: [1282]: invalid operation 06-02 16:30:28.279: E/AndroidRuntime(20345): at rajawali.renderer.RenderTarget.checkGLError(RenderTarget.java:342) 06-02 16:30:28.279: E/AndroidRuntime(20345): at rajawali.renderer.RenderTarget.create(RenderTarget.java:278) 06-02 16:30:28.279: E/AndroidRuntime(20345): at rajawali.renderer.RajawaliRenderer.internalAddRenderTarget(RajawaliRenderer.java:942) 06-02 16:30:28.279: E/AndroidRuntime(20345): at rajawali.renderer.RajawaliRenderer.handleAddTask(RajawaliRenderer.java:736) 06-02 16:30:28.279: E/AndroidRuntime(20345): at rajawali.renderer.RajawaliRenderer.performFrameTasks(RajawaliRenderer.java:670) 06-02 16:30:28.279: E/AndroidRuntime(20345): at rajawali.renderer.RajawaliRenderer.onDrawFrame(RajawaliRenderer.java:352) 06-02 16:30:28.279: E/AndroidRuntime(20345): at rajawali.vuforia.RajawaliVuforiaRenderer.onDrawFrame(RajawaliVuforiaRenderer.java:124) 06-02 16:30:28.279: E/AndroidRuntime(20345): at com.onefit.archtest1.ARRenderer.onDrawFrame(ARRenderer.java:183) 06-02 16:30:28.279: E/AndroidRuntime(20345): at android.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1516) 06-02 16:30:28.279: E/AndroidRuntime(20345): at android.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1240) 06-02 16:30:28.299: D/Rajawali(20345): Java_rajawali_vuforia_RajawaliVuforiaActivity_stopCamera 06-02 16:30:28.689: D/dalvikvm(20345): GC_EXPLICIT freed 1665K, 15% free 17641K/20740K, paused 2ms+5ms, total 47ms 06-02 16:30:29.279: D/dalvikvm(20345): GC_EXPLICIT freed 7970K, 54% free 9684K/20740K, paused 2ms+7ms, total 64ms 06-02 16:30:29.279: D/Rajawali(20345): Java_rajawali_vuforia_RajawaliVuforiaRenderer_destroyTrackerData 06-02 16:30:29.289: D/Rajawali(20345): Java_rajawali_vuforia_RajawaliVuforiaActivity_deinitApplicationNative 06-02 16:30:29.289: D/Rajawali(20345): Java_rajawali_vuforia_RajawaliVuforiaActivity_deinitTracker 06-02 16:30:29.299: D/Rajawali(20345): Failed to deinit CloudReco as the ImageTracker was not initialized. 06-02 16:30:29.359: D/dalvikvm(20345): GC_EXPLICIT freed 12K, 54% free 9683K/20740K, paused 4ms+3ms, total 56ms 06-02 16:30:29.959: I/Process(20345): Sending signal. PID: 20345 SIG: 9

Seems like it crashes when the renderer tries to create a render target but I haven't found a workaround yet, if any of you guys have any hint i'll take it.

Thank you !

MasDennis commented 10 years ago

Hi, The latest Rajawali commit fixes this.