VM Crash on submit button

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

VM Crash on submit button

Larry Kellogg
Hello,
  I have been playing with Seaside a bit and I have one view class
that crashes the VM, on the Save button. The breakpoint in my
save method is never called.

  All I have is this:

html submitButton
                                callback: [ self save ];
                                value: 'Save'.

and

save
  self halt.  

which I have done in other views, without a problem. I upgraded to Seaside 3.0.6
but it didn't make any difference, I still get the same crash. Could it have something to
with my use of html form: ? Whether or not I registered the view? I did, I think.

  I'm stumped. Any ideas?

  Regards,

  Larry
_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: VM Crash on submit button

Mariano Martinez Peck
Well....since you don't specify which Smalltalk are you using...it may have no sense. Anyway, if you are in pharo/squeak, two small suggestion:

1) Pickup latest VM from Eliot place: http://www.mirandabanda.org/files/Cog/VM/  and try it
2) Provide the crash dump. If it is a linux box, you can run the VM from command line and see the output. In Windows, it generates a dump file which is next to the image. In Mac it opens the crash report but instead you can do the Linux way.
3) Provide PharoDebug.log if there is a generated one (again, next to the image file).

Cheers


On Tue, Sep 27, 2011 at 12:09 PM, Lawrence Kellogg <[hidden email]> wrote:
Hello,
 I have been playing with Seaside a bit and I have one view class
that crashes the VM, on the Save button. The breakpoint in my
save method is never called.

 All I have is this:

html submitButton
                               callback: [ self save ];
                               value: 'Save'.

and

save
 self halt.

which I have done in other views, without a problem. I upgraded to Seaside 3.0.6
but it didn't make any difference, I still get the same crash. Could it have something to
with my use of html form: ? Whether or not I registered the view? I did, I think.

 I'm stumped. Any ideas?

 Regards,

 Larry
_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside



--
Mariano
http://marianopeck.wordpress.com


_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: VM Crash on submit button

Larry Kellogg
Hello,
  Sorry, I'm running Pharo Smalltalk. I'll attach the log in a few minutes. I'll try Eliot's VM, 
thanks for mentioning it.

  Regards,

  Larry

On Sep 27, 2011, at 6:14 AM, Mariano Martinez Peck wrote:

Well....since you don't specify which Smalltalk are you using...it may have no sense. Anyway, if you are in pharo/squeak, two small suggestion:

1) Pickup latest VM from Eliot place: http://www.mirandabanda.org/files/Cog/VM/  and try it
2) Provide the crash dump. If it is a linux box, you can run the VM from command line and see the output. In Windows, it generates a dump file which is next to the image. In Mac it opens the crash report but instead you can do the Linux way.
3) Provide PharoDebug.log if there is a generated one (again, next to the image file).

Cheers


On Tue, Sep 27, 2011 at 12:09 PM, Lawrence Kellogg <[hidden email]> wrote:
Hello,
 I have been playing with Seaside a bit and I have one view class
that crashes the VM, on the Save button. The breakpoint in my
save method is never called.

 All I have is this:

html submitButton
                               callback: [ self save ];
                               value: 'Save'.

and

save
 self halt.

which I have done in other views, without a problem. I upgraded to Seaside 3.0.6
but it didn't make any difference, I still get the same crash. Could it have something to
with my use of html form: ? Whether or not I registered the view? I did, I think.

 I'm stumped. Any ideas?

 Regards,

 Larry
_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside



--
Mariano
http://marianopeck.wordpress.com

_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside


_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: VM Crash on submit button

Larry Kellogg
In reply to this post by Mariano Martinez Peck
Hello,
  I have attached the crash log, which I copied from the report crash dialog on my Mac. 
Pharo Smalltalk, Seaside 3.0.6.



Thanks for the help!

Regards, 

Larry 

On Sep 27, 2011, at 6:14 AM, Mariano Martinez Peck wrote:

Well....since you don't specify which Smalltalk are you using...it may have no sense. Anyway, if you are in pharo/squeak, two small suggestion:

1) Pickup latest VM from Eliot place: http://www.mirandabanda.org/files/Cog/VM/  and try it
2) Provide the crash dump. If it is a linux box, you can run the VM from command line and see the output. In Windows, it generates a dump file which is next to the image. In Mac it opens the crash report but instead you can do the Linux way.
3) Provide PharoDebug.log if there is a generated one (again, next to the image file).

Cheers


