Skip to content
This repository has been archived by the owner on Oct 27, 2020. It is now read-only.

Webcam Consistently Crashing on Init #751

Open
speccoud opened this issue Dec 14, 2019 · 11 comments
Open

Webcam Consistently Crashing on Init #751

speccoud opened this issue Dec 14, 2019 · 11 comments

Comments

@speccoud
Copy link

During my team's autonomous we use a logitech webcam runnng the tfod for Skystone. It initializes ok 1/5 times, usually it is a tedious process of unplugging and plugging the webcam. Does anyone have any suggestions?

@Windwoes
Copy link

Can you post your logs from a failed attempt?

@speccoud
Copy link
Author

The console log crashes because of a getFocalLength() method but I believe that the phone simply cannot see the webcam most of the time on init.

@cmacfarl
Copy link
Collaborator

cmacfarl commented Dec 15, 2019 via email

@speccoud
Copy link
Author

Ok, I will have on Monday.

@speccoud
Copy link
Author

So here is the full error message:

Robot Status: EMERGENCY STOP
To attempt recovery, please restart the robot.
Error: User Code threw an uncaught exception: NullPointerException - Attempt to invoke virtual method 'com.vuforia.Vec2F
com.vuforia.CameraCalibration.getFocalLength()' on a null object reference.

@Windwoes
Copy link

@sjpeccoud that is not the entire stack trace, that's only like the first line or two

@speccoud
Copy link
Author

Thats all there was on the phone screen. Where can I find the whole message?

@Windwoes
Copy link

You can pull the robotControllerLog.txt file from the FIRST folder on the internal storage of the phone and upload it here for us to look at.

@KotoTheOriginal
Copy link

Hey, I'm on the same team as Sam and am looking into finding out the reasoning for this error. The closest I could find to what you mentioned about finding the whole error message was looking at the logs on the RC phone. How can I find the internal storage of the phone to find this FIRST folder?

@cmacfarl
Copy link
Collaborator

adb and familiarity with a shell is the easiest way. They are in /sdcard/ and named robotControllerLog.txt, rotated files have numbers appended to the filename.

adb details can be found here: https://developer.android.com/studio/command-line/adb

If you don't want to deal that, you can select View Logs, and if you long-click on the logs that appear the standard Android sharing dialog will appear whence you can choose how you'd like to share them.

@KokeCacao
Copy link

Hey, I'm on the same team as Sam and am looking into finding out the reasoning for this error. The closest I could find to what you mentioned about finding the whole error message was looking at the logs on the RC phone. How can I find the internal storage of the phone to find this FIRST folder?

for ref:
do adb pull /sdcard/robotControllerLog.txt

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

No branches or pull requests

5 participants