DIYBookScanner / spreads

Modular workflow assistant for book digitization
GNU Affero General Public License v3.0
127 stars 53 forks source link

Repeated USB disconnect/reconnect causes kernel crash #194

Open duerig opened 9 years ago

duerig commented 9 years ago

Using SpreadPi on a Raspberry Pi 2, repeatedly connecting and reconnecting a camera via USB (powering it on and off) will cause a null pointer exception in the kernel and crash the Pi.

jbaiter commented 9 years ago

Can you try and see if this is related to chdkptp/spreads at all? That is, does merely reconnecting the USB devices repeatedly with no application using them also cause a crash? I've seen messages about device resets in my kernel log when attaching CHDK cameras, maybe these are related? Can you see something in your log? I noticed that when these errors happened on my machines (Laptop, Desktop and RPi 1 and 2) the device ID would be incremented. This is just a suspicion, but maybe at some point that value overflows and a crash is the result...

markvdb commented 9 years ago

This could be tested quite quickly by looping through camera reboots via chdkptp versus in a script on the camera I guess... ​