Hello, all
I'm trying to run a script that backups my objects using ImageSegments, using this code:
| aFile |
aFile := FileStream newFileNamed: 'backup.obj'.
aFile fileOutClass: nil andObject: WBUser all.
When I test the script (in another image, not the broken one), and I'm getting the following error:
"This context was not include in the ImageSegment". It seems to be in ContextPart#storeDataOn:, because of this line:
aDataStream insideASegment ifTrue: [^ super storeDataOn: aDataStream].
which is returning false at #insideASegment...
I'm already tried other code, like:
| aSegment aStream |
aStream := FileDirectory default newFileNamed: 'backup.dat'.
aSegment := ImageSegment new.
aSegment copyFromRoots: (WBUser all asArray) sizeHint: 100000 areUnique: true.
aSegment writeForExportOn: aStream.
And I'm getting the same error...
¿Does anybody knows what I'm doing wrong?
Thanks,
Esteban
On Nov 28, 2007 6:52 PM, Esteban Lorenzano <
[hidden email]> wrote:
Hi Gulik,No, it was not a morphic application, but seaside 2.8. And yes, I have REPLServer installed and running but it was useless :(
Thanks,
Esteban
On Nov 28, 2007 4:56 PM, Michael van der Gulik <
[hidden email]> wrote:
On Nov 28, 2007 9:56 AM, Esteban Lorenzano <
[hidden email]> wrote:
Hi all,I have an image that is not working anymore, and I can not take control from that (the image starts, but i can't press any key, not even cmd+.)
Is there a way to load the image (as an ImageSegment or something like that) so I can recover the objects I need?
Do you mind if I ask what happened so that the image broke? Was it a custom morph?
Under some circumstances, it is possible to recover a broken image if you have prepared for the case of failure. I use REPLServer, which is a telnet server that executes Smalltalk commands in the image, to enter these image via a "back door" and then recover the image manually. One helpful command in REPLServer is:
: utils rebootMorphic.
Which starts you on a completely fresh, newly created Morphic project and usually gets things going again. You can also suspend all (non-vital) processes and restart only the core Morphic process to work out what went wrong.
REPLServer is available via the PackageUniverse in 3.10. Send all bug reports to me :-).
Gulik.
--
http://people.squeakfoundation.org/person/mikevdg
http://gulik.pbwiki.com/
--
"Querer es suscitar las paradojas"
Camus. El míto de Sísifo.
--
"Querer es suscitar las paradojas"
Camus. El míto de Sísifo.