Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Automatic detection generate error #8

Closed
costeacostin opened this issue Mar 30, 2020 · 4 comments
Closed

Automatic detection generate error #8

costeacostin opened this issue Mar 30, 2020 · 4 comments

Comments

@costeacostin
Copy link

Hello,

I tried to set up the UVC parameters with the automatic params detection (which I found pretty interesting btw) and it fails.
I tried to debug it and so on but I didn't found anything relevant.

E/AndroidRuntime: FATAL EXCEPTION: main
Process: humer.uvc_camera, PID: 7391
java.lang.NullPointerException: Attempt to read from field 'int humer.uvc_camera.UVC_Descriptor.UVC_Descriptor$FormatIndex.numberOfFrameDescriptors' on a null object reference
at humer.uvc_camera.SaveToFile.selectFrameIndex(SaveToFile.java:1022)
at humer.uvc_camera.SaveToFile.selectFormatIndex(SaveToFile.java:966)
at humer.uvc_camera.SaveToFile.selectUrbs(SaveToFile.java:911)
at humer.uvc_camera.SaveToFile.selectPackets(SaveToFile.java:874)
at humer.uvc_camera.SaveToFile.selectMaxPacketSize(SaveToFile.java:836)
at humer.uvc_camera.SaveToFile.setUpWithUvcValues(SaveToFile.java:758)
at humer.uvc_camera.SetUpTheUsbDevice$23.onDismiss(SetUpTheUsbDevice.java:958)
at android.app.Dialog$ListenersHandler.handleMessage(Dialog.java:1408)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loop(Looper.java:166)
at android.app.ActivityThread.main(ActivityThread.java:6861)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:450)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:936)
I/Process: Sending signal. PID: 7391 SIG: 9

BR,
Costin

@Peter-St
Copy link
Owner

Hello costeacostin,

thx for debugging the app.
This failure is because your camera supports more than one format indexes, but this case isn't included so far in my app.

I will solve it soon.

@Peter-St
Copy link
Owner

ok, plz update your app from github and try it out again ...

@Peter-St
Copy link
Owner

ok, plz update your app from github and try it out again ...

Note:

The Automatic Detections is in beta Development for now. A lot of cases of setting up the values for different cameras on different devices are not included for now.

@Peter-St Peter-St reopened this Mar 30, 2020
@Peter-St
Copy link
Owner

The latest Driver of this app works better with every camera. The Auto Detection will remain in Beta I think, because it's heavy complicated to get every camera with every phone runnung, without any malfunctions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants