Exceptions in Mondrian

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

Exceptions in Mondrian

Mircea Filip Lungu
Hi guys,

It seems to me that exceptions are masked in Mondrian.
Is there a setting somewhere for turning this off?

For development, the debugger is better than the transcript ;)

Cheers,
M.
_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Reply | Threaded
Open this post in threaded view
|

Re: Exceptions in Mondrian

Simon Denier-3

On 13 août 2010, at 17:33, Mircea Lungu wrote:

> Hi guys,
>
> It seems to me that exceptions are masked in Mondrian.
> Is there a setting somewhere for turning this off?

More or less, but use at your own risk, because exception in Mondrian have been known to freeze the image or raise a huge amount of pop-up (due to being in the UI thread)

I think there are three places where to start when dealing with exceptions in Mondrian:

MOGraphElement>>handleException:   (calls haltOnce)
MOBoundedShape>>display:on:  (this is the one which gives a red shape in case of error)
MOCanvas>>raiseError:

Maybe Alex can provide better guidance at which does what.

--
 Simon




_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Reply | Threaded
Open this post in threaded view
|

Re: Exceptions in Mondrian

Alexandre Bergel
In reply to this post by Mircea Filip Lungu
Hi Mircea!

I recently changed the way error are handled in Mondrian. Have you tried with the last version?

Cheers,
Alexandre


On 13 Aug 2010, at 11:33, Mircea Lungu wrote:

> Hi guys,
>
> It seems to me that exceptions are masked in Mondrian.
> Is there a setting somewhere for turning this off?
>
> For development, the debugger is better than the transcript ;)
>
> Cheers,
> M.
> _______________________________________________
> Moose-dev mailing list
> [hidden email]
> https://www.iam.unibe.ch/mailman/listinfo/moose-dev

--
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel  http://www.bergel.eu
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.






_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Reply | Threaded
Open this post in threaded view
|

Re: Exceptions in Mondrian

Alexandre Bergel
In reply to this post by Simon Denier-3
> More or less, but use at your own risk, because exception in Mondrian have been known to freeze the image or raise a huge amount of pop-up (due to being in the UI thread)
>
> I think there are three places where to start when dealing with exceptions in Mondrian:
>
> MOGraphElement>>handleException:   (calls haltOnce)

It has no sender. I recently remove all sender of it since the visualization is first rendered in a non displayed form. A debugger will popup on error

> MOBoundedShape>>display:on:  (this is the one which gives a red shape in case of error)

This is not necessary anymore. The last version of Mondrian removed this particular case.

> MOCanvas>>raiseError:

This is also cleaned.

Mircea, what do you want to achieve?

Cheers,
Alexandre
--
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel  http://www.bergel.eu
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.






_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Reply | Threaded
Open this post in threaded view
|

Re: Exceptions in Mondrian

Mircea Filip Lungu-2
Hi Simon, Hi Alex!

Thanks for the prompt answers.

Alex, I was generating a graph in which I wanted the edges to
have a width computed based on some property. The block
that I passed to width: was slow and was throwing an
exception. Since it was slow, the image would freeze
while computing all the widths of all the edges in the view,
and since the exceptions were not thrown I was waiting ...

Now the problem is fixed. I will update to the latest version
of Mondrian nevertheless and see how it behaves.

Cheers,
M.


On Sat, Aug 14, 2010 at 12:26 AM, Alexandre Bergel <[hidden email]> wrote:

>> More or less, but use at your own risk, because exception in Mondrian have been known to freeze the image or raise a huge amount of pop-up (due to being in the UI thread)
>>
>> I think there are three places where to start when dealing with exceptions in Mondrian:
>>
>> MOGraphElement>>handleException:   (calls haltOnce)
>
> It has no sender. I recently remove all sender of it since the visualization is first rendered in a non displayed form. A debugger will popup on error
>
>> MOBoundedShape>>display:on:  (this is the one which gives a red shape in case of error)
>
> This is not necessary anymore. The last version of Mondrian removed this particular case.
>
>> MOCanvas>>raiseError:
>
> This is also cleaned.
>
> Mircea, what do you want to achieve?
>
> Cheers,
> Alexandre
> --
> _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
> Alexandre Bergel  http://www.bergel.eu
> ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
>
>
>
>
>
>
> _______________________________________________
> Moose-dev mailing list
> [hidden email]
> https://www.iam.unibe.ch/mailman/listinfo/moose-dev
>

_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Reply | Threaded
Open this post in threaded view
|

Re: Exceptions in Mondrian

Alexandre Bergel
> Alex, I was generating a graph in which I wanted the edges to
> have a width computed based on some property. The block
> that I passed to width: was slow and was throwing an
> exception. Since it was slow, the image would freeze
> while computing all the widths of all the edges in the view,
> and since the exceptions were not thrown I was waiting ...

Yes, this was the behavior in previous versions of Mondrian

> Now the problem is fixed. I will update to the latest version
> of Mondrian nevertheless and see how it behaves.

You should not get this problem anymore.

Cheers,
Alexandre

>
>
> On Sat, Aug 14, 2010 at 12:26 AM, Alexandre Bergel <[hidden email]> wrote:
>>> More or less, but use at your own risk, because exception in Mondrian have been known to freeze the image or raise a huge amount of pop-up (due to being in the UI thread)
>>>
>>> I think there are three places where to start when dealing with exceptions in Mondrian:
>>>
>>> MOGraphElement>>handleException:   (calls haltOnce)
>>
>> It has no sender. I recently remove all sender of it since the visualization is first rendered in a non displayed form. A debugger will popup on error
>>
>>> MOBoundedShape>>display:on:  (this is the one which gives a red shape in case of error)
>>
>> This is not necessary anymore. The last version of Mondrian removed this particular case.
>>
>>> MOCanvas>>raiseError:
>>
>> This is also cleaned.
>>
>> Mircea, what do you want to achieve?
>>
>> Cheers,
>> Alexandre
>> --
>> _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
>> Alexandre Bergel  http://www.bergel.eu
>> ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
>>
>>
>>
>>
>>
>>
>> _______________________________________________
>> Moose-dev mailing list
>> [hidden email]
>> https://www.iam.unibe.ch/mailman/listinfo/moose-dev
>>
>
> _______________________________________________
> Moose-dev mailing list
> [hidden email]
> https://www.iam.unibe.ch/mailman/listinfo/moose-dev
>

--
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel  http://www.bergel.eu
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.






_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Reply | Threaded
Open this post in threaded view
|

Re: Exceptions in Mondrian

Stéphane Ducasse
In reply to this post by Alexandre Bergel
I would love to have a simple example of the problem with exception in UI because
when an exception is raised in an image we get a debugger so I'm really curious
to know why it was really a problem in mondrian. May be there is something fundamental to fix in pharo.
On Aug 13, 2010, at 11:48 PM, Alexandre Bergel wrote:

> Hi Mircea!
>
> I recently changed the way error are handled in Mondrian. Have you tried with the last version?
>
> Cheers,
> Alexandre
>
>
> On 13 Aug 2010, at 11:33, Mircea Lungu wrote:
>
>> Hi guys,
>>
>> It seems to me that exceptions are masked in Mondrian.
>> Is there a setting somewhere for turning this off?
>>
>> For development, the debugger is better than the transcript ;)
>>
>> Cheers,
>> M.
>> _______________________________________________
>> Moose-dev mailing list
>> [hidden email]
>> https://www.iam.unibe.ch/mailman/listinfo/moose-dev
>
> --
> _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
> Alexandre Bergel  http://www.bergel.eu
> ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
>
>
>
>
>
>
> _______________________________________________
> Moose-dev mailing list
> [hidden email]
> https://www.iam.unibe.ch/mailman/listinfo/moose-dev


_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Reply | Threaded
Open this post in threaded view
|

Re: Exceptions in Mondrian

Alexandre Bergel
> I would love to have a simple example of the problem with exception in UI because
> when an exception is raised in an image we get a debugger so I'm really curious
> to know why it was really a problem in mondrian.

Before, the script will hang the image:
view shape rectangle fillColor: [:value | self halt].
view nodes: (1 to: 5)

The reason was that at each refresh of the screen, the color has to be computed which raises a debugger.

> May be there is something fundamental to fix in pharo.

The error handling in Morph is scary. Time to time, the image just hang.

Cheers,
Alexandre



> On Aug 13, 2010, at 11:48 PM, Alexandre Bergel wrote:
>
>> Hi Mircea!
>>
>> I recently changed the way error are handled in Mondrian. Have you tried with the last version?
>>
>> Cheers,
>> Alexandre
>>
>>
>> On 13 Aug 2010, at 11:33, Mircea Lungu wrote:
>>
>>> Hi guys,
>>>
>>> It seems to me that exceptions are masked in Mondrian.
>>> Is there a setting somewhere for turning this off?
>>>
>>> For development, the debugger is better than the transcript ;)
>>>
>>> Cheers,
>>> M.
>>> _______________________________________________
>>> Moose-dev mailing list
>>> [hidden email]
>>> https://www.iam.unibe.ch/mailman/listinfo/moose-dev
>>
>> --
>> _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
>> Alexandre Bergel  http://www.bergel.eu
>> ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
>>
>>
>>
>>
>>
>>
>> _______________________________________________
>> Moose-dev mailing list
>> [hidden email]
>> https://www.iam.unibe.ch/mailman/listinfo/moose-dev
>
>
> _______________________________________________
> Moose-dev mailing list
> [hidden email]
> https://www.iam.unibe.ch/mailman/listinfo/moose-dev

--
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel  http://www.bergel.eu
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.






_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Reply | Threaded
Open this post in threaded view
|

Re: Exceptions in Mondrian

Stéphane Ducasse
yes but if you want a chance to get it fixed I need a simple scenario.

Stef

On Aug 15, 2010, at 3:15 PM, Alexandre Bergel wrote:

