| Summary: | eclipse crashes while editing PHP file | ||||||
|---|---|---|---|---|---|---|---|
| Product: | z_Archived | Reporter: | Michael Tibben <michael.tibben> | ||||
| Component: | PDT | Assignee: | Roy Ganor <ganoro> | ||||
| Status: | CLOSED FIXED | QA Contact: | |||||
| Severity: | critical | ||||||
| Priority: | P1 | CC: | assaf.almaz, david.groups, gadi, ganoro, joshualross, mholzmann, piter75, thierry.delbushaye, tomas.prochazka | ||||
| Version: | unspecified | ||||||
| Target Milestone: | --- | ||||||
| Hardware: | PC | ||||||
| OS: | Windows XP | ||||||
| Whiteboard: | |||||||
| Attachments: |
|
||||||
|
Description
Michael Tibben
Hi Michael, Can you send the file you tried to edit ? Works fine with files we tested. Hi Roy, the biggest problem with this bug is that it is not easily reproducible. 1. It happens on different files 2. The first symptom is the loosing of syntax coloring after saving of file. Most of the times it is enough to just "add a space char, delete it and save again" to regain the coloring. Sometimes however the coloring is lost and Eclipse gets totally unresponsive with a 100% load on processor. I have to kill Eclipse then and in the log I see similar messages: NPE at org.eclipse.php.internal.core.documentModel.parser.regions.PhpTokenContainer.isInside(Unknown Source). This has started being annoying after I20071209 or I20071210 build. I can confirm it. But I think that problem exist also in 1.0.2 M1 version. Because I have this peoblem with Zend Studio Neon Beta 2 and also with http://downloads.zend.com/pdt/all-in-one/pdt-1.0.2.S20071213-M1_debugger-5.2.12.v20071210-all-in-one-win32.zip The same behavior: lost coloring and totaly freeze Yes, it also exists in 1.0.2 M1 because it's actually a I20071210 build. I can also confirm this bug. Hope there will be a solution soon. I can confirm this bug as well. To add to what others have said, it appears to have something to do with files with classes that are greater than 1000 lines long, although that may depend on the machine eclipse is running on. I have also noticed this happening on classes with a large number of properties and methods. My thought is that it might be related to the outline update? And I have a file that this happens on very frequently, if needed. I have had this problem too, for me it was related to code folding in large files (2000+ lines) and especially problematic with classes. As a short term solution, I disable code folding and pdt hasn't crashed or lost code coloring since. To disable code folding: Window->Preferences... PHP->Editor->Code Folding uncheck "Enable folding" Joshua, I would appriciate if you could send us the file that requently causes this problem. Created attachment 98785 [details]
Log file of crashes while editing php files
Greetings all.
I have been struggling with this same problem, here I am editing a 760 line class file, and eclipse just kept crashing, to the point that it was almost impractical to continue.
I attach this log so that it may help to shed light on this problem, I hope it is of some use.
Thank you for your continued support of this awesome platform which is Eclipse!
Regards,
Marco
fixed for PDT 1.0.3 and head Verified Fixed. Tested under Eclipse SDK Version: 3.4.1 Build id: M20080911-1700 PDT 2.0.0 v20080923-1839 [Kalin Yanev kalin.a@zend.com] |