raspberrypi / scratch

Scratch releases
79 stars 21 forks source link

CameraPlugin connects only once and fails thereafter #128

Closed timrowledge closed 9 years ago

timrowledge commented 9 years ago

In the latest Raspbian the camera plugin is not able to connect more than once. Debugging so far implies this is a v4l library issue but someone much more knowledgeable about the library will need to look into this.

On the good news side, it seems that the library no longer Smurfifies everything so #50 can be closed.

timrowledge commented 9 years ago

Thanks to Dave Stevenson @ Pi central, we have a solution to this; the code was opening more buffers than it was closing and strange tentacled monsters fr omthe dungeon dimensions were using that to force their way into the world.

timrowledge commented 9 years ago

Cog/platforms/unix/plugins/CameraPlugin/sqCamera-linux.c has been updated to bolt the .. door.. and now we seem to be able to take Scratch selfies at will.

Ready to include in next release.

timrowledge commented 9 years ago

Fix in svn commit 3258, http://www.squeakvm.org/cgi-bin/viewvc.cgi/squeak/branches/Cog/platforms/unix/plugins/CameraPlugin/sqCamera-linux.c?view=log