>> I would love to have a simple example of the problem with exception in UI because
>> when an exception is raised in an image we get a debugger so I'm really curious
>> to know why it was really a problem in mondrian.
>
> Before, the script will hang the image:
> view shape rectangle fillColor: [:value | self halt].
> view nodes: (1 to: 5)
>
> The reason was that at each refresh of the screen, the color has to be computed which raises a debugger.
>
>> May be there is something fundamental to fix in pharo.
>
> The error handling in Morph is scary. Time to time, the image just hang.
>
> Cheers,
> Alexandre
>
>
>
>> On Aug 13, 2010, at 11:48 PM, Alexandre Bergel wrote:
>>
>>> Hi Mircea!
>>>
>>> I recently changed the way error are handled in Mondrian. Have you tried with the last version?
>>>
>>> Cheers,
>>> Alexandre
>>>
>>>
>>> On 13 Aug 2010, at 11:33, Mircea Lungu wrote:
>>>
>>>> Hi guys,
>>>>
>>>> It seems to me that exceptions are masked in Mondrian.
>>>> Is there a setting somewhere for turning this off?
>>>>
>>>> For development, the debugger is better than the transcript ;)
>>>>
>>>> Cheers,
>>>> M.
>>>> _______________________________________________
>>>> Moose-dev mailing list
>>>> [hidden email]
>>>> https://www.iam.unibe.ch/mailman/listinfo/moose-dev
>>>
>>> --
>>> _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
>>> Alexandre Bergel  http://www.bergel.eu
>>> ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
>>>
>>>
>>>
>>>
>>>
>>>
>>> _______________________________________________
>>> Moose-dev mailing list
>>> [hidden email]
>>> https://www.iam.unibe.ch/mailman/listinfo/moose-dev
>>
>>
>> _______________________________________________
>> Moose-dev mailing list
>> [hidden email]
>> https://www.iam.unibe.ch/mailman/listinfo/moose-dev
>
> --
> _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
> Alexandre Bergel  http://www.bergel.eu
> ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
>
>
>
>
>
>
> _______________________________________________
> Moose-dev mailing list
> [hidden email]
> https://www.iam.unibe.ch/mailman/listinfo/moose-dev


_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Reply | Threaded
Open this post in threaded view
|

Re: Exceptions in Mondrian

Alexandre Bergel
> yes but if you want a chance to get it fixed I need a simple scenario.

I tried to reproduce one, but this is not easy. This problem has been around since I know Squeak. I will try to produce a scenario soon.

Cheers,
Alexandre

>
> Stef
>
> On Aug 15, 2010, at 3:15 PM, Alexandre Bergel wrote:
>
>>> I would love to have a simple example of the problem with exception in UI because
>>> when an exception is raised in an image we get a debugger so I'm really curious
>>> to know why it was really a problem in mondrian.
>>
>> Before, the script will hang the image:
>> view shape rectangle fillColor: [:value | self halt].
>> view nodes: (1 to: 5)
>>
>> The reason was that at each refresh of the screen, the color has to be computed which raises a debugger.
>>
>>> May be there is something fundamental to fix in pharo.
>>
>> The error handling in Morph is scary. Time to time, the image just hang.
>>
>> Cheers,
>> Alexandre
>>
>>
>>
>>> On Aug 13, 2010, at 11:48 PM, Alexandre Bergel wrote:
>>>
>>>> Hi Mircea!
>>>>
>>>> I recently changed the way error are handled in Mondrian. Have you tried with the last version?
>>>>
>>>> Cheers,
>>>> Alexandre
>>>>
>>>>
>>>> On 13 Aug 2010, at 11:33, Mircea Lungu wrote:
>>>>
>>>>> Hi guys,
>>>>>
>>>>> It seems to me that exceptions are masked in Mondrian.
>>>>> Is there a setting somewhere for turning this off?
>>>>>
>>>>> For development, the debugger is better than the transcript ;)
>>>>>
>>>>> Cheers,
>>>>> M.
>>>>> _______________________________________________
>>>>> Moose-dev mailing list
>>>>> [hidden email]
>>>>> https://www.iam.unibe.ch/mailman/listinfo/moose-dev
>>>>
>>>> --
>>>> _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
>>>> Alexandre Bergel  http://www.bergel.eu
>>>> ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>> _______________________________________________
>>>> Moose-dev mailing list
>>>> [hidden email]
>>>> https://www.iam.unibe.ch/mailman/listinfo/moose-dev
>>>
>>>
>>> _______________________________________________
>>> Moose-dev mailing list
>>> [hidden email]
>>> https://www.iam.unibe.ch/mailman/listinfo/moose-dev
>>
>> --
>> _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
>> Alexandre Bergel  http://www.bergel.eu
>> ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
>>
>>
>>
>>
>>
>>
>> _______________________________________________
>> Moose-dev mailing list
>> [hidden email]
>> https://www.iam.unibe.ch/mailman/listinfo/moose-dev
>
>
> _______________________________________________
> Moose-dev mailing list
> [hidden email]
> https://www.iam.unibe.ch/mailman/listinfo/moose-dev

--
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel  http://www.bergel.eu
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.






_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev