Latest mondrian breaks forNode: do:

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

Latest mondrian breaks forNode: do:

jfabry
Hi Alex, all,

The latest mondrian (519) breaks forNode:do: again. Try test code below to get a DNU. Alex could you add some tests for this feature ...

view interaction on: MOMouseDown do: [:ann |
        view forNode: ann element model do: [
                view interaction on: MOMouseDown do: [:ann2|
                        view forNode: ann2 element model do: [
                                view shape triangle. view nodes: #(6 7 8 9).]].
                view shape diamond. view nodes: #(3 4 5).]].
view nodes: #(1 2)

--
Johan Fabry  
[hidden email] - http://dcc.uchile.cl/~jfabry
PLEIAD Lab - Computer Science Department (DCC) - University of Chile




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

Re: Latest mondrian breaks forNode: do:

Alexandre Bergel
Hi,

I do not get any DNU. I click on inner nodes, and new nodes are normally created.
forNode:do: is tested in
#testInteraction10AddingSubNodesAndElementToDisplay
#testInteraction13NestedInteractions
#testInteraction14AddingSubnodeToIncreaseRootSize
#testInteraction4AddingSubNodes

Using the example you gave in your email.

What are exactly the actions you perform to get the DNU?

Cheers,
Alexandre

On 26 Jul 2010, at 17:58, Johan Fabry wrote:

> Hi Alex, all,
>
> The latest mondrian (519) breaks forNode:do: again. Try test code below to get a DNU. Alex could you add some tests for this feature ...
>
> view interaction on: MOMouseDown do: [:ann |
> view forNode: ann element model do: [
> view interaction on: MOMouseDown do: [:ann2|
> view forNode: ann2 element model do: [
> view shape triangle. view nodes: #(6 7 8 9).]].
> view shape diamond. view nodes: #(3 4 5).]].
> view nodes: #(1 2)
>
> --
> Johan Fabry  
> [hidden email] - http://dcc.uchile.cl/~jfabry
> PLEIAD Lab - Computer Science Department (DCC) - University of Chile
>
>
>
>
> _______________________________________________
> 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: Latest mondrian breaks forNode: do:

jfabry
In my image I get 2 DNU, in 2different threads, appearing in the following order

MORoot>>updateBounds (called in forNode:do: as 'node owner updateBounds.') causes the DNU when sending 'canvas updateBounds'. MORoot canvas is a Rectangle (0@0 corner: 25@10) when causing the DNU but when I debug MORoot canvas is a MOCanvas (MOCanvas<0@0 corner: 25@10>).

MORoot>>addSelection: aFigure causes DNU in 'selections add: aFigure' because selections is nil. Still nil when I debug it.

On 26 Jul 2010, at 12:21, Alexandre Bergel wrote:

> Hi,
>
> I do not get any DNU. I click on inner nodes, and new nodes are normally created.
> forNode:do: is tested in
> #testInteraction10AddingSubNodesAndElementToDisplay
> #testInteraction13NestedInteractions
> #testInteraction14AddingSubnodeToIncreaseRootSize
> #testInteraction4AddingSubNodes
>
> Using the example you gave in your email.
>
> What are exactly the actions you perform to get the DNU?
>
> Cheers,
> Alexandre
>
> On 26 Jul 2010, at 17:58, Johan Fabry wrote:
>
>> Hi Alex, all,
>>
>> The latest mondrian (519) breaks forNode:do: again. Try test code below to get a DNU. Alex could you add some tests for this feature ...
>>
>> view interaction on: MOMouseDown do: [:ann |
>> view forNode: ann element model do: [
>> view interaction on: MOMouseDown do: [:ann2|
>> view forNode: ann2 element model do: [
>> view shape triangle. view nodes: #(6 7 8 9).]].
>> view shape diamond. view nodes: #(3 4 5).]].
>> view nodes: #(1 2)
>>
>> --
>> Johan Fabry  
>> [hidden email] - http://dcc.uchile.cl/~jfabry
>> PLEIAD Lab - Computer Science Department (DCC) - University of Chile
>>
>>
>>
>>
>> _______________________________________________
>> 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

--
Johan Fabry  
[hidden email] - http://dcc.uchile.cl/~jfabry
PLEIAD Lab - Computer Science Department (DCC) - University of Chile




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

Re: Latest mondrian breaks forNode: do:

jfabry

I confirm that it is something weird that is in my image. On the latest hudson build the test code below works fine. Do we persue this or drop it?

On 27 Jul 2010, at 12:15, Johan Fabry wrote:

> In my image I get 2 DNU, in 2different threads, appearing in the following order
>
> MORoot>>updateBounds (called in forNode:do: as 'node owner updateBounds.') causes the DNU when sending 'canvas updateBounds'. MORoot canvas is a Rectangle (0@0 corner: 25@10) when causing the DNU but when I debug MORoot canvas is a MOCanvas (MOCanvas<0@0 corner: 25@10>).
>
> MORoot>>addSelection: aFigure causes DNU in 'selections add: aFigure' because selections is nil. Still nil when I debug it.
>
> On 26 Jul 2010, at 12:21, Alexandre Bergel wrote:
>
>> Hi,
>>
>> I do not get any DNU. I click on inner nodes, and new nodes are normally created.
>> forNode:do: is tested in
>> #testInteraction10AddingSubNodesAndElementToDisplay
>> #testInteraction13NestedInteractions
>> #testInteraction14AddingSubnodeToIncreaseRootSize
>> #testInteraction4AddingSubNodes
>>
>> Using the example you gave in your email.
>>
>> What are exactly the actions you perform to get the DNU?
>>
>> Cheers,
>> Alexandre

--
Johan Fabry  
[hidden email] - http://dcc.uchile.cl/~jfabry
PLEIAD Lab - Computer Science Department (DCC) - University of Chile




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

Re: Latest mondrian breaks forNode: do:

Alexandre Bergel
In reply to this post by jfabry
Johan, do you have the Pharo.log file ?

Cheers,
Alexandre


On 27 Jul 2010, at 18:15, Johan Fabry wrote:

> In my image I get 2 DNU, in 2different threads, appearing in the following order
>
> MORoot>>updateBounds (called in forNode:do: as 'node owner updateBounds.') causes the DNU when sending 'canvas updateBounds'. MORoot canvas is a Rectangle (0@0 corner: 25@10) when causing the DNU but when I debug MORoot canvas is a MOCanvas (MOCanvas<0@0 corner: 25@10>).
>
> MORoot>>addSelection: aFigure causes DNU in 'selections add: aFigure' because selections is nil. Still nil when I debug it.
>
> On 26 Jul 2010, at 12:21, Alexandre Bergel wrote:
>
>> Hi,
>>
>> I do not get any DNU. I click on inner nodes, and new nodes are normally created.
>> forNode:do: is tested in
>> #testInteraction10AddingSubNodesAndElementToDisplay
>> #testInteraction13NestedInteractions
>> #testInteraction14AddingSubnodeToIncreaseRootSize
>> #testInteraction4AddingSubNodes
>>
>> Using the example you gave in your email.
>>
>> What are exactly the actions you perform to get the DNU?
>>
>> Cheers,
>> Alexandre
>>
>> On 26 Jul 2010, at 17:58, Johan Fabry wrote:
>>
>>> Hi Alex, all,
>>>
>>> The latest mondrian (519) breaks forNode:do: again. Try test code below to get a DNU. Alex could you add some tests for this feature ...
>>>
>>> view interaction on: MOMouseDown do: [:ann |
>>> view forNode: ann element model do: [
>>> view interaction on: MOMouseDown do: [:ann2|
>>> view forNode: ann2 element model do: [
>>> view shape triangle. view nodes: #(6 7 8 9).]].
>>> view shape diamond. view nodes: #(3 4 5).]].
>>> view nodes: #(1 2)
>>>
>>> --
>>> Johan Fabry  
>>> [hidden email] - http://dcc.uchile.cl/~jfabry
>>> PLEIAD Lab - Computer Science Department (DCC) - University of Chile
>>>
>>>
>>>
>>>
>>> _______________________________________________
>>> 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
>
> --
> Johan Fabry  
> [hidden email] - http://dcc.uchile.cl/~jfabry
> PLEIAD Lab - Computer Science Department (DCC) - University of Chile
>
>
>
>
> _______________________________________________
> 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: Latest mondrian breaks forNode: do:

Alexandre Bergel
Hummm... Strange

According to your log, updateBounds is sent to rectangle from MORoot>>updateBounds. But the code of MORoot>>updateBounds says that #updateBounds can only be sent to a canvas. In your case the canvas is an instance of Rectangle.
In the log, apparently, it is said to be a MOCanvas, as I would expect:
-=-=-=-=-=-=-=-=-=
MORoot>>updateBounds
        Receiver: a MORoot
        Arguments and temporary variables:
<<error during printing>
        Receiver's instance variables:
                ...
                canvas: MOCanvas<0@0 corner: 25@10>
-=-=-=-=-=-=-=-=-=

Really strange...
I am not sure what I can do. Especially if this is related to your image. In that case, just update your image, and wait for it to appear again.

Cheers,
Alexandre


On 27 Jul 2010, at 18:52, Johan Fabry wrote:

> Here you go:
>
> <PharoDebug.log>
>
> On 27 Jul 2010, at 12:37, Alexandre Bergel wrote:
>
>> Johan, do you have the Pharo.log file ?
>>
>> Cheers,
>> Alexandre
>>
>>
>> On 27 Jul 2010, at 18:15, Johan Fabry wrote:
>>
>>> In my image I get 2 DNU, in 2different threads, appearing in the following order
>>>
>>> MORoot>>updateBounds (called in forNode:do: as 'node owner updateBounds.') causes the DNU when sending 'canvas updateBounds'. MORoot canvas is a Rectangle (0@0 corner: 25@10) when causing the DNU but when I debug MORoot canvas is a MOCanvas (MOCanvas<0@0 corner: 25@10>).
>>>
>>> MORoot>>addSelection: aFigure causes DNU in 'selections add: aFigure' because selections is nil. Still nil when I debug it.
>>>
>>> On 26 Jul 2010, at 12:21, Alexandre Bergel wrote:
>>>
>>>> Hi,
>>>>
>>>> I do not get any DNU. I click on inner nodes, and new nodes are normally created.
>>>> forNode:do: is tested in
>>>> #testInteraction10AddingSubNodesAndElementToDisplay
>>>> #testInteraction13NestedInteractions
>>>> #testInteraction14AddingSubnodeToIncreaseRootSize
>>>> #testInteraction4AddingSubNodes
>>>>
>>>> Using the example you gave in your email.
>>>>
>>>> What are exactly the actions you perform to get the DNU?
>>>>
>>>> Cheers,
>>>> Alexandre
>>>>
>>>> On 26 Jul 2010, at 17:58, Johan Fabry wrote:
>>>>
>>>>> Hi Alex, all,
>>>>>
>>>>> The latest mondrian (519) breaks forNode:do: again. Try test code below to get a DNU. Alex could you add some tests for this feature ...
>>>>>
>>>>> view interaction on: MOMouseDown do: [:ann |
>>>>> view forNode: ann element model do: [
>>>>> view interaction on: MOMouseDown do: [:ann2|
>>>>> view forNode: ann2 element model do: [
>>>>> view shape triangle. view nodes: #(6 7 8 9).]].
>>>>> view shape diamond. view nodes: #(3 4 5).]].
>>>>> view nodes: #(1 2)
>>>>>
>>>>> --
>>>>> Johan Fabry  
>>>>> [hidden email] - http://dcc.uchile.cl/~jfabry
>>>>> PLEIAD Lab - Computer Science Department (DCC) - University of Chile
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> _______________________________________________
>>>>> 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
>>>
>>> --
>>> Johan Fabry  
>>> [hidden email] - http://dcc.uchile.cl/~jfabry
>>> PLEIAD Lab - Computer Science Department (DCC) - University of Chile
>>>
>>>
>>>
>>>
>>> _______________________________________________
>>> 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
>
> --
> Johan Fabry  
> [hidden email] - http://dcc.uchile.cl/~jfabry
> PLEIAD Lab - Computer Science Department (DCC) - University of Chile
>
>
>

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






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