What happens with Warning when running in headless image (2.0)?

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

What happens with Warning when running in headless image (2.0)?

Dale Henrichs
I'm running a headless pharo2.0 from a script and the vm disappears without a trace (no pharodebug.log info etc.) ... when I run the script in a gui, I see that a warning dialog box is popping up, so perhaps this is the source of the issue? ... or perhaps it's something else?

Dale

Reply | Threaded
Open this post in threaded view
|

Re: What happens with Warning when running in headless image (2.0)?

Camillo Bruni-3
if run from the command line you should get a decent error message...

what kind of error do you get?

BTW: just show me the code and I'll fix it :P

On 2012-08-31, at 07:24, Dale Henrichs <[hidden email]> wrote:

> I'm running a headless pharo2.0 from a script and the vm disappears without a trace (no pharodebug.log info etc.) ... when I run the script in a gui, I see that a warning dialog box is popping up, so perhaps this is the source of the issue? ... or perhaps it's something else?
>
> Dale
>


Reply | Threaded
Open this post in threaded view
|

Re: What happens with Warning when running in headless image (2.0)?

Gastón Dall' Oglio
Hello.

I install Seaside in a Pharo 1.4 summer image. Then I run it in headless from console and I go to the /status app, and a "MessageNotUnderstood: NonInteractiveUIManager>>openDebuggerOn:context:label:contents:fullView:" exception occurs and the vm close.

Then I run this image in gui and an "Deprecation: The method SmalltalkImage>>isRunningCog has been deprecated." dialog box are raised. I evaluate Deprecation raiseWarning: false but no take effect, the dialog is raised anyway.

Maybe another is correct way to disable raise deprecation?

2012/8/31 Camillo Bruni <[hidden email]>
if run from the command line you should get a decent error message...

what kind of error do you get?

BTW: just show me the code and I'll fix it :P

On 2012-08-31, at 07:24, Dale Henrichs <[hidden email]> wrote:

> I'm running a headless pharo2.0 from a script and the vm disappears without a trace (no pharodebug.log info etc.) ... when I run the script in a gui, I see that a warning dialog box is popping up, so perhaps this is the source of the issue? ... or perhaps it's something else?
>
> Dale
>



Reply | Threaded
Open this post in threaded view
|

Re: What happens with Warning when running in headless image (2.0)?

