Issue 6756 in pharo: Type code in editor go crash and show red panel

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

Issue 6756 in pharo: Type code in editor go crash and show red panel

pharo
Status: New
Owner: ----
Labels: Milestone-2.0 Type-Bug

New issue 6756 by [hidden email]: Type code in editor go crash and show  
red panel
http://code.google.com/p/pharo/issues/detail?id=6756

In editor, if I enter this code, and save it, all is fine.
buildUI
        | content builder |
        builder := UITheme builder.
        content :=builder newColumn: {
                (DominionCardSetMorph new) model: DominionSupply new.
                (builder newRow: {
                        builder newButtonFor: self
                                action: #playButtonClick
                                label: 'Play'
                                help: 'Play a Card'.
                        builder newButtonFor: self
                                action: #buyButtonClick
                                label: 'Buy'
                                help: 'Buy a Card'.
                }) borderWidth: 1.
        }.
        content extent: 120@300.
        content hResizing: #shrinkWrap

If I add a 3rd button, editor crash and show a red panel with a black cross.
It crash during entering caracters or paste a text.


_______________________________________________
Pharo-bugtracker mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-bugtracker
Reply | Threaded
Open this post in threaded view
|

Re: Issue 6756 in pharo: Type code in editor go crash and show red panel

pharo

Comment #1 on issue 6756 by [hidden email]: Type code in editor go crash  
and show red panel
http://code.google.com/p/pharo/issues/detail?id=6756

In fact, it's append if there are too much chars in editor.
I known that I should do smaller message !!!



_______________________________________________
Pharo-bugtracker mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-bugtracker
Reply | Threaded
Open this post in threaded view
|

Re: Issue 6756 in pharo: Type code in editor go crash and show red panel

pharo

Comment #2 on issue 6756 by [hidden email]: Type code in editor go crash  
and show red panel
http://code.google.com/p/pharo/issues/detail?id=6756

found in About...:
   Pharo2.0a
   Latest update: #20236



_______________________________________________
Pharo-bugtracker mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-bugtracker
Reply | Threaded
Open this post in threaded view
|

Re: Issue 6756 in pharo: Type code in editor go crash and show red panel

pharo

Comment #3 on issue 6756 by [hidden email]: Type code in editor go  
crash and show red panel
http://code.google.com/p/pharo/issues/detail?id=6756

can you post the error? Alt-shift click on the erroneous morph, then the  
wrench icon, inspect error.
thanks.


_______________________________________________
Pharo-bugtracker mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-bugtracker
Reply | Threaded
Open this post in threaded view
|

Re: Issue 6756 in pharo: Type code in editor go crash and show red panel

pharo

Comment #4 on issue 6756 by [hidden email]: Type code in editor go crash  
and show red panel
http://code.google.com/p/pharo/issues/detail?id=6756

I don't understand "inscpect error".
The only thing I can do is to inspect the morph and see the text attribute  
that shows the text I try to enter before red crash (a long text)...

I can give you a screen copy if it could help.

Please, give me additional instructions...


_______________________________________________
Pharo-bugtracker mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-bugtracker
Reply | Threaded
Open this post in threaded view
|

Re: Issue 6756 in pharo: Type code in editor go crash and show red panel

pharo

Comment #5 on issue 6756 by [hidden email]: Type code in editor go  
crash and show red panel
http://code.google.com/p/pharo/issues/detail?id=6756

do you manage to the the Halo/Morph-tools menu opened?
- that is alt-shift-click on mac, try varias modifier and clicks on other  
platforms, I never remember :)
- do the very same combination-click to cycle through the morphs (you will  
see the name of the selected morph somewhere at the bottom of the halo)
- once you have the menu open for the red-squared morph click on the wrench  
icon on the right side and click on "debug drawing error" (see  
http://imgur.com/3l92T)
- once you have the debugger open you can either serialize the error and  
attach it to this issue or simply copy and paste the stack trace...


_______________________________________________
Pharo-bugtracker mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-bugtracker
Reply | Threaded
Open this post in threaded view
|

Re: Issue 6756 in pharo: Type code in editor go crash and show red panel

pharo

Comment #6 on issue 6756 by [hidden email]: Type code in editor go crash  
and show red panel
http://code.google.com/p/pharo/issues/detail?id=6756

I think I understand your instruction (In first steps, I try to find "Debug
Drawing" in a TextMorph (not red) not in PluggableTextMorph (effectively
red with cross)).

Here is the stack in attached file.

I found that error is due to a Color method called on a GradientStyle in
PluggableTextMorphWithLimits:
PluggableTextMorphWithLimits >> backgroundColorFor: rect
...
transitionColor := Color yellow mixed: 0.6 with: self basicColor.

'self BasicColor' return a gradient here and not a color as we expect...

Peharps a 'asColor' is missing ?

Vincent


_______________________________________________
Pharo-bugtracker mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-bugtracker
Reply | Threaded
Open this post in threaded view
|

Re: Issue 6756 in pharo: Type code in editor go crash and show red panel

pharo

Comment #7 on issue 6756 by [hidden email]: Type code in editor go  
crash and show red panel
http://code.google.com/p/pharo/issues/detail?id=6756

thanks, that helped ;)
yup looks like, can you try to reproduce the error with the slice from the  
inbox?

SLICE-Issue-6756-Type-code-in-editor-go-crash-and-show-red-panel-CamilloBruni.1


_______________________________________________
Pharo-bugtracker mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-bugtracker
Reply | Threaded
Open this post in threaded view
|

Re: Issue 6756 in pharo: Type code in editor go crash and show red panel

pharo
Updates:
        Status: FixReviewNeeded

Comment #8 on issue 6756 by [hidden email]: Type code in editor go  
crash and show red panel
http://code.google.com/p/pharo/issues/detail?id=6756

(No comment was entered for this change.)


_______________________________________________
Pharo-bugtracker mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-bugtracker
Reply | Threaded
Open this post in threaded view
|

Re: Issue 6756 in pharo: Type code in editor go crash and show red panel

pharo

Comment #9 on issue 6756 by [hidden email]: Type code in editor go crash  
and show red panel
http://code.google.com/p/pharo/issues/detail?id=6756

I cannot find the slice, nor in this issue, nor in my inbox...



_______________________________________________
Pharo-bugtracker mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-bugtracker
Reply | Threaded
Open this post in threaded view
|

Re: Issue 6756 in pharo: Type code in editor go crash and show red panel

pharo

Comment #10 on issue 6756 by [hidden email]: Type code in editor go  
crash and show red panel
http://code.google.com/p/pharo/issues/detail?id=6756

It's in the default inbox repository: http://ss3.gemstone.com/ss/PharoInbox


_______________________________________________
Pharo-bugtracker mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-bugtracker
Reply | Threaded
Open this post in threaded view
|

Re: Issue 6756 in pharo: Type code in editor go crash and show red panel

pharo
Updates:
        Status: MonkeyIsChecking

Comment #11 on issue 6756 by [hidden email]: Type code in editor go  
crash and show red panel
http://code.google.com/p/pharo/issues/detail?id=6756#c11

The Monkey is currently checking this issue. Please don't change it!


_______________________________________________
Pharo-bugtracker mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-bugtracker
Reply | Threaded
Open this post in threaded view
|

Re: Issue 6756 in pharo: Type code in editor go crash and show red panel

pharo
Updates:
        Status: ValidatedByTheMonkey
        Labels: CheckedIn20333

Comment #12 on issue 6756 by [hidden email]: Type code in editor go  
crash and show red panel
http://code.google.com/p/pharo/issues/detail?id=6756#c12

This Issue has been checked by Ulysse the Monkey
       
6413 tests passed in 00:02:14s:
===============================
        CollectionsTests-Arrayed (553)
        CollectionsTests-Atomic (12)
        CollectionsTests-Sequenceable (912)
        CollectionsTests-SplitJoin (27)
        CollectionsTests-Stack (16)
        CollectionsTests-Streams (37)
        CollectionsTests-Strings (606)
        CollectionsTests-Support (12)
        CollectionsTests-Unordered (1954)
        CollectionsTests-Weak (739)
        CompilerTests (179)
        KernelTests-Chronology (583)
        KernelTests-Classes (68)
        KernelTests-Exception (2)
        KernelTests-Methods (179)
        KernelTests-Numbers (276)
        KernelTests-Objects (86)
        KernelTests-Pragmas (3)
        KernelTests-Processes (37)
        MorphicTests-Basic (16)
        MorphicTests-Event (9)
        MorphicTests-Kernel (8)
        MorphicTests-Text Support (4)
        MorphicTests-Widgets (3)
        MorphicTests-WindowNotification (8)
        SUnit-Core-Extensions (3)
        SUnit-Core-Utilities (3)
        SUnit-Tests-Core (78)

----------------------------------------------------------
Loaded Source:  
SLICE-Issue-6756-Type-code-in-editor-go-crash-and-show-red-panel-CamilloBruni.1  
from http://ss3.gemstone.com/ss/PharoInbox
Tested using Pharo-2.0-20333-a on CoInterpreter  
VMMaker-oscog-EstebanLorenzano.164 uuid:  
d77dee73-00f5-4d00-847b-00646b08329d Oct  2 2012
StackToRegisterMappingCogit VMMaker-oscog-EstebanLorenzano.164 uuid:  
d77dee73-00f5-4d00-847b-00646b08329d Oct  2 2012
git://gitorious.org/cogvm/blessed.git Commit:  
bfc9fe2c4abcd2972c8bd9eac1c77f9baaf23e8a Date: 2012-09-25 13:34:47 +0200  
By: Esteban Lorenzano <[hidden email]>


_______________________________________________
Pharo-bugtracker mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-bugtracker
Reply | Threaded
Open this post in threaded view
|

Re: Issue 6756 in pharo: Type code in editor go crash and show red panel

pharo
Updates:
        Status: FixToInclude

Comment #13 on issue 6756 by [hidden email]: Type code in editor go  
crash and show red panel
http://code.google.com/p/pharo/issues/detail?id=6756

(No comment was entered for this change.)


_______________________________________________
Pharo-bugtracker mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-bugtracker
Reply | Threaded
Open this post in threaded view
|

Re: Issue 6756 in pharo: Type code in editor go crash and show red panel

pharo
Updates:
        Status: Integrated

Comment #14 on issue 6756 by [hidden email]: Type code in editor go  
crash and show red panel
http://code.google.com/p/pharo/issues/detail?id=6756

in 2.0 334


_______________________________________________
Pharo-bugtracker mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-bugtracker