GithubHelp home page GithubHelp logo

application crashing about speed-camera HOT 8 CLOSED

pageauc avatar pageauc commented on May 13, 2024
application crashing

from speed-camera.

Comments (8)

pageauc avatar pageauc commented on May 13, 2024

What OS are you running on. saveRecent executes an shutil copy if creation of a symlink fails. I don't see a message about Unix symlink failing. It might be that there is an existing file in the recent rather than a symlink. You may want to try clearing all files from the recent folder since there may be a combination of symlinks and files. Do ls -l to check folder. Al directory entries should be symlinks on a unix system and only files on a non unix system. Then restart. You did not mention what version of speed-cam.py you are running. The latest should be version 8.86

BTW I have been running this code continuously on a RPI B single core for over three weeks.

Please keep me updated on your findings.

Claude ...

from speed-camera.

pageauc avatar pageauc commented on May 13, 2024

BTW. Also check on permissions. When the max entries for recent is reached the oldest symlink/file gets deleted ready for the creation of the new one. Anyway see if all permissions are OK and files have writeable permissions.
Just a thought. Claude ...

from speed-camera.

jschaftenaar avatar jschaftenaar commented on May 13, 2024

Thank you for the quick reply.

Distributor ID: Raspbian Description: Raspbian GNU/Linux 9.4 (stretch) Release: 9.4 Codename: stretch

I am running the master checkout from yesterday.

I will remove all the files in recent. Will report back if this seems to solve the issue.

Next to this I am using a modified version of webcam480 plugin, this is the config for this

# ---------------- User Configuration Settings for speed-cam.py ---------------------------------
#         Ver 8.4 speed-cam.py webcam480 Stream Variable Configuration Settings

#######################################
#    speed-cam.py plugin settings
#######################################

# Calibration Settings
# --------------------
cal_obj_px = 370       # Length of a calibration object in pixels
cal_obj_mm = 4500.0    # Length of the calibration object in millimetres

# Crop Area for motion detection Tracking
# ---------------------------------------
x_left  = 150          # Default= 150 Exclude event if x less than this px position
x_right = 810          # Default= 490 Exclude event if x greater than this px positioni
y_upper = 300          # Default= 140 Exclude event if y less that this value
y_lower = 600          # Default= 340 Exclude event if y greater than this value

# Motion Event Settings
# ---------------------
SPEED_MPH = True      # Set the speed conversion  kph=False  mph=True
MIN_AREA = 200         # Default= 200 Exclude all contours less than or equal to this sq-px Area
track_len_trig = 75    # Default= 75 Length of track to trigger speed photo
x_diff_max = 35        # Default= 35 Exclude if max px away >= last motion event x pos
x_diff_min = 1         # Default= 1  Exclude if min px away <= last event x pos
track_timeout = 0.0    # Default= 0.0 Optional seconds to wait after track End (Avoid dual tracking)
event_timeout = 0.7    # Default= 0.7 seconds to wait for next motion event before starting new track
log_data_to_CSV = True # Default= True True= Save log data as CSV comma separated values

# Camera Settings
# ---------------
WEBCAM = True          # Default= False False=PiCamera True=USB WebCamera

# Web Camera Settings
WEBCAM_SRC = 0         # Default= 0   USB opencv connection number
WEBCAM_WIDTH = 960     # Default= 640 USB Webcam Image width
WEBCAM_HEIGHT = 720    # Default= 480 USB Webcam Image height

# Camera Image Settings
# ---------------------
image_font_size = 15   # Default = 15 Font text height in px for text on images
image_bigger = 1.5     # Default = 1.5 Resize saved speed image by value

# ---------------------------------------------- End of User Variables -----------------------------------------------------```

from speed-camera.

pageauc avatar pageauc commented on May 13, 2024

from speed-camera.

jschaftenaar avatar jschaftenaar commented on May 13, 2024

After some fiddling with the config I found that increasing the track_timeout setting from 0.0 to 0.5 seems to make it stable. I can possibly shorten this timeout a bit and will test with it some more but for now this issue is solved.

from speed-camera.

Deuceman927 avatar Deuceman927 commented on May 13, 2024

I'm having a very similar issue. I have not had the chance to run logging yet, but updating the track_timeout seems to have lengthened the time between service crashes.

from speed-camera.

pageauc avatar pageauc commented on May 13, 2024

from speed-camera.

pageauc avatar pageauc commented on May 13, 2024

I had a previous issue where the problem was a bad USB camera. Testing showed it crashed other apps after a period of time when being used. Resolution was to replace faulty hardware.
Claude ...

from speed-camera.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.