groupgets / GetThermal

Cross-platform USB thermal camera viewer
MIT License
233 stars 92 forks source link

If no camera connected or detected then no warning/error presented to user #12

Open drjasonharrison-vp-eio opened 6 years ago

drjasonharrison-vp-eio commented 6 years ago

If there is no Lepton or Boson connected by USB then there is no warning or error presented to the user. If the app binary is launched directly from the terminal the following errors are printed:

$ ./GetThermal.app/Contents/MacOS/GetThermal  
UVC initialized
uvc_find_device: No such device (-4)
Surface set. Supported formats: 18 19 22 23 20 21 3 1 10 8 5
qrc:/controls/CameraControls.qml:56: TypeError: Cannot read property 'objectName' of null
Surface supports format 0 width -1 height -1qrc:/controls/VideoRoi.qml:18: TypeError: Cannot read property 'height' of undefined
qrc:/controls/VideoRoi.qml:17: TypeError: Cannot read property 'width' of undefined
qrc:/controls/VideoRoi.qml:16: TypeError: Cannot read property 'y' of undefined
qrc:/controls/VideoRoi.qml:15: TypeError: Cannot read property 'x' of undefined
qrc:/ViewerForm.ui.qml:57: TypeError: Cannot read property 'radSpotmeterRoi' of null
qrc:/ViewerForm.ui.qml:53: TypeError: Cannot read property 'supportsRadiometry' of null
qrc:/ViewerForm.ui.qml:69: TypeError: Cannot read property 'supportsRadiometry' of null
qrc:/controls/SpotInfo.qml:11: TypeError: Cannot read property 'radTLinearResolution' of null
qrc:/controls/SpotInfo.qml:46: TypeError: Cannot read property 'radSpotmeterInKelvinX100' of null
qrc:/controls/RangeDisplay.qml:11: TypeError: Cannot read property 'radTLinearResolution' of null
jabejo97 commented 4 years ago

Hey, I am having a similar issue. Running on Linux Mint Mate 64-bit on virtual box. My error is as follows:

Starting /home/tvac1/build-GetThermal-Desktop-Debug/debug/GetThermal... QML debugging is enabled. Only use this in a safe environment. qt5ct: using qt5ct plugin uvc_find_device: No such device (-4) UVC initialized Surface set. Supported formats: 18 19 22 23 20 21 3 1 10 8 5 Surface supports format 0 width -1 height -1 qrc:/controls/CameraControls.qml:56: TypeError: Cannot read property 'objectName' of null qrc:/ViewerForm.ui.qml:53: TypeError: Cannot read property 'supportsRadiometry' of null qrc:/ViewerForm.ui.qml:68: TypeError: Cannot read property 'supportsRadiometry' of null qrc:/controls/SpotInfo.qml:11: TypeError: Cannot read property 'radTLinearResolution' of null qrc:/controls/SpotInfo.qml:46: TypeError: Cannot read property 'radSpotmeterInKelvinX100' of null qrc:/controls/RangeDisplay.qml:11: TypeError: Cannot read property 'radTLinearResolution' of null

Was there a solution to this problem?

jabejo97 commented 4 years ago

Hey, I am having a similar issue. Running on Linux Mint Mate 64-bit on virtual box. My error is as follows:

Starting /home/tvac1/build-GetThermal-Desktop-Debug/debug/GetThermal... QML debugging is enabled. Only use this in a safe environment. qt5ct: using qt5ct plugin uvc_find_device: No such device (-4) UVC initialized Surface set. Supported formats: 18 19 22 23 20 21 3 1 10 8 5 Surface supports format 0 width -1 height -1 qrc:/controls/CameraControls.qml:56: TypeError: Cannot read property 'objectName' of null qrc:/ViewerForm.ui.qml:53: TypeError: Cannot read property 'supportsRadiometry' of null qrc:/ViewerForm.ui.qml:68: TypeError: Cannot read property 'supportsRadiometry' of null qrc:/controls/SpotInfo.qml:11: TypeError: Cannot read property 'radTLinearResolution' of null qrc:/controls/SpotInfo.qml:46: TypeError: Cannot read property 'radSpotmeterInKelvinX100' of null qrc:/controls/RangeDisplay.qml:11: TypeError: Cannot read property 'radTLinearResolution' of null

Was there a solution to this problem?

NOTE: VirtualBox is not friendly with the USB camera device, so used VMWare and worked like a charm, hope this helps others.