Igor Stasenko
in headless mode all warnings are suppressed (so they don't interfere).
i'm not sure if it prints something on stdout..
it could be that it simply ignored and continues running the stuff.

On 31 August 2012 14:11, Gastón Dall' Oglio <[hidden email]> wrote:

> Hello.
>
> I install Seaside in a Pharo 1.4 summer image. Then I run it in headless
> from console and I go to the /status app, and a "MessageNotUnderstood:
> NonInteractiveUIManager>>openDebuggerOn:context:label:contents:fullView:"
> exception occurs and the vm close.
>
> Then I run this image in gui and an "Deprecation: The method
> SmalltalkImage>>isRunningCog has been deprecated." dialog box are raised. I
> evaluate Deprecation raiseWarning: false but no take effect, the dialog is
> raised anyway.
>
> Maybe another is correct way to disable raise deprecation?
>
> 2012/8/31 Camillo Bruni <[hidden email]>
>>
>> if run from the command line you should get a decent error message...
>>
>> what kind of error do you get?
>>
>> BTW: just show me the code and I'll fix it :P
>>
>> On 2012-08-31, at 07:24, Dale Henrichs <[hidden email]> wrote:
>>
>> > I'm running a headless pharo2.0 from a script and the vm disappears
>> > without a trace (no pharodebug.log info etc.) ... when I run the script in a
>> > gui, I see that a warning dialog box is popping up, so perhaps this is the
>> > source of the issue? ... or perhaps it's something else?
>> >
>> > Dale
>> >
>>
>>
>



--
Best regards,
Igor Stasenko.

Reply | Threaded
Open this post in threaded view
|

Re: What happens with Warning when running in headless image (2.0)?

Gastón Dall' Oglio
Hi Igor.

Here, in a linux box, I guess that this warning occurs and raise the NonInteractiveUIManager exception, and is showed in stdout when I run in headless mode.


2012/8/31 Igor Stasenko <[hidden email]>
in headless mode all warnings are suppressed (so they don't interfere).
i'm not sure if it prints something on stdout..
it could be that it simply ignored and continues running the stuff.

On 31 August 2012 14:11, Gastón Dall' Oglio <[hidden email]> wrote:
> Hello.
>
> I install Seaside in a Pharo 1.4 summer image. Then I run it in headless
> from console and I go to the /status app, and a "MessageNotUnderstood:
> NonInteractiveUIManager>>openDebuggerOn:context:label:contents:fullView:"
> exception occurs and the vm close.
>
> Then I run this image in gui and an "Deprecation: The method
> SmalltalkImage>>isRunningCog has been deprecated." dialog box are raised. I
> evaluate Deprecation raiseWarning: false but no take effect, the dialog is
> raised anyway.
>
> Maybe another is correct way to disable raise deprecation?
>
> 2012/8/31 Camillo Bruni <[hidden email]>
>>
>> if run from the command line you should get a decent error message...
>>
>> what kind of error do you get?
>>
>> BTW: just show me the code and I'll fix it :P
>>
>> On 2012-08-31, at 07:24, Dale Henrichs <[hidden email]> wrote:
>>
>> > I'm running a headless pharo2.0 from a script and the vm disappears
>> > without a trace (no pharodebug.log info etc.) ... when I run the script in a
>> > gui, I see that a warning dialog box is popping up, so perhaps this is the
>> > source of the issue? ... or perhaps it's something else?
>> >
>> > Dale
>> >
>>
>>
>



--
Best regards,
Igor Stasenko.


Reply | Threaded
Open this post in threaded view
|

Re: What happens with Warning when running in headless image (2.0)?

Gastón Dall' Oglio
Somebody send recently similar mail to pharo-user list "[Pharo-users] HowTo not show a Debugger when calling deprecated methods in 1.4?"


2012/8/31 Gastón Dall' Oglio <[hidden email]>
Hi Igor.

Here, in a linux box, I guess that this warning occurs and raise the NonInteractiveUIManager exception, and is showed in stdout when I run in headless mode.


2012/8/31 Igor Stasenko <[hidden email]>
in headless mode all warnings are suppressed (so they don't interfere).
i'm not sure if it prints something on stdout..
it could be that it simply ignored and continues running the stuff.

On 31 August 2012 14:11, Gastón Dall' Oglio <[hidden email]> wrote:
> Hello.
>
> I install Seaside in a Pharo 1.4 summer image. Then I run it in headless
> from console and I go to the /status app, and a "MessageNotUnderstood:
> NonInteractiveUIManager>>openDebuggerOn:context:label:contents:fullView:"
> exception occurs and the vm close.
>
> Then I run this image in gui and an "Deprecation: The method
> SmalltalkImage>>isRunningCog has been deprecated." dialog box are raised. I
> evaluate Deprecation raiseWarning: false but no take effect, the dialog is
> raised anyway.
>
> Maybe another is correct way to disable raise deprecation?
>
> 2012/8/31 Camillo Bruni <[hidden email]>
>>
>> if run from the command line you should get a decent error message...
>>
>> what kind of error do you get?
>>
>> BTW: just show me the code and I'll fix it :P
>>
>> On 2012-08-31, at 07:24, Dale Henrichs <[hidden email]> wrote:
>>
>> > I'm running a headless pharo2.0 from a script and the vm disappears
>> > without a trace (no pharodebug.log info etc.) ... when I run the script in a
>> > gui, I see that a warning dialog box is popping up, so perhaps this is the
>> > source of the issue? ... or perhaps it's something else?
>> >
>> > Dale
>> >
>>
>>
>



--
Best regards,
Igor Stasenko.



Reply | Threaded
Open this post in threaded view
|

Re: What happens with Warning when running in headless image (2.0)?

Igor Stasenko
In reply to this post by Gastón Dall' Oglio
On 31 August 2012 15:24, Gastón Dall' Oglio <[hidden email]> wrote:
> Hi Igor.
>
> Here, in a linux box, I guess that this warning occurs and raise the
> NonInteractiveUIManager exception, and is showed in stdout when I run in
> headless mode.
>
you'd better wait for Camillo's reply then.
Because originally, i wrote that code , so it was ignoring warnings.
Then Camillo is added some steroids to it, so an image(s) became far
more friendly to consoles,
including headless mode.

>
> 2012/8/31 Igor Stasenko <[hidden email]>
>>
>> in headless mode all warnings are suppressed (so they don't interfere).
>> i'm not sure if it prints something on stdout..
>> it could be that it simply ignored and continues running the stuff.
>>
>> On 31 August 2012 14:11, Gastón Dall' Oglio <[hidden email]>
>> wrote:
>> > Hello.
>> >
>> > I install Seaside in a Pharo 1.4 summer image. Then I run it in headless
>> > from console and I go to the /status app, and a "MessageNotUnderstood:
>> >
>> > NonInteractiveUIManager>>openDebuggerOn:context:label:contents:fullView:"
>> > exception occurs and the vm close.
>> >
>> > Then I run this image in gui and an "Deprecation: The method
>> > SmalltalkImage>>isRunningCog has been deprecated." dialog box are
>> > raised. I
>> > evaluate Deprecation raiseWarning: false but no take effect, the dialog
>> > is
>> > raised anyway.
>> >
>> > Maybe another is correct way to disable raise deprecation?
>> >
>> > 2012/8/31 Camillo Bruni <[hidden email]>
>> >>
>> >> if run from the command line you should get a decent error message...
>> >>
>> >> what kind of error do you get?
>> >>
>> >> BTW: just show me the code and I'll fix it :P
>> >>
>> >> On 2012-08-31, at 07:24, Dale Henrichs <[hidden email]> wrote:
>> >>
>> >> > I'm running a headless pharo2.0 from a script and the vm disappears
>> >> > without a trace (no pharodebug.log info etc.) ... when I run the
>> >> > script in a
>> >> > gui, I see that a warning dialog box is popping up, so perhaps this
>> >> > is the
>> >> > source of the issue? ... or perhaps it's something else?
>> >> >
>> >> > Dale
>> >> >
>> >>
>> >>
>> >
>>
>>
>>
>> --
>> Best regards,
>> Igor Stasenko.
>>
>



--
Best regards,
Igor Stasenko.

Reply | Threaded
Open this post in threaded view
|

Re: What happens with Warning when running in headless image (2.0)?

Gastón Dall' Oglio
Ok thanks for reply anyway. Really I don't have hurry (I fixed that with a horrible code I wrote), I just want report that issue.

2012/8/31 Igor Stasenko <[hidden email]>
On 31 August 2012 15:24, Gastón Dall' Oglio <[hidden email]> wrote:
> Hi Igor.
>
> Here, in a linux box, I guess that this warning occurs and raise the
> NonInteractiveUIManager exception, and is showed in stdout when I run in
> headless mode.
>
you'd better wait for Camillo's reply then.
Because originally, i wrote that code , so it was ignoring warnings.
Then Camillo is added some steroids to it, so an image(s) became far
more friendly to consoles,
including headless mode.

>
> 2012/8/31 Igor Stasenko <[hidden email]>
>>
>> in headless mode all warnings are suppressed (so they don't interfere).
>> i'm not sure if it prints something on stdout..
>> it could be that it simply ignored and continues running the stuff.
>>
>> On 31 August 2012 14:11, Gastón Dall' Oglio <[hidden email]>
>> wrote:
>> > Hello.
>> >
>> > I install Seaside in a Pharo 1.4 summer image. Then I run it in headless
>> > from console and I go to the /status app, and a "MessageNotUnderstood:
>> >
>> > NonInteractiveUIManager>>openDebuggerOn:context:label:contents:fullView:"
>> > exception occurs and the vm close.
>> >
>> > Then I run this image in gui and an "Deprecation: The method
>> > SmalltalkImage>>isRunningCog has been deprecated." dialog box are
>> > raised. I
>> > evaluate Deprecation raiseWarning: false but no take effect, the dialog
>> > is
>> > raised anyway.
>> >
>> > Maybe another is correct way to disable raise deprecation?
>> >
>> > 2012/8/31 Camillo Bruni <[hidden email]>
>> >>
>> >> if run from the command line you should get a decent error message...
>> >>
>> >> what kind of error do you get?
>> >>
>> >> BTW: just show me the code and I'll fix it :P
>> >>
>> >> On 2012-08-31, at 07:24, Dale Henrichs <[hidden email]> wrote:
>> >>
>> >> > I'm running a headless pharo2.0 from a script and the vm disappears
>> >> > without a trace (no pharodebug.log info etc.) ... when I run the
>> >> > script in a
>> >> > gui, I see that a warning dialog box is popping up, so perhaps this
>> >> > is the
>> >> > source of the issue? ... or perhaps it's something else?
>> >> >
>> >> > Dale
>> >> >
>> >>
>> >>
>> >
>>
>>
>>
>> --
>> Best regards,
>> Igor Stasenko.
>>
>



--
Best regards,
Igor Stasenko.


Reply | Threaded
Open this post in threaded view
|

Re: What happens with Warning when running in headless image (2.0)?

Gastón Dall' Oglio
I created two bug entries:


2012/8/31 Gastón Dall' Oglio <[hidden email]>
Ok thanks for reply anyway. Really I don't have hurry (I fixed that with a horrible code I wrote), I just want report that issue.


2012/8/31 Igor Stasenko <[hidden email]>
On 31 August 2012 15:24, Gastón Dall' Oglio <[hidden email]> wrote:
> Hi Igor.
>
> Here, in a linux box, I guess that this warning occurs and raise the
> NonInteractiveUIManager exception, and is showed in stdout when I run in
> headless mode.
>
you'd better wait for Camillo's reply then.
Because originally, i wrote that code , so it was ignoring warnings.
Then Camillo is added some steroids to it, so an image(s) became far
more friendly to consoles,
including headless mode.

>
> 2012/8/31 Igor Stasenko <[hidden email]>
>>
>> in headless mode all warnings are suppressed (so they don't interfere).
>> i'm not sure if it prints something on stdout..
>> it could be that it simply ignored and continues running the stuff.
>>
>> On 31 August 2012 14:11, Gastón Dall' Oglio <[hidden email]>
>> wrote:
>> > Hello.
>> >
>> > I install Seaside in a Pharo 1.4 summer image. Then I run it in headless
>> > from console and I go to the /status app, and a "MessageNotUnderstood:
>> >
>> > NonInteractiveUIManager>>openDebuggerOn:context:label:contents:fullView:"
>> > exception occurs and the vm close.
>> >
>> > Then I run this image in gui and an "Deprecation: The method
>> > SmalltalkImage>>isRunningCog has been deprecated." dialog box are
>> > raised. I
>> > evaluate Deprecation raiseWarning: false but no take effect, the dialog
>> > is
>> > raised anyway.
>> >
>> > Maybe another is correct way to disable raise deprecation?
>> >
>> > 2012/8/31 Camillo Bruni <[hidden email]>
>> >>
>> >> if run from the command line you should get a decent error message...
>> >>
>> >> what kind of error do you get?
>> >>
>> >> BTW: just show me the code and I'll fix it :P
>> >>
>> >> On 2012-08-31, at 07:24, Dale Henrichs <[hidden email]> wrote:
>> >>
>> >> > I'm running a headless pharo2.0 from a script and the vm disappears
>> >> > without a trace (no pharodebug.log info etc.) ... when I run the
>> >> > script in a
>> >> > gui, I see that a warning dialog box is popping up, so perhaps this
>> >> > is the
>> >> > source of the issue? ... or perhaps it's something else?
>> >> >
>> >> > Dale
>> >> >
>> >>
>> >>
>> >
>>
>>
>>
>> --
>> Best regards,
>> Igor Stasenko.
>>
>



--
Best regards,
Igor Stasenko.



Reply | Threaded
Open this post in threaded view
|

Re: What happens with Warning when running in headless image (2.0)?

Igor Stasenko
On 31 August 2012 23:22, Gastón Dall' Oglio <[hidden email]> wrote:
> I created two bug entries:
> http://code.google.com/p/pharo/issues/detail?id=6624
> http://code.google.com/p/pharo/issues/detail?id=6625
>
btw, can you try one thing: try to recompile the Deprecation class.

>
> 2012/8/31 Gastón Dall' Oglio <[hidden email]>
>>
>> Ok thanks for reply anyway. Really I don't have hurry (I fixed that with a
>> horrible code I wrote), I just want report that issue.
>>
>>
>> 2012/8/31 Igor Stasenko <[hidden email]>
>>>
>>> On 31 August 2012 15:24, Gastón Dall' Oglio <[hidden email]>
>>> wrote:
>>> > Hi Igor.
>>> >
>>> > Here, in a linux box, I guess that this warning occurs and raise the
>>> > NonInteractiveUIManager exception, and is showed in stdout when I run
>>> > in
>>> > headless mode.
>>> >
>>> you'd better wait for Camillo's reply then.
>>> Because originally, i wrote that code , so it was ignoring warnings.
>>> Then Camillo is added some steroids to it, so an image(s) became far
>>> more friendly to consoles,
>>> including headless mode.
>>>
>>> >
>>> > 2012/8/31 Igor Stasenko <[hidden email]>
>>> >>
>>> >> in headless mode all warnings are suppressed (so they don't
>>> >> interfere).
>>> >> i'm not sure if it prints something on stdout..
>>> >> it could be that it simply ignored and continues running the stuff.
>>> >>
>>> >> On 31 August 2012 14:11, Gastón Dall' Oglio
>>> >> <[hidden email]>
>>> >> wrote:
>>> >> > Hello.
>>> >> >
>>> >> > I install Seaside in a Pharo 1.4 summer image. Then I run it in
>>> >> > headless
>>> >> > from console and I go to the /status app, and a
>>> >> > "MessageNotUnderstood:
>>> >> >
>>> >> >
>>> >> > NonInteractiveUIManager>>openDebuggerOn:context:label:contents:fullView:"
>>> >> > exception occurs and the vm close.
>>> >> >
>>> >> > Then I run this image in gui and an "Deprecation: The method
>>> >> > SmalltalkImage>>isRunningCog has been deprecated." dialog box are
>>> >> > raised. I
>>> >> > evaluate Deprecation raiseWarning: false but no take effect, the
>>> >> > dialog
>>> >> > is
>>> >> > raised anyway.
>>> >> >
>>> >> > Maybe another is correct way to disable raise deprecation?
>>> >> >
>>> >> > 2012/8/31 Camillo Bruni <[hidden email]>
>>> >> >>
>>> >> >> if run from the command line you should get a decent error
>>> >> >> message...
>>> >> >>
>>> >> >> what kind of error do you get?
>>> >> >>
>>> >> >> BTW: just show me the code and I'll fix it :P
>>> >> >>
>>> >> >> On 2012-08-31, at 07:24, Dale Henrichs <[hidden email]> wrote:
>>> >> >>
>>> >> >> > I'm running a headless pharo2.0 from a script and the vm
>>> >> >> > disappears
>>> >> >> > without a trace (no pharodebug.log info etc.) ... when I run the
>>> >> >> > script in a
>>> >> >> > gui, I see that a warning dialog box is popping up, so perhaps
>>> >> >> > this
>>> >> >> > is the
>>> >> >> > source of the issue? ... or perhaps it's something else?
>>> >> >> >
>>> >> >> > Dale
>>> >> >> >
>>> >> >>
>>> >> >>
>>> >> >
>>> >>
>>> >>
>>> >>
>>> >> --
>>> >> Best regards,
>>> >> Igor Stasenko.
>>> >>
>>> >
>>>
>>>
>>>
>>> --
>>> Best regards,
>>> Igor Stasenko.
>>>
>>
>



--
Best regards,
Igor Stasenko.

Reply | Threaded
Open this post in threaded view
|

Re: What happens with Warning when running in headless image (2.0)?

Gastón Dall' Oglio
I evaluate Deprecation compileAll and later Compiler recompileAll and no changes.

2012/8/31 Igor Stasenko <[hidden email]>
On 31 August 2012 23:22, Gastón Dall' Oglio <[hidden email]> wrote:
> I created two bug entries:
> http://code.google.com/p/pharo/issues/detail?id=6624
> http://code.google.com/p/pharo/issues/detail?id=6625
>
btw, can you try one thing: try to recompile the Deprecation class.

>
> 2012/8/31 Gastón Dall' Oglio <[hidden email]>
>>
>> Ok thanks for reply anyway. Really I don't have hurry (I fixed that with a
>> horrible code I wrote), I just want report that issue.
>>
>>
>> 2012/8/31 Igor Stasenko <[hidden email]>
>>>
>>> On 31 August 2012 15:24, Gastón Dall' Oglio <[hidden email]>
>>> wrote:
>>> > Hi Igor.
>>> >
>>> > Here, in a linux box, I guess that this warning occurs and raise the
>>> > NonInteractiveUIManager exception, and is showed in stdout when I run
>>> > in
>>> > headless mode.
>>> >
>>> you'd better wait for Camillo's reply then.
>>> Because originally, i wrote that code , so it was ignoring warnings.
>>> Then Camillo is added some steroids to it, so an image(s) became far
>>> more friendly to consoles,
>>> including headless mode.
>>>
>>> >
>>> > 2012/8/31 Igor Stasenko <[hidden email]>
>>> >>
>>> >> in headless mode all warnings are suppressed (so they don't
>>> >> interfere).
>>> >> i'm not sure if it prints something on stdout..
>>> >> it could be that it simply ignored and continues running the stuff.
>>> >>
>>> >> On 31 August 2012 14:11, Gastón Dall' Oglio
>>> >> <[hidden email]>
>>> >> wrote:
>>> >> > Hello.
>>> >> >
>>> >> > I install Seaside in a Pharo 1.4 summer image. Then I run it in
>>> >> > headless
>>> >> > from console and I go to the /status app, and a
>>> >> > "MessageNotUnderstood:
>>> >> >
>>> >> >
>>> >> > NonInteractiveUIManager>>openDebuggerOn:context:label:contents:fullView:"
>>> >> > exception occurs and the vm close.
>>> >> >
>>> >> > Then I run this image in gui and an "Deprecation: The method
>>> >> > SmalltalkImage>>isRunningCog has been deprecated." dialog box are
>>> >> > raised. I
>>> >> > evaluate Deprecation raiseWarning: false but no take effect, the
>>> >> > dialog
>>> >> > is
>>> >> > raised anyway.
>>> >> >
>>> >> > Maybe another is correct way to disable raise deprecation?
>>> >> >
>>> >> > 2012/8/31 Camillo Bruni <[hidden email]>
>>> >> >>
>>> >> >> if run from the command line you should get a decent error
>>> >> >> message...
>>> >> >>
>>> >> >> what kind of error do you get?
>>> >> >>
>>> >> >> BTW: just show me the code and I'll fix it :P
>>> >> >>
>>> >> >> On 2012-08-31, at 07:24, Dale Henrichs <[hidden email]> wrote:
>>> >> >>
>>> >> >> > I'm running a headless pharo2.0 from a script and the vm
>>> >> >> > disappears
>>> >> >> > without a trace (no pharodebug.log info etc.) ... when I run the
>>> >> >> > script in a
>>> >> >> > gui, I see that a warning dialog box is popping up, so perhaps
>>> >> >> > this
>>> >> >> > is the
>>> >> >> > source of the issue? ... or perhaps it's something else?
>>> >> >> >
>>> >> >> > Dale
>>> >> >> >
>>> >> >>
>>> >> >>
>>> >> >
>>> >>
>>> >>
>>> >>
>>> >> --
>>> >> Best regards,
>>> >> Igor Stasenko.
>>> >>
>>> >
>>>
>>>
>>>
>>> --
>>> Best regards,
>>> Igor Stasenko.
>>>
>>
>



--
Best regards,
Igor Stasenko.