[Vm-dev] Camera sig fault on 64 bits machines.

David T. Lewis lewis at mail.msen.com
Sat Apr 5 15:44:24 UTC 2014


On Sat, Apr 05, 2014 at 11:25:54AM -0300, Gustavo Duarte wrote:
> 
> Hi folks,
> 
> Imagen capture using web camera produces a a segmentation fault.
> 
> I'm using:
> 
> Squeak: 4.4.7
> Scratch: 1.4.06
> Plugins squeak-plugins-scratch: 1.4.0.2~svn.r83-1
> 
> 
> My laptop is running Ubuntu 12.04 64 bits.
> 
> Here the output stack trace.
> ********************************************************************
> gustavo at gusHP ~ $ scratch
> Executing: padsp /usr/lib/squeak/4.4.7-2357/squeakvm -encoding UTF-8 
> -vm-display-x11 -fullscreen -plugins 
> /usr/lib/scratch/plugins/:/usr/lib/squeak/4.4.7-2357/ -vm-sound-oss 
> /usr/share/scratch/Scratch.image
> 
> Segmentation fault
> 
> 11283804 BitBlt>setDestForm:
> 11283712 BitBlt class>toForm:
> 11283464 WarpBlt class>toForm:
> 11283372 ScratchCameraDialog>step
> 11283256 Morph>stepAt:
> 11280616 [] in PasteUpMorph>runStepMethods
> 11280120 OrderedCollection>do:
> 11280340 [] in PasteUpMorph>runStepMethods
> 11279452 BlockContext>ifError:
> 11279360 PasteUpMorph>runStepMethods
> 11271628 PasteUpMorph>doOneCycleNow
> 11271536 PasteUpMorph>doOneCycle
> 4967012 [] in Project>spawnNewProcess
> 4967104 [] in BlockContext>newProcess
> Aborted
> **********************************************
> 
> 
> Where do you think could be the bug, on Squeak, Scratch or Plugin ?

Hi Gustavo,

This is probably a bug in the camera plugin. This plugin has not been
updated to work properly in 64-bit mode, and it might well cause a crash
like this.

I think that you are probably using a VM that was compiled in 64-bit mode
for an Ubuntu distribution. A 64-bit VM works fine for most Squeak users
(I use one every day without problems). However, there are some plugins
that do not yet work in 64-bit mode, and this causes problems if those
plugins are used. For this reason, the VMs that are distributed from the
squeakvm.org or squeak.org sites are compiled in 32-bit mode.

If you can, please try installing a VM from http://squeakvm.org/unix/ and
using that with Scratch. Because it is a 32-bit application, you may also
need to install 32-bit compatibility libraries for Ubuntu. I think that
this will probably resolve the camera plugin problem.

I have also added a bug report on our Mantis bug tracker to follow up
on this issue at http://bugs.squeak.org/view.php?id=7816

Dave



More information about the Vm-dev mailing list