On Tue, Sep 27, 2011 at 12:09 PM, Lawrence Kellogg <[hidden email]> wrote:
Hello,
 I have been playing with Seaside a bit and I have one view class
that crashes the VM, on the Save button. The breakpoint in my
save method is never called.

 All I have is this:

html submitButton
                               callback: [ self save ];
                               value: 'Save'.

and

save
 self halt.

which I have done in other views, without a problem. I upgraded to Seaside 3.0.6
but it didn't make any difference, I still get the same crash. Could it have something to
with my use of html form: ? Whether or not I registered the view? I did, I think.

 I'm stumped. Any ideas?

 Regards,

 Larry
_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside



--
Mariano
http://marianopeck.wordpress.com

_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside


_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside

PharoDebug.txt (33K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: VM Crash on submit button

Larry Kellogg
In reply to this post by Mariano Martinez Peck
So, no crash with Cog, so I'll work with that. 

Regards,

Larry


On Sep 27, 2011, at 6:14 AM, Mariano Martinez Peck wrote:

Well....since you don't specify which Smalltalk are you using...it may have no sense. Anyway, if you are in pharo/squeak, two small suggestion:

1) Pickup latest VM from Eliot place: http://www.mirandabanda.org/files/Cog/VM/  and try it
2) Provide the crash dump. If it is a linux box, you can run the VM from command line and see the output. In Windows, it generates a dump file which is next to the image. In Mac it opens the crash report but instead you can do the Linux way.
3) Provide PharoDebug.log if there is a generated one (again, next to the image file).

Cheers


On Tue, Sep 27, 2011 at 12:09 PM, Lawrence Kellogg <[hidden email]> wrote:
Hello,
 I have been playing with Seaside a bit and I have one view class
that crashes the VM, on the Save button. The breakpoint in my
save method is never called.

 All I have is this:

html submitButton
                               callback: [ self save ];
                               value: 'Save'.

and

save
 self halt.

which I have done in other views, without a problem. I upgraded to Seaside 3.0.6
but it didn't make any difference, I still get the same crash. Could it have something to
with my use of html form: ? Whether or not I registered the view? I did, I think.

 I'm stumped. Any ideas?

 Regards,

 Larry
_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside



--
Mariano
http://marianopeck.wordpress.com

_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside


_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Detecting mobile devices

Nevin Pratt
In reply to this post by Larry Kellogg
If you Google this topic, you will find sample code for this, but of course it
would need to be adapted to Seaside.

Probably not too difficult of a task, but before doing so, I thought I'd ask if
anybody had some Seaside code that would detect mobile devices.

Yes, this is browser sniffing, which historically hasn't been super reliable.  
But a lot of sites are now auto-detecting if, say, you are on an iPhone, or an
Android phone, and automatically giving the user a mobile version of the
website.  It's getting to be pretty common.

So, does anybody have any (reasonably reliable) Seaside code for detecting
mobile devices?

Nevin

_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

RE: Detecting mobile devices

Boris Popov, DeepCove Labs (SNN)
Nevin,

Have you considered feature-detection instead of browser-detection, i.e.
using http://www.modernizr.com ?

-Boris


-----Original Message-----
From: [hidden email]
[mailto:[hidden email]] On Behalf Of Nevin
Pratt
Sent: Tuesday, September 27, 2011 4:44 PM
To: Seaside - general discussion
Subject: [Seaside] Detecting mobile devices

If you Google this topic, you will find sample code for this, but of
course it would need to be adapted to Seaside.

Probably not too difficult of a task, but before doing so, I thought I'd
ask if anybody had some Seaside code that would detect mobile devices.

Yes, this is browser sniffing, which historically hasn't been super
reliable.  
But a lot of sites are now auto-detecting if, say, you are on an iPhone,
or an Android phone, and automatically giving the user a mobile version
of the website.  It's getting to be pretty common.

So, does anybody have any (reasonably reliable) Seaside code for
detecting mobile devices?

Nevin

_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: Detecting mobile devices

Nevin Pratt
I don't think I need anything complex.  Just simple "mobile phone" detection.

Also, I'm running Seaside 2.8, on Squeak 3.9.  Old stuff.  And I'm not
upgrading.  Don't perceive a need to.

Nevin


