Hi all,
I've noticed that when I select the "New Drawing" item from the main popup menu in the Morphic world "Play With Me 3", Squeak hangs. This also happens to me in Squeak 1.21 and 1.30.
Once, after moving the Squeak window, I got it to unhang long enough to display the image editor before hanging again. Running inside gdb shows it to be inside the interpreter when it hangs (and apparently executing bytecodes normally).
If I leave it a while, it crashes with the standard stack dump. I've appended a copy of the last few lines of the trace to this message. As you can see, it appears to be an infinite recursion in basicNew.
I'm running Linux 2.0.30, fvwm95 1.24, X with S3 acceleration, libc version 5.3.12 and libX11 version 6.1. Other information is available on request.
Has anyone else seen this bug? I don't currently use Morphic much, but I'd like to see this bug nailed before MVC becomes deprecated.
--Chris
Stack trace: [...] + 1080437728 40 Behavior>>basicNew: + 1080437284 40 Behavior>>basicNew: + 1080436840 40 Behavior>>basicNew: + 1080436396 40 Behavior>>basicNew: + 1080435952 40 Behavior>>basicNew: + 1080435508 40 Behavior>>basicNew: + 1080435064 40 Behavior>>basicNew: + 1080434620 40 Behavior>>basicNew: + 1080434176 40 Behavior>>basicNew: + 1080433732 40 Behavior>>new: + 1080433288 43 Form>>setExtent:depth: + 1080432844 18 Form class>>extent:depth: + 1080432400 23 FormCanvas class>>extent:depth: + 1080431956 22 FormCanvas class>>extent: + 1080431512 45 Morph>>imageFormForRectangle: + 1080430988 365 SketchEditorMorph>>dimTheWindow + 1080046404 134 SketchEditorMorph>>initializeFor:inWorld: + 1079638064 135 HandMorph>>makeNewDrawing + 1079637988 83 [] in MenuMorph>>invokeItem: + 1079637912 25 Cursor>>showWhile: + 1079635196 104 MenuMorph>>invokeItem: + 1079630640 109 [] in MenuItemMorph>>mouseUp: + 1079632944 7 UndefinedObject>>ifNil: + 1079630408 113 MenuItemMorph>>mouseUp: + 1079630332 63 HandMorph>>handleMouseUp: + 1079628008 130 HandMorph>>handleEvent: + 1079629104 192 HandMorph>>processEvents + 1079629028 26 [] in WorldMorph>>doOneCycle + 1079628952 20 SequenceableCollection>>do: + 1079627816 28 WorldMorph>>doOneCycle + 1079550016 54 [] in Project>>spawnNewProcess + 1079545788 33 [] in BlockContext>>newProcess
Hi all,
I've noticed that when I select the "New Drawing" item from the main popup menu in the Morphic world "Play With Me 3", Squeak hangs. This also happens to me in Squeak 1.21 and 1.30.
Yes, I've seen this bug before. Squeak is running out of space but somehow the low-space notification mechanism isn't handling it. (You should get an error window telling you that space is low, not a hard crash.)
I've been looking for a reproducible case that will cause this so I can finally debug it. If you get a chance, could you note: a. what display depth you have b. how much space is available right before you select "New Drawing" (use the "space left" command under the "help" command in the screen menu). That would be very helpful.
To work around the problem, just start up Squeak with more memory. I'm not sure how to do this on Linux; perhaps a command line option.
Incidentally, this bug is not Morphic-specific; it can happen under MVC, too, when any application allocates a large enough object. It is also not platform specific; it can happen on any platform when memory is in short supply. (Hey, a portable bug!) Fortunately, it is fairly rare; the low-space notifier works properly most of the time. (Small consolation when it happens to you, I know.)
-- John
squeak-dev@lists.squeakfoundation.org