Restarting a saved image with the browser loaded

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

Restarting a saved image with the browser loaded

Eli Green-3
I saved my image using Visual GST then tried to reload it from the command line like this:

gst-browser -I eli.im

The prompt displays nothing - I get an icon in the dock telling me that an application has launched but no other reaction. Then if I hit Control-C, it displays this the stack trace shown at the bottom of this message. Should this work? Am I reloading the image incorrectly?

(gst:16870): Gtk-CRITICAL **: gtk_text_view_get_buffer: assertion `GTK_IS_TEXT_VIEW (text_view)' failed
(ip 14)CFunctionDescriptor(CCallable)>>#callInto:
(ip 8)GtkTextView>>#getBuffer
(ip 4)GtkTranscriptWidget>>#update:
(ip 8)[] in TextCollector>>#primNextPutAll:
(ip 10)<unwind> BlockClosure>>#on:do:
(ip 10)TextCollector>>#primNextPutAll:
(ip 6)[] in TextCollector>>#showCr:
(ip 12)[] in RecursionLock>>#critical:
(ip 4)<unwind> BlockClosure>>#ensure:
(ip 10)[] in RecursionLock>>#critical:
(ip 16)[] in Semaphore>>#critical:
(ip 4)<unwind> BlockClosure>>#ensure:
(ip 16)Semaphore>>#critical:
(ip 12)RecursionLock>>#critical:
(ip 6)TextCollector>>#showCr:
(ip 8)String(Object)>>#printNl
(ip 2)GtkDebugger class>>#open:
(ip 50)UnhandledException>>#defaultAction
(ip 4)[] in Exception class>>#coreException
(ip 14)UnhandledException(Signal)>>#activateHandler:
(ip 26)UserInterrupt(Signal)>>#resignalAs:
(ip 40)UserInterrupt(Signal)>>#resignalAsUnhandled:
(ip 6)UserInterrupt(Exception)>>#defaultAction
(ip 4)[] in Exception class>>#coreException
(ip 14)UserInterrupt(Signal)>>#activateHandler:
(ip 24)UserInterrupt(Exception)>>#signal
(ip 4)UserInterrupt class(Exception class)>>#signal
(ip 6)CFunctionDescriptor(Object)>>#userInterrupt
(ip 14)CFunctionDescriptor(CCallable)>>#asyncCall
(ip 4)Gtk class>>#main:
(ip 12)Gtk class>>#main
(ip 10)UndefinedObject>>#executeStatements
(ip 0)<bottom>
'CFunctionDescriptor(gstGtkMain @ 16r17A4FE) error: interrupted!!!'
(gst:16870): Gtk-CRITICAL **: gtk_text_view_get_buffer: assertion `GTK_IS_TEXT_VIEW (text_view)' failed
(ip 8)GtkTextView>>#getBuffer
(ip 4)GtkTranscriptWidget>>#update:
(ip 8)[] in TextCollector>>#primNextPutAll:
(ip 10)<unwind> BlockClosure>>#on:do:
(ip 10)TextCollector>>#primNextPutAll:
(ip 16)[] in TextCollector>>#showCr:
(ip 12)[] in RecursionLock>>#critical:
(ip 4)<unwind> BlockClosure>>#ensure:
(ip 10)[] in RecursionLock>>#critical:
(ip 16)[] in Semaphore>>#critical:
(ip 4)<unwind> BlockClosure>>#ensure:
(ip 16)Semaphore>>#critical:
(ip 12)RecursionLock>>#critical:
(ip 6)TextCollector>>#showCr:
(ip 8)String(Object)>>#printNl
(ip 2)GtkDebugger class>>#open:
(ip 50)UnhandledException>>#defaultAction
(ip 4)[] in Exception class>>#coreException
(ip 14)UnhandledException(Signal)>>#activateHandler:
(ip 26)UserInterrupt(Signal)>>#resignalAs:
(ip 40)UserInterrupt(Signal)>>#resignalAsUnhandled:
(ip 6)UserInterrupt(Exception)>>#defaultAction
(ip 4)[] in Exception class>>#coreException
(ip 14)UserInterrupt(Signal)>>#activateHandler:
(ip 24)UserInterrupt(Exception)>>#signal
(ip 4)UserInterrupt class(Exception class)>>#signal
(ip 6)CFunctionDescriptor(Object)>>#userInterrupt
(ip 14)CFunctionDescriptor(CCallable)>>#asyncCall
(ip 4)Gtk class>>#main:
(ip 12)Gtk class>>#main
(ip 10)UndefinedObject>>#executeStatements
(ip 0)<bottom>



_______________________________________________
help-smalltalk mailing list
[hidden email]
http://lists.gnu.org/mailman/listinfo/help-smalltalk
Reply | Threaded
Open this post in threaded view
|

Re: Restarting a saved image with the browser loaded

Paolo Bonzini-2
On 10/13/2009 06:01 PM, Eli Green wrote:
> I saved my image using Visual GST then tried to reload it from the command line like this:
>
> gst-browser -I eli.im

The attached patch seems to do it, but I'd like confirmation from Gwen
that (1) it is correct; (2) it does not leak memory.

Paolo

_______________________________________________
help-smalltalk mailing list
[hidden email]
http://lists.gnu.org/mailman/listinfo/help-smalltalk

visualgst-restart.patch (2K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Restarting a saved image with the browser loaded

Eli Green-3
In reply to this post by Eli Green-3

On Tuesday, October 13, 2009, at 06:34PM, "Paolo Bonzini" <[hidden email]> wrote:

>On 10/13/2009 06:01 PM, Eli Green wrote:
>> I saved my image using Visual GST then tried to reload it from the command line like this:
>>
>> gst-browser -I eli.im
>
>The attached patch seems to do it, but I'd like confirmation from Gwen
>that (1) it is correct; (2) it does not leak memory.
>
>Paolo
>

With your patch and this init.st, I have managed to get the browser to reload with the image:

(Smalltalk includesKey: #VisualGST) ifTrue: [
    VisualGST.VisualGST open.
    GTK.Gtk main.
]

Now I'm nearly at the point where I can start bothering the poor VisualGST developers instead of you! :)

Eli


_______________________________________________
help-smalltalk mailing list
[hidden email]
http://lists.gnu.org/mailman/listinfo/help-smalltalk
Reply | Threaded
Open this post in threaded view
|

Re: Restarting a saved image with the browser loaded

Paolo Bonzini-2
> With your patch and this init.st, I have managed to get the browser to reload with the image:
>
> (Smalltalk includesKey: #VisualGST) ifTrue: [
>      VisualGST.VisualGST open.
>      GTK.Gtk main.
> ]

Good.  So the second time you're running "gst -I eli.im" or still
"gst-browser -I eli.im"?

Your init.st is doing the same thing that using gst-browser would do.

Paolo


_______________________________________________
help-smalltalk mailing list
[hidden email]
http://lists.gnu.org/mailman/listinfo/help-smalltalk
Reply | Threaded
Open this post in threaded view
|

Re: Restarting a saved image with the browser loaded

Eli Green-3
 
On Wednesday, October 14, 2009, at 11:32AM, "Paolo Bonzini" <[hidden email]> wrote:
>
>Good.  So the second time you're running "gst -I eli.im" or still
>"gst-browser -I eli.im"?
>
>Your init.st is doing the same thing that using gst-browser would do.
>
>Paolo
>

Oops. You're right - if I remove the init.st and use gst-browser, it works then as well. Not sure how I ended up thinking that init.st was necessary.


_______________________________________________
help-smalltalk mailing list
[hidden email]
http://lists.gnu.org/mailman/listinfo/help-smalltalk
Reply | Threaded
Open this post in threaded view
|

Re: Restarting a saved image with the browser loaded

Paolo Bonzini-2
>> Good.  So the second time you're running "gst -I eli.im" or still
>> "gst-browser -I eli.im"?
>>
>> Your init.st is doing the same thing that using gst-browser would do.
>>
>> Paolo
>>
>
> Oops. You're right - if I remove the init.st and use gst-browser, it works then as well.
> Not sure how I ended up thinking that init.st was necessary.

Probably because "gst -I eli.im" does not bring up a REPL.  It starts
the Gtk message loop.  If you saw the REPL, probably you would have
tried gst-browser the second time as well.

Paolo


_______________________________________________
help-smalltalk mailing list
[hidden email]
http://lists.gnu.org/mailman/listinfo/help-smalltalk