Mantis - Squeak
Viewing Issue Advanced Details
7598 VM minor always 01-22-11 16:44 01-22-11 18:01
glenpaling  
eem  
normal  
assigned 4.1  
open  
none    
none  
0007598: Cog VM Causes BalloonEngine Primitive Failure with Transparent Polygons
Transparent PolygonMorphs will eventually suffer a primitive failure in Balloon. primAddPolygon:segments:fill:lineWidth:lineFill: fails. All Macintosh and Windows versions of Cog will produce this failure. I haven't tested Linux. Unmodified Squeak 4.1, Trunk and Pharo images produce the problem. I was able to reproduce the bug in in original Cog VMs from last June. Standard VMs work fine.

I've tried to produce the failure with various colors and alpha values, only transparent fills result in failure. I have an application that can animate many PolygonMorphs. I ran it all last week with translucent polygon without failure.

The morphs don't always fail initially, but will eventually. Just execute "PolygonMorph new color: Color transparent; openInHand." a few times and play with the morphs, resizing, moving, put windows on top of them etc.
Here's the stack

BalloonEngine(Object)>>error:
[] in WorldState>>displayWorldSafely:
BlockClosure>>cull:cull:
[] in BlockClosure>>ifError:
BlockClosure>>cull:
[] in MethodContext(ContextPart)>>handleSignal:
BlockClosure>>ensure:
MethodContext(ContextPart)>>handleSignal:
Error(Exception)>>signal
Error(Exception)>>signal:
BalloonEngine(Object)>>error:
BalloonEngine(Object)>>primitiveFailed:
BalloonEngine(Object)>>primitiveFailed
BalloonEngine>>primAddPolygon:segments:fill:lineWidth:lineFill:
BalloonEngine>>drawPolygon:fill:borderWidth:borderColor:transform:
BalloonCanvas>>drawPolygon:fillStyle:borderWidth:borderColor:
FormCanvas>>drawPolygon:fillStyle:borderWidth:borderColor:
FormCanvas(Canvas)>>drawPolygon:fillStyle:
PolygonMorph>>drawOn:
FormCanvas(Canvas)>>draw:

Notes
(0014026)
lewis   
01-22-11 18:00   
Thanks for reporting this. I will forward the issue to the vm-dev list also.