Pharo 6 vm crashed when pasting a big file
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
2017-03-22 11:04 GMT+01:00 <tdupriez@ens-paris-saclay.fr>:
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.
Quoting Nicolai Hess <nicolaihess@gmail.com>:
2017-03-22 11:04 GMT+01:00 <tdupriez@ens-paris-saclay.fr>:
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
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, tdupriez@ens-paris-saclay.fr wrote:
Quoting Nicolai Hess <nicolaihess@gmail.com>:
2017-03-22 11:04 GMT+01:00 <tdupriez@ens-paris-saclay.fr>:
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
I've attached the crash.dmp and the file the content of which I was trying to paste. (It's the same file than previously, but without the quote that Nicolai identified as problem-inducing) As for the image, I reproduced the crash from a clean image of version 60450 I'm not sure my webmail will allow me to attach my image given its size... What I did on the fresh image: - Created a package Pack - Created a class PackClass in the package Pack - Created a protocol prot in PackClass - Added a method test to protocol prot: test ^ '' - And pasted the content of GnatWithoutQuotes.xsd in between the two quotes in method test's body Please tell me if you need something else or if I am doing something wrong, it's the first time I report a bug. Thomas Quoting Eliot Miranda <eliot.miranda@gmail.com>:
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, tdupriez@ens-paris-saclay.fr wrote:
Quoting Nicolai Hess <nicolaihess@gmail.com>:
2017-03-22 11:04 GMT+01:00 <tdupriez@ens-paris-saclay.fr>:
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
participants (3)
-
Eliot Miranda -
Nicolai Hess -
tdupriez@ens-paris-saclay.fr