QuinnDamerell / OctoPrint-OctoEverywhere

Cloud Empower Your OctoPrint, Klipper, and Bambu Lab 3D Printers With Free, Private, And Secure Remote Access, AI Print Failure Detection, Real-time Notifications, Live Streaming, and More!
https://octoeverywhere.com
GNU Affero General Public License v3.0
154 stars 15 forks source link

Error: WebcamHelper _GetWebcamSettingObj exception #49

Closed PseudoNinja closed 1 year ago

PseudoNinja commented 1 year ago

Description of Issue

During a 10MB print the printer stops printing but continued to heat bed and hot end. Display on printer says its still printing. Octopi shows an error that it lost communication with the printer and the only errors included in the log file is a repeating pattern of this error.

Camera is plugged in BUT only displays a black screen.

My Hypothosis

My guess is its creating a memory leak by not properly collecting the object when the service call is over overflowing the onboard memory of the pi board rendering it unresponsive.

Thinking a quick null reference check could prevent this cascade.

Configuration

Octoprint.log file

2023-09-23 14:28:07,666 - octoprint.plugins.octoeverywhere - ERROR - WebcamHelper _GetWebcamSettingObj exception.; AttributeError Exception: 'NoneType' object has no attribute 'lower'; Traceback (most recent call last):
  File "/home/CE3P-A_admin/oprint/lib/python3.9/site-packages/octoeverywhere/webcamhelper.py", line 330, in _GetWebcamSettingObj
    a = self.WebcamPlatformHelperInterface.GetWebcamConfig()
  File "/home/CE3P-A_admin/oprint/lib/python3.9/site-packages/octoprint_octoeverywhere/octoprintwebcamhelper.py", line 54, in GetWebcamConfig
    cameraStreamerJmpegUrl = WebcamHelper.DetectCameraStreamerWebRTCStreamUrlAndTranslate(streamUrl)
  File "/home/CE3P-A_admin/oprint/lib/python3.9/site-packages/octoeverywhere/webcamhelper.py", line 382, in DetectCameraStreamerWebRTCStreamUrlAndTranslate
    streamUrlLower = streamUrl.lower()
AttributeError: 'NoneType' object has no attribute 'lower'
PseudoNinja commented 1 year ago

Error still present but not the cause of my crash (found out it was the unshielded display ribbon cable)

QuinnDamerell commented 1 year ago

Thanks for letting me know; I just fixed this in the most recent release!