Hi.
When edges are initialized without lines, VM freezes. For instance when I run next code: | view node1 node2 edge | view := ROView new. node1 := ROLabel elementOn: 'node1'. node2 := ROLabel elementOn: 'node2'. node1 @ RODraggable. node2 @ RODraggable. edge := ROEdge from: node1 to: node2. rawView add: edge; add: node1; add: node2. ROHorizontalLineLayout on: (Array with: node1 with: node2). view open I know that you should do something like edge + (ROLine red). But Roasal shouldnt freeze the VM anyway :) -- View this message in context: http://moose-dev.97923.n3.nabble.com/Roasal-freezing-VM-tp4025992.html Sent from the moose-dev mailing list archive at Nabble.com. _______________________________________________ Moose-dev mailing list [hidden email] https://www.iam.unibe.ch/mailman/listinfo/moose-dev |
Hi Yuriy!
I guess you meant "view add: edge; add: node1; add: node2." instead of using "rawView". The script does not freeze the VM I use (Croquet Cog 4.0.2636 and the one contained in the Pharo 1.4 one click). In fact, having an edge without line is perfectly okay. No error is raised and none should be raised. The line is simply invisible. Strange that you got this error. Anyone can reproduce this error? Cheers, Alexandre On Jan 25, 2013, at 10:37 AM, Yuriy Tymchuk <[hidden email]> wrote: > Hi. > > When edges are initialized without lines, VM freezes. > > For instance when I run next code: > > | view node1 node2 edge | > view := ROView new. > node1 := ROLabel elementOn: 'node1'. > node2 := ROLabel elementOn: 'node2'. > node1 @ RODraggable. > node2 @ RODraggable. > edge := ROEdge from: node1 to: node2. > rawView add: edge; add: node1; add: node2. > ROHorizontalLineLayout on: (Array with: node1 with: node2). > view open > > > I know that you should do something like > > edge + (ROLine red). > > But Roasal shouldnt freeze the VM anyway :) > > > > -- > View this message in context: http://moose-dev.97923.n3.nabble.com/Roasal-freezing-VM-tp4025992.html > Sent from the moose-dev mailing list archive at Nabble.com. > _______________________________________________ > 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 |
Yes, it should be "view add:..."
I'm using CogVM VM 6.0-pre -- View this message in context: http://moose-dev.97923.n3.nabble.com/Roasal-freezing-VM-tp4025992p4025994.html Sent from the moose-dev mailing list archive at Nabble.com. _______________________________________________ Moose-dev mailing list [hidden email] https://www.iam.unibe.ch/mailman/listinfo/moose-dev |
In reply to this post by abergel
I can reproduce this on Windows 7 in Moose-4.7-beta from 2012-01-03
(ConfigurationOfRoassal.A...B...752)
With the ROLine commented as shown below the image locks. Alt-. fails to interrupt. With the ROLine uncommented it works fine. Forgetting ROLine is likely a common occurance for people new to Roassal, so this makes it a bit fragile. --- | view node1 node2 edge | view := ROView new. node1 := ROLabel elementOn: 'node1'. node2 := ROLabel elementOn: 'node2'. edge := (ROEdge from: node1 to: node2) "+ ROLine" . view add: node1; add: node2; add: edge. view open --- cheers -ben Alexandre Bergel wrote: Hi Yuriy! I guess you meant "view add: edge; add: node1; add: node2." instead of using "rawView". The script does not freeze the VM I use (Croquet Cog 4.0.2636 and the one contained in the Pharo 1.4 one click). In fact, having an edge without line is perfectly okay. No error is raised and none should be raised. The line is simply invisible. Strange that you got this error. Anyone can reproduce this error? Cheers, Alexandre On Jan 25, 2013, at 10:37 AM, Yuriy Tymchuk [hidden email] wrote:Hi. When edges are initialized without lines, VM freezes. For instance when I run next code: | view node1 node2 edge | view := ROView new. node1 := ROLabel elementOn: 'node1'. node2 := ROLabel elementOn: 'node2'. node1 @ RODraggable. node2 @ RODraggable. edge := ROEdge from: node1 to: node2. rawView add: edge; add: node1; add: node2. ROHorizontalLineLayout on: (Array with: node1 with: node2). view open I know that you should do something like edge + (ROLine red). But Roasal shouldnt freeze the VM anyway :) -- View this message in context: http://moose-dev.97923.n3.nabble.com/Roasal-freezing-VM-tp4025992.html Sent from the moose-dev mailing list archive at Nabble.com. _______________________________________________ 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 |
I've just produced a new version of Roassal. The problem should not be anymore.
1.268 Cheers, Alexandre On Jan 26, 2013, at 12:33 PM, Ben Coman <[hidden email]> wrote: > I can reproduce this on Windows 7 in Moose-4.7-beta from 2012-01-03 (ConfigurationOfRoassal.A...B...752) > With the ROLine commented as shown below the image locks. Alt-. fails to interrupt. > With the ROLine uncommented it works fine. > > Forgetting ROLine is likely a common occurance for people new to Roassal, so this makes it a bit fragile. > --- > | view node1 node2 edge | > view := ROView new. > node1 := ROLabel elementOn: 'node1'. > node2 := ROLabel elementOn: 'node2'. > edge := (ROEdge from: node1 to: node2) "+ ROLine" . > view add: node1; add: node2; add: edge. > view open > --- > > cheers -ben > > Alexandre Bergel wrote: >> Hi Yuriy! >> >> I guess you meant "view add: edge; add: node1; add: node2." instead of using "rawView". >> The script does not freeze the VM I use (Croquet Cog 4.0.2636 and the one contained in the Pharo 1.4 one click). >> In fact, having an edge without line is perfectly okay. No error is raised and none should be raised. The line is simply invisible. Strange that you got this error. >> >> Anyone can reproduce this error? >> >> Cheers, >> Alexandre >> >> >> On Jan 25, 2013, at 10:37 AM, Yuriy Tymchuk >> <[hidden email]> >> wrote: >> >> >> >>> Hi. >>> >>> When edges are initialized without lines, VM freezes. >>> >>> For instance when I run next code: >>> >>> | view node1 node2 edge | >>> view := ROView new. >>> node1 := ROLabel elementOn: 'node1'. >>> node2 := ROLabel elementOn: 'node2'. >>> node1 @ RODraggable. >>> node2 @ RODraggable. >>> edge := ROEdge from: node1 to: node2. >>> rawView add: edge; add: node1; add: node2. >>> ROHorizontalLineLayout on: (Array with: node1 with: node2). >>> view open >>> >>> >>> I know that you should do something like >>> >>> edge + (ROLine red). >>> >>> But Roasal shouldnt freeze the VM anyway :) >>> >>> >>> >>> -- >>> View this message in context: >>> http://moose-dev.97923.n3.nabble.com/Roasal-freezing-VM-tp4025992.html >>> >>> Sent from the moose-dev mailing list archive at Nabble.com. >>> _______________________________________________ >>> 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 |
In reply to this post by Uko2
Thanks to Ben's exploration, it should be okay now with the last version of Roassal.
Cheers, Alexandre On Jan 25, 2013, at 12:03 PM, Yuriy Tymchuk <[hidden email]> wrote: > Yes, it should be "view add:..." > > I'm using CogVM VM 6.0-pre > > > > -- > View this message in context: http://moose-dev.97923.n3.nabble.com/Roasal-freezing-VM-tp4025992p4025994.html > Sent from the moose-dev mailing list archive at Nabble.com. > _______________________________________________ > 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 |
Free forum by Nabble | Edit this page |