I am using stable branch of Roassal2 in Pharo 5 and Win 8.1 to draw a figure for a paper (but the problem is the same loading the latest versions SmalltalkHub). The same figure used to open without problems some months ago. When trying to open a grapher, I get a yellow-cross red morph window inside #setPaint: . The transparent color passed as argument came from AthensCairoSurface>>clear All the Roassal examples open without problems. That's why here is the link to the fuel out stack with the halt previous to the crash : https://dl.dropboxusercontent.com/u/103833630/Debugger-Stack-AthensCairoCanvas-2017-02-15-192251.zip Is this a well-known bug? Any suggestion?_______________________________________________ Moose-dev mailing list [hidden email] https://www.list.inf.unibe.ch/listinfo/moose-dev |
Hi Hernan,
I am not able to import the fuel error. I get the following: Maybe you can share the image? How can I reproduce your error? Alexandre On Feb 15, 2017, at 7:23 PM, Hernán Morales Durand <[hidden email]> wrote: -- _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;: Alexandre Bergel http://www.bergel.eu ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;. _______________________________________________ Moose-dev mailing list [hidden email] https://www.list.inf.unibe.ch/listinfo/moose-dev |
Hi Alex, I have uploaded an image to dropbox with the expression causing the hang, here is the link:https://dl.dropboxusercontent.com/u/103833630/BioSmalltalk_img.zip 2017-02-16 12:34 GMT-03:00 Alexandre Bergel <[hidden email]>:
_______________________________________________ Moose-dev mailing list [hidden email] https://www.list.inf.unibe.ch/listinfo/moose-dev |
Hi Hernán,
I am not able to reproduce your problem since I cannot open your image (I use OSX), and apparently there is a problem with the font. I cannot open a code browser. However, I suspect that the problem is that a nil value is used as a color. Check this: v := RTView new. shape := RTBox new color: nil. v add: shape element. v Executing this code seems to produce the same error. Maybe you want to add a check on your side? Cheers, Alexandre > On Feb 16, 2017, at 5:30 PM, Hernán Morales Durand <[hidden email]> wrote: > > Hi Alex, > > I have uploaded an image to dropbox with the expression causing the hang, here is the link: > > https://dl.dropboxusercontent.com/u/103833630/BioSmalltalk_img.zip > > Cheers, > > Hernán > > > > > > 2017-02-16 12:34 GMT-03:00 Alexandre Bergel <[hidden email]>: > Hi Hernan, > > I am not able to import the fuel error. I get the following: > <Screen Shot 2017-02-16 at 12.33.32 PM.png> > > Maybe you can share the image? > How can I reproduce your error? > > Alexandre > >> On Feb 15, 2017, at 7:23 PM, Hernán Morales Durand <[hidden email]> wrote: >> >> I am using stable branch of Roassal2 in Pharo 5 and Win 8.1 to draw a figure for a paper (but the problem is the same loading the latest versions SmalltalkHub). >> >> When trying to open a grapher, I get a yellow-cross red morph window inside #setPaint: . The transparent color passed as argument came from AthensCairoSurface>>clear >> >> The same figure used to open without problems some months ago. >> >> All the Roassal examples open without problems. That's why here is the link to the fuel out stack with the halt previous to the crash : https://dl.dropboxusercontent.com/u/103833630/Debugger-Stack-AthensCairoCanvas-2017-02-15-192251.zip >> >> Is this a well-known bug? Any suggestion? >> >> Cheers, >> >> Hernán >> >> >> _______________________________________________ >> Moose-dev mailing list >> [hidden email] >> https://www.list.inf.unibe.ch/listinfo/moose-dev > > -- > _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;: > Alexandre Bergel http://www.bergel.eu > ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;. > > > > > _______________________________________________ > Moose-dev mailing list > [hidden email] > https://www.list.inf.unibe.ch/listinfo/moose-dev > > > _______________________________________________ > Moose-dev mailing list > [hidden email] > https://www.list.inf.unibe.ch/listinfo/moose-dev -- _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;: Alexandre Bergel http://www.bergel.eu ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;. _______________________________________________ Moose-dev mailing list [hidden email] https://www.list.inf.unibe.ch/listinfo/moose-dev |
Hi Alex, I think this is too deep into Trachel and Athens. I am debugging the TRMorph>>drawOn: method and there is no way I can figure out which one of my Grapher objects should I change its color. The trachelCanvas has 22385 shapes, how they match with my higher-level grapher object?.TRAbstractBoxShape>>drawOn: athensCanvas self shouldBeDrawn ifFalse: [ ^ self ]. athensCanvas pathTransform restoreAfter: [ athensCanvas pathTransform multiplyBy: matrix asFloatTransform. athensCanvas setPaint: self color; drawShape: self path. self drawStrokeIfNecessaryOn: athensCanvas ] 2017-02-16 20:20 GMT-03:00 Alexandre Bergel <[hidden email]>: Hi Hernán, _______________________________________________ Moose-dev mailing list [hidden email] https://www.list.inf.unibe.ch/listinfo/moose-dev |
Hi, I traced this back to RTLegendColorItem, that is initialized with "population Color" but that is nil in your model Am 17.02.2017 5:09 vorm. schrieb "Hernán Morales Durand" <[hidden email]>:
_______________________________________________ Moose-dev mailing list [hidden email] https://www.list.inf.unibe.ch/listinfo/moose-dev |
I added a guard in RTColorLegendItem.
Cheers, Alexandre > On Feb 17, 2017, at 3:27 AM, Nicolai Hess <[hidden email]> wrote: > > Hi, > I traced this back to RTLegendColorItem, that is initialized with "population Color" but that is nil in your model > > > Am 17.02.2017 5:09 vorm. schrieb "Hernán Morales Durand" <[hidden email]>: > Hi Alex, > > I think this is too deep into Trachel and Athens. I am debugging the TRMorph>>drawOn: method and there is no way I can figure out which one of my Grapher objects should I change its color. The trachelCanvas has 22385 shapes, how they match with my higher-level grapher object?. > > However, I "solved it" by lazy initializing TRShape>>color to Color transparent and then adding self color in setPaint: > > TRAbstractBoxShape>>drawOn: athensCanvas > self shouldBeDrawn > ifFalse: [ ^ self ]. > athensCanvas pathTransform > restoreAfter: [ > athensCanvas pathTransform > multiplyBy: matrix asFloatTransform. > athensCanvas > setPaint: self color; > drawShape: self path. > self drawStrokeIfNecessaryOn: athensCanvas ] > > > 2017-02-16 20:20 GMT-03:00 Alexandre Bergel <[hidden email]>: > Hi Hernán, > > I am not able to reproduce your problem since I cannot open your image (I use OSX), and apparently there is a problem with the font. I cannot open a code browser. > However, I suspect that the problem is that a nil value is used as a color. > > Check this: > > v := RTView new. > shape := RTBox new color: nil. > v add: shape element. > v > > Executing this code seems to produce the same error. Maybe you want to add a check on your side? > > Cheers, > Alexandre > > > > On Feb 16, 2017, at 5:30 PM, Hernán Morales Durand <[hidden email]> wrote: > > > > Hi Alex, > > > > I have uploaded an image to dropbox with the expression causing the hang, here is the link: > > > > https://dl.dropboxusercontent.com/u/103833630/BioSmalltalk_img.zip > > > > Cheers, > > > > Hernán > > > > > > > > > > > > 2017-02-16 12:34 GMT-03:00 Alexandre Bergel <[hidden email]>: > > Hi Hernan, > > > > I am not able to import the fuel error. I get the following: > > <Screen Shot 2017-02-16 at 12.33.32 PM.png> > > > > Maybe you can share the image? > > How can I reproduce your error? > > > > Alexandre > > > >> On Feb 15, 2017, at 7:23 PM, Hernán Morales Durand <[hidden email]> wrote: > >> > >> I am using stable branch of Roassal2 in Pharo 5 and Win 8.1 to draw a figure for a paper (but the problem is the same loading the latest versions SmalltalkHub). > >> > >> When trying to open a grapher, I get a yellow-cross red morph window inside #setPaint: . The transparent color passed as argument came from AthensCairoSurface>>clear > >> > >> The same figure used to open without problems some months ago. > >> > >> All the Roassal examples open without problems. That's why here is the link to the fuel out stack with the halt previous to the crash : https://dl.dropboxusercontent.com/u/103833630/Debugger-Stack-AthensCairoCanvas-2017-02-15-192251.zip > >> > >> Is this a well-known bug? Any suggestion? > >> > >> Cheers, > >> > >> Hernán > >> > >> > >> _______________________________________________ > >> Moose-dev mailing list > >> [hidden email] > >> https://www.list.inf.unibe.ch/listinfo/moose-dev > > > > -- > > _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;: > > Alexandre Bergel http://www.bergel.eu > > ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;. > > > > > > > > > > _______________________________________________ > > Moose-dev mailing list > > [hidden email] > > https://www.list.inf.unibe.ch/listinfo/moose-dev > > > > > > _______________________________________________ > > Moose-dev mailing list > > [hidden email] > > https://www.list.inf.unibe.ch/listinfo/moose-dev > > -- > _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;: > Alexandre Bergel http://www.bergel.eu > ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;. > > > > _______________________________________________ > Moose-dev mailing list > [hidden email] > https://www.list.inf.unibe.ch/listinfo/moose-dev > > > _______________________________________________ > Moose-dev mailing list > [hidden email] > https://www.list.inf.unibe.ch/listinfo/moose-dev > > > _______________________________________________ > Moose-dev mailing list > [hidden email] > https://www.list.inf.unibe.ch/listinfo/moose-dev -- _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;: Alexandre Bergel http://www.bergel.eu ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;. _______________________________________________ Moose-dev mailing list [hidden email] https://www.list.inf.unibe.ch/listinfo/moose-dev |
In reply to this post by Nicolai Hess-3-2
Thank you Nicolai. I thought is was not possible to go from trachel objects to grapher objects, I will check with debugger again, and my model. Cheers, Hernán 2017-02-17 3:27 GMT-03:00 Nicolai Hess <[hidden email]>:
_______________________________________________ Moose-dev mailing list [hidden email] https://www.list.inf.unibe.ch/listinfo/moose-dev |
Free forum by Nabble | Edit this page |