Insta360Develop / CameraSDK-Android

Android SDK to control Insta360 cameras
81 stars 9 forks source link

Error during preview #16

Closed fareed945 closed 2 years ago

fareed945 commented 2 years ago

Hey, I face the following error while previewing using the insta 360 onex2

java.lang.NullPointerException: Attempt to invoke interface method 'void com.arashivision.onestream.pipeline.ICameraPreviewPipeline.onGyroStream(byte[], long)' on a null object reference\n\tat com.arashivision.camera.stream.StreamProcess.processGyro(StreamProcess.java:595)\n\tat com.arashivision.camera.stream.StreamProcess.precoss(StreamProcess.java:255)\n\tat com.arashivision.camera.stream.StreamProcess.access$100(StreamProcess.java:42)\n\tat com.arashivision.camera.stream.StreamProcess$4.run(StreamProcess.java:230)\n\tat android.os.Handler.handleCallback(Handler.java:938)\n\tat android.os.Handler.dispatchMessage(Handler.java:99)\n\tat android.os.Looper.loopOnce(Looper.java:201)\n\tat android.os.Looper.loop(Looper.java:288)\n\tat android.os.HandlerThread.run(HandlerThread.java:67)\n"

What might be the issue ?

FYI: @EternalSoySauce

EternalSoySauce commented 2 years ago

If it appears every time, check if you have performed the following operations. image

If it happened by accident, update the sdk to v1.3.14. It has been fixed in this version.

fareed945 commented 2 years ago

It occurs intermittently, not always. Sure, will update the SDK accordingly