> Nevin,
>
> Have you considered feature-detection instead of browser-detection, i.e.
> using http://www.modernizr.com ?
>
> -Boris
>
>
> -----Original Message-----
> From: [hidden email]
> [mailto:[hidden email]] On Behalf Of Nevin
> Pratt
> Sent: Tuesday, September 27, 2011 4:44 PM
> To: Seaside - general discussion
> Subject: [Seaside] Detecting mobile devices
>
> If you Google this topic, you will find sample code for this, but of
> course it would need to be adapted to Seaside.
>
> Probably not too difficult of a task, but before doing so, I thought I'd
> ask if anybody had some Seaside code that would detect mobile devices.
>
> Yes, this is browser sniffing, which historically hasn't been super
> reliable.
> But a lot of sites are now auto-detecting if, say, you are on an iPhone,
> or an Android phone, and automatically giving the user a mobile version
> of the website.  It's getting to be pretty common.
>
> So, does anybody have any (reasonably reliable) Seaside code for
> detecting mobile devices?
>
> Nevin
>
> _______________________________________________
> seaside mailing list
> [hidden email]
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
> _______________________________________________
> seaside mailing list
> [hidden email]
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>

_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: Detecting mobile devices

Ramon Leon-5
On 09/27/2011 02:03 PM, Nevin Pratt wrote:
> Also, I'm running Seaside 2.8, on Squeak 3.9.  Old stuff.  And I'm not
> upgrading.  Don't perceive a need to.
>
> Nevin

You're not alone.

--
Ramon Leon
http://onsmalltalk.com
_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

RE: Detecting mobile devices

Boris Popov, DeepCove Labs (SNN)
FYI, Modernizr is a client-side feature detection library, nothing to do
with Seaside at all.

-Boris


-----Original Message-----
From: [hidden email]
[mailto:[hidden email]] On Behalf Of Ramon
Leon
Sent: Tuesday, September 27, 2011 5:13 PM
To: Seaside - general discussion
Subject: Re: [Seaside] Detecting mobile devices

On 09/27/2011 02:03 PM, Nevin Pratt wrote:
> Also, I'm running Seaside 2.8, on Squeak 3.9.  Old stuff.  And I'm not

> upgrading.  Don't perceive a need to.
>
> Nevin

You're not alone.

--
Ramon Leon
http://onsmalltalk.com
_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: Detecting mobile devices

Bob Nemec
In reply to this post by Nevin Pratt
I used the following code for a demo (VW 7.7.1 + Seaside 3.0). 
The redirection was from a root dispatcher application to separate Seaside applications in the same image.

| string | 
string := self requestContext request userAgent.
(string includesSubString: 'iPad') ifTrue: [^self requestContext redirectTo: self tabletURL].
(string includesSubString: 'iPhone') ifTrue: [^self requestContext redirectTo: self phoneURL].
(string includesSubString: 'webOS') ifTrue: [^self requestContext redirectTo: self tabletURL].
^self requestContext redirectTo: self portalURL

Bob N.


From: Nevin Pratt <[hidden email]>
To: Seaside - general discussion <[hidden email]>
Sent: Tuesday, September 27, 2011 4:44:25 PM
Subject: [Seaside] Detecting mobile devices

If you Google this topic, you will find sample code for this, but of course it would need to be adapted to Seaside.

Probably not too difficult of a task, but before doing so, I thought I'd ask if anybody had some Seaside code that would detect mobile devices.

Yes, this is browser sniffing, which historically hasn't been super reliable.  But a lot of sites are now auto-detecting if, say, you are on an iPhone, or an Android phone, and automatically giving the user a mobile version of the website.  It's getting to be pretty common.

So, does anybody have any (reasonably reliable) Seaside code for detecting mobile devices?

Nevin

_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside



_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Bob Nemec
Reply | Threaded
Open this post in threaded view
|

Re: Detecting mobile devices

Philippe Marschall
2011/9/29  <[hidden email]>:

> I used the following code for a demo (VW 7.7.1 + Seaside 3.0).
> The redirection was from a root dispatcher application to separate Seaside
> applications in the same image.
> | string |
> string := self requestContext request userAgent.
> (string includesSubString: 'iPad') ifTrue: [^self requestContext redirectTo:
> self tabletURL].
> (string includesSubString: 'iPhone') ifTrue: [^self requestContext
> redirectTo: self phoneURL].
> (string includesSubString: 'webOS') ifTrue: [^self requestContext
> redirectTo: self tabletURL].
> ^self requestContext redirectTo: self portalURL

No, please not like this.

Cheers
Philippe
_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside