Re: [Pharo-dev] Pharo 6 vm crashed when pasting a big file

2017-03-22 Thread Eliot Miranda
Hi Thomas,

can you look at the crash.dmp file and post it here?  If it contains more 
than one report please edit it to include only the relevant report.

Can you keep a copy of the file and the image so we can try and reproduce car 
the bug also?

Thanks
Eliot
_,,,^..^,,,_ (phone)

> On Mar 22, 2017, at 5:44 AM, tdupr...@ens-paris-saclay.fr wrote:
> 
> Quoting Nicolai Hess :
> 
>> 2017-03-22 11:04 GMT+01:00 :
>> 
>>> Hi,
>>> 
>>> The pharo 6 vm crashed when I pasted a long text file in the body of a
>>> method.
>>> Surprisingly, the vm did not crashed when I pasted a file of approximately
>>> the same size but only containing a single string ('adafcawa' copy-pasted
>>> on 8000 lines).
>>> 
>>> The crash occured after I:
>>> - Opened a fresh image (60450)
>>> - Created a package, with a single class, with a single method
>>> - Tried to paste the content of the attached file into the methods body
>>> (the vm froze for 20-30 seconds then crashed)
>>> 
>>> Ubuntu 16.04 LTS
>>> 64 bits
>>> vm obtained from http://get.pharo.org/ (the '60+vm' package)
>>> image 60450
>>> 
>>> Thomas
>>> 
>> 
>> 
>> Hi,
>> this is somehow related to syntax highlighting and that the parser for
>> syntax highlighting stops due to a syntax error.
>> You can disable syntax highlighting.
>> SHPreferences enabled:false.
>> 
>> And if you just paste this code as a string
>> 
>> foo
>> ^ 'YOUR_FILE_CONTENTS'
>> 
>> the syntax error occurs from line 35 of your file contents:
>> 
>> Other Elements. All syntactic structures that don't fall
>> 
>> this lines contains a quote and the parser tries to parse the remaining
>> part as code.
>> 
>> What I don't understand, sometimes it is working (code pane just shows the
>> code with all after the text
>> "don't" highlighted red, indicating a syntax error). And sometimes it does
>> not work and  the vm just consumes a
>> ridiculous amount of memory ~ 1GB.
>> 
> 
> Ok, thanks. I got around it by pasting the file pieces by pieces.
> 
> Although I'm not sure it's all there is, because even pasting the content of 
> the file after having removed this quote (and checked that it was the only 
> quote of the file) into the method body crashes the vm.
> 
> foo
> ^ 'FILE_CONTENT_WITHOUT_QUOTES'
> 
> Thomas
> 
> 



Re: [Pharo-dev] Pharo 6 vm crashed when pasting a big file

2017-03-22 Thread tdupriez

Quoting Nicolai Hess :


2017-03-22 11:04 GMT+01:00 :


Hi,

The pharo 6 vm crashed when I pasted a long text file in the body of a
method.
Surprisingly, the vm did not crashed when I pasted a file of approximately
the same size but only containing a single string ('adafcawa' copy-pasted
on 8000 lines).

The crash occured after I:
- Opened a fresh image (60450)
- Created a package, with a single class, with a single method
- Tried to paste the content of the attached file into the methods body
(the vm froze for 20-30 seconds then crashed)

Ubuntu 16.04 LTS
64 bits
vm obtained from http://get.pharo.org/ (the '60+vm' package)
image 60450

Thomas




Hi,
this is somehow related to syntax highlighting and that the parser for
syntax highlighting stops due to a syntax error.
You can disable syntax highlighting.
SHPreferences enabled:false.

And if you just paste this code as a string

foo
^ 'YOUR_FILE_CONTENTS'

the syntax error occurs from line 35 of your file contents:

 Other Elements. All syntactic structures that don't fall

this lines contains a quote and the parser tries to parse the remaining
part as code.

What I don't understand, sometimes it is working (code pane just shows the
code with all after the text
"don't" highlighted red, indicating a syntax error). And sometimes it does
not work and  the vm just consumes a
ridiculous amount of memory ~ 1GB.



Ok, thanks. I got around it by pasting the file pieces by pieces.

Although I'm not sure it's all there is, because even pasting the  
content of the file after having removed this quote (and checked that  
it was the only quote of the file) into the method body crashes the vm.


foo
^ 'FILE_CONTENT_WITHOUT_QUOTES'

Thomas




Re: [Pharo-dev] Pharo 6 vm crashed when pasting a big file

2017-03-22 Thread Nicolai Hess
2017-03-22 11:04 GMT+01:00 :

> Hi,
>
> The pharo 6 vm crashed when I pasted a long text file in the body of a
> method.
> Surprisingly, the vm did not crashed when I pasted a file of approximately
> the same size but only containing a single string ('adafcawa' copy-pasted
> on 8000 lines).
>
> The crash occured after I:
> - Opened a fresh image (60450)
> - Created a package, with a single class, with a single method
> - Tried to paste the content of the attached file into the methods body
> (the vm froze for 20-30 seconds then crashed)
>
> Ubuntu 16.04 LTS
> 64 bits
> vm obtained from http://get.pharo.org/ (the '60+vm' package)
> image 60450
>
> Thomas
>


Hi,
this is somehow related to syntax highlighting and that the parser for
syntax highlighting stops due to a syntax error.
You can disable syntax highlighting.
SHPreferences enabled:false.

And if you just paste this code as a string

foo
^ 'YOUR_FILE_CONTENTS'

the syntax error occurs from line 35 of your file contents:

 Other Elements. All syntactic structures that don't fall

this lines contains a quote and the parser tries to parse the remaining
part as code.

What I don't understand, sometimes it is working (code pane just shows the
code with all after the text
"don't" highlighted red, indicating a syntax error). And sometimes it does
not work and  the vm just consumes a
ridiculous amount of memory ~ 1GB.