|
From: Ned K. <ne...@sq...> - 2004-04-03 15:39:31
Attachments:
SimFixes-nk.3.cs
|
On Wednesday 31 March 2004 1:14 pm, Dan Ingalls wrote: > Hi, Guys - > > Can any of you tell me a recent version of Squeak in which the > InterpreterSimulator actually ran? By this I mean able to display a simple > morphic screen and allow simple interactions (like show a menu, drag a > morph), however slowly? > > I am debugging my way through the IS in 3.7, but it would help to have > something fairly recent that actually works. > > Thanks in advance for anything (including humor ;-). Though this may be in the humor category, here's what I was using most recently. I got it to run somewhat (so it may be a start). Here's what I did (on my Intel P4 Linux box): Start with a 5816 image and a new VM. Load Tim's VMMaker 3.7b1 Load this CS Open a Transcript find a small image with Morphic. In a Workspace: (InterpreterSimulatorLSB new openOn: 'small.image') test. I see the Morphic screen from small.image painted, but it doesn't keep running. I don't get any walkbacks; it just completes normally. The messages in the Transcript are: Looking for module MiscPrimitivePlugin ... loaded <Running full GC ... done> Looking for module FilePlugin Looking for module SecurityPlugin ... loaded ... loaded Looking for module BitBltPlugin ... loaded -- Ned Konz http://bike-nomad.com/squeak/ |
|
From: Ned K. <ne...@sq...> - 2004-04-03 18:33:39
Attachments:
SimFixes-nk.5.cs
|
On Saturday 03 April 2004 8:37 am, Tim Rowledge wrote: > In message <200...@sq...> > > Ned Konz <ne...@sq...> wrote: > > Though this may be in the humor category, here's what I was using most > > recently. I got it to run somewhat (so it may be a start). > > [snip] > > > I see the Morphic screen from small.image painted, but it doesn't keep > > running. > > I don't get any walkbacks; it just completes normally. > > Yup. I saw that too. It was 'fixed' by making the module initialisation > for B2DPlugin not do the wrong thing; that was causing an error in the > bowels of the simulator >which was not raising a notifier< ! > > I'm currently convinced there is something seriously screwed in some > signal/exception code. Note that the unit test for exceptions fails the > 'outer' related test. I also had a problem a while ago that I never > really got to the bottom of in VMMAker - an error would simply 'go by' > and make it look like the generation was done. We need to fix this PDQ > in my view. > > I've been working with Dan on this and if you use mylatest VMMaker3-7b2 > and the attached sim patch it should go a bit better. And since my > current bug seems to be to do with halfWordAt: it looks like Ned might > have fixed that... ta very much. OK. Here's a combined change set that will run Morphic in a stock 3.6Full-5424 image after loading Tim's VMMaker3-7b2.sar package from http://sumeru.stanford.edu/tim/pooters/SqFiles/packages/VMMaker/VMMaker3-7b2.sar I haven't tried it in any later images, nor have I tried to speed it up (though the byte and half-word accessors I did are much faster; there's a big difference in: bitShift: 3 and * 8 I also sped up the GC a bit (using bitOr: to set header type bits rather than the slow LargeInteger addition). -- Ned Konz http://bike-nomad.com/squeak/ |
|
From: Dan I. <Da...@Sq...> - 2004-04-03 18:51:30
|
>OK. Here's a combined change set that will run Morphic in a stock 3.6Full-5424 >image after loading Tim's VMMaker3-7b2.sar package from >http://sumeru.stanford.edu/tim/pooters/SqFiles/packages/VMMaker/VMMaker3-7b2.sar > >I haven't tried it in any later images, nor have I tried to speed it up >(though the byte and half-word accessors I did are much faster; there's a big >difference in: > > bitShift: 3 >and > * 8 > >I also sped up the GC a bit (using bitOr: to set header type bits rather than >the slow LargeInteger addition). Hey, Ned - This is GREAT. Many thanks - Dan |
|
From: Tim R. <ti...@su...> - 2004-04-04 00:15:14
|
> OK. Here's a combined change set that will run Morphic in a stock 3.6Full-5424 > image after loading Tim's VMMaker3-7b2.sar package from > http://sumeru.stanford.edu/tim/pooters/SqFiles/packages/VMMaker/VMMaker3-7b2.sar > Do you still get the strange "it just plain stops" problem? My lastrun before going out for the day "just stopped" at primitivePluginBrowserReady. No error, nothing. That really bothers me - now I have to try and find out if it is a stupid image problem I can berate someone else about or is it an entirely understandable minor error that anyone could make when doing VM work :-) tim -- Tim Rowledge, ti...@su..., http://sumeru.stanford.edu/tim Useful random insult:- His access light's on, but the drive isn't spinning . |
|
From: Ned K. <ne...@sq...> - 2004-04-04 03:25:54
Attachments:
SimFixes-nk.6.cs.gz
|
On Saturday 03 April 2004 4:13 pm, Tim Rowledge wrote: > > OK. Here's a combined change set that will run Morphic in a stock > > 3.6Full-5424 image after loading Tim's VMMaker3-7b2.sar package from > > http://sumeru.stanford.edu/tim/pooters/SqFiles/packages/VMMaker/VMMaker3- > >7b2.sar > > Do you still get the strange "it just plain stops" problem? My lastrun > before going out for the day "just stopped" at > primitivePluginBrowserReady. No error, nothing. That really bothers me > - now I have to try and find out if it is a stupid image problem I can > berate someone else about or is it an entirely understandable minor > error that anyone could make when doing VM work :-) Oops... No, sorry; I just fixed that and didn't re-post. The problem was that you weren't checking for a nil return in primitiveGetAttribute Here's a better (and somewhat faster) one... -- Ned Konz http://bike-nomad.com/squeak/ |
|
From: Tim R. <ti...@su...> - 2004-04-04 04:11:43
|
In message <200...@sq...>
Ned Konz <ne...@sq...> wrote:
> Oops... No, sorry; I just fixed that and didn't re-post.
>
> The problem was that you weren't checking for a nil return in
> primitiveGetAttribute
Nah - while primitiveGetAttribute might well be wrong, that's not the
problem that's annoying me right now. I simply don't get notifiers that
should appear; put a self halt in the simulator and it simply exits, no
error handling, nothing. I've tried a 3.4 VM and that makes no
difference, so I doubt that it's a bug caused by the new VM I'm
running. The weird thing is that I can interrupt the simulator with no
problem and get the debugger, proceed, interrupt again and again.
No change in 5424 unfortunately. I'm getting quite annoyed with this.
Ned, if you put a 'self halt'in BitBltSimulation>initialiseModule does
it actually open a debugger for you? All I get is ... stop.
tim
--
Tim Rowledge, ti...@su..., http://sumeru.stanford.edu/tim
You depend too much on computers for information.
|
|
From: Ned K. <ne...@sq...> - 2004-04-04 05:08:27
|
On Saturday 03 April 2004 8:10 pm, Tim Rowledge wrote: > In message <200...@sq...> > > Ned Konz <ne...@sq...> wrote: > > Oops... No, sorry; I just fixed that and didn't re-post. > > > > The problem was that you weren't checking for a nil return in > > primitiveGetAttribute > > Nah - while primitiveGetAttribute might well be wrong, that's not the > problem that's annoying me right now. I simply don't get notifiers that > should appear; put a self halt in the simulator and it simply exits, no > error handling, nothing. I've tried a 3.4 VM and that makes no > difference, so I doubt that it's a bug caused by the new VM I'm > running. The weird thing is that I can interrupt the simulator with no > problem and get the debugger, proceed, interrupt again and again. > > No change in 5424 unfortunately. I'm getting quite annoyed with this. > Ned, if you put a 'self halt'in BitBltSimulation>initialiseModule does > it actually open a debugger for you? All I get is ... stop. Perhaps Anthony could shed some light on this. -- Ned Konz http://bike-nomad.com/squeak/ |
|
From: Ned K. <ne...@sq...> - 2004-04-04 05:02:45
|
On Saturday 03 April 2004 8:10 pm, Tim Rowledge wrote: > I simply don't get notifiers that > should appear; put a self halt in the simulator and it simply exits, no > error handling, nothing. I've tried a 3.4 VM and that makes no > difference, so I doubt that it's a bug caused by the new VM I'm > running. The weird thing is that I can interrupt the simulator with no > problem and get the debugger, proceed, interrupt again and again. > > No change in 5424 unfortunately. I'm getting quite annoyed with this. > Ned, if you put a 'self halt'in BitBltSimulation>initialiseModule does > it actually open a debugger for you? All I get is ... stop. I get the same thing. However, I can actually run Morphic, so *most* of the simulator seems to be working. -- Ned Konz http://bike-nomad.com/squeak/ |
|
From: Tim R. <ti...@su...> - 2004-04-04 07:21:14
|
In message <200...@sq...>
Ned Konz <ne...@sq...> wrote:
> > Ned, if you put a 'self halt'in BitBltSimulation>initialiseModule does
> > it actually open a debugger for you? All I get is ... stop.
>
> I get the same thing. However, I can actually run Morphic, so *most* of the
> simulator seems to be working.
Well that's a relief - if I were getting different behaviour at that
level I'd be really pissed off.
Certainly there's some very odd stuff happening with errors.
Good news I can actually get a MVC image up in sim. Who knows
what tomorrow will bring?
tim
--
Tim Rowledge, ti...@su..., http://sumeru.stanford.edu/tim
Useful random insult:- His page was intentionally left blank.
|
|
From: Ned K. <ne...@sq...> - 2004-04-04 14:13:39
|
On Saturday 03 April 2004 11:19 pm, Tim Rowledge wrote: > In message <200...@sq...> > > Ned Konz <ne...@sq...> wrote: > > > Ned, if you put a 'self halt'in BitBltSimulation>initialiseModule does > > > it actually open a debugger for you? All I get is ... stop. > > > > I get the same thing. However, I can actually run Morphic, so *most* of > > the simulator seems to be working. > > Well that's a relief - if I were getting different behaviour at that > level I'd be really pissed off. > > Certainly there's some very odd stuff happening with errors. > > Good news I can actually get a MVC image up in sim. Who knows > what tomorrow will bring? Fun fact: we get a debugger if we use #profileSends: instead of just #runForNBytes: Another fun fact: when you hit the halt the UIProcess gets killed off and restarted (this is of course why your loop stops). Try this: * put your halt in initialiseModule as before * open a ProcessBrowser, note the ID of the UI process * do this in a workspace: p := Processor activeProcess. sim test. "stops without a clue" * update the ProcessBrowser You will see the old activeProcess suspended in the list. Note that you can't debug it. Apparently the fork of the new UI process happens, but the debugger is not opening in it. Hmmm... try running the simulator from an MVC project. You get the debugger. Maybe something is referring to the uiProcess, ScheduledController, or some other global state and so is fooling the debugger into not opening correctly. -- Ned Konz http://bike-nomad.com/squeak/ |
|
From: Dan I. <Da...@Sq...> - 2004-04-03 16:26:05
|
Hi, Ned -
>Though this may be in the humor category, here's what I was using most
>recently. I got it to run somewhat (so it may be a start).
Well, Smalltalk started with humor ("Hey, wouldn't it be cool to send a message for every operation?..."), so I consider this to be a propitious start.
Seriously, though, Tim and I have both been sneaking up on a successful run. In fact, last night Tim opined that halfWordAt: was the problem. The two images I've tried get off in the weeds after loading other plugins such as balloon2D for corner rounding, Zip for decompression, and something else to find out if it's in a plugin (you have the same fix for this).
Anyway, please send me (only, unless someone else wants it) a zip with the small image and changes that you used. Then I can duplicate your work and set about getting my other images to work as well.
Thanks for your help. This is great progress.
Once reflection works, the only problem is figuring out where you want to go...
;-)
- Dan
PS to all: Tim and I will try to keep VMMaker up to date until we have things well checked out, and we'll send out little progress notes as we do.
PPS: I dropped the previous CCs because I think we're all on VMDev. Please let me know if this is not the case.
|
|
From: Tim R. <ti...@su...> - 2004-04-03 16:38:38
Attachments:
IntSimFix.2.cs
|
In message <200...@sq...>
Ned Konz <ne...@sq...> wrote:
> Though this may be in the humor category, here's what I was using most
> recently. I got it to run somewhat (so it may be a start).
[snip]
> I see the Morphic screen from small.image painted, but it doesn't keep
> running.
> I don't get any walkbacks; it just completes normally.
Yup. I saw that too. It was 'fixed' by making the module initialisation
for B2DPlugin not do the wrong thing; that was causing an error in the
bowels of the simulator >which was not raising a notifier< !
I'm currently convinced there is something seriously screwed in some
signal/exception code. Note that the unit test for exceptions fails the
'outer' related test. I also had a problem a while ago that I never
really got to the bottom of in VMMAker - an error would simply 'go by'
and make it look like the generation was done. We need to fix this PDQ
in my view.
I've been working with Dan on this and if you use mylatest VMMaker3-7b2
and the attached sim patch it should go a bit better. And since my
current bug seems to be to do with halfWordAt: it looks like Ned might
have fixed that... ta very much.
tim
--
Tim Rowledge, ti...@su..., http://sumeru.stanford.edu/tim
The generation of random numbers is too important to be left to chance.
|