[Pharo-project] Issue 3090: Context not included in ImageSegment when saving morph to file
Mariano Martinez Peck
marianopeck at gmail.com
Tue Oct 12 04:08:31 EDT 2010
Hi Sheridan. I tried to fix it last night, but didn't succeed. Few notes:
- I could reproduce it
- The problem seems in writing a MethodContext since ContextPart >>
storeDataOn: throws the error
- ImageSegment is NOT BEING USED AT ALL. I just implement #new in
ImageSegment to put a halt there, and nothing. No IS instance in created
And...if you see the method ContextPart >> storeDataOn: it does:
self error: 'This Context was not included in the ImageSegment'.
"or perhaps ImageSegments were not used at all"
notice the comment
- In Squeak 4.1 save morph to file seems to be working. You can try to see
why and compare. What I think is that in Squeak 4.1 maybe you don't have
MethodContext (I put a halt in COntextOart >> storeDataOn: and never passes)
to serialize and then this is what it works. I say this because in my case
the MethodContext was something related to Polymorph (that it is not
included in Squeak). Maybe that's the difference or maybe we broke something
why cleaning Pharo.
- I don't think it is related to Closures
On Mon, Oct 11, 2010 at 11:04 AM, Adrian Lienhard <adi at netstyle.ch> wrote:
> For convenience, this is the link to the issue:
> I suspect that this bug is related to the new block closures.
> On Oct 11, 2010, at 07:15 , Sheridan Mahoney wrote:
> > I've just re-entered the Pharo world after a long(ish) absence, and
> wanted to report a
> > new bug submission; here's the breakdown:
> > Pharo image: dev
> > Pharo core version: Pharo-1.1.1-- Latest update: #11414
> > Virtual machine used: 184.108.40.2062 Unix VM
> > OS: Ubuntu Lucid Lynx 10.04
> > Class browser used if applicable: SystemBrowser default
> > Steps to reproduce:
> > 1. start pharo
> > 2. open a Shout workspace
> > 3. select the just-opened workspace
> > 4. Ctrl-right button to get the meta-click window
> > 5. select 'save morph in file'
> > 6. hit 'ok' to proffered name for file
> > 7. a message box comes up that reads 'please wait while objects are
> > counted'.
> > 8. shortly after that an error is generated:
> > 'Error: this context was not included in the ImageSegment'
> > I'm planning on doing more research, but wanted to get the issue
> > Cheers,
> > Sheridan
> > PS - so far I really like 1.1.1 !!! Good work, gang!
> > _______________________________________________
> > Pharo-project mailing list
> > Pharo-project at lists.gforge.inria.fr
> > http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
> Pharo-project mailing list
> Pharo-project at lists.gforge.inria.fr
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Pharo-dev