Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 314916

Summary: An internal error occurred during: "Processing Dirty Regions".
Product: z_Archived Reporter: Jeffrey Bolle <jeffreybolle>
Component: PDTAssignee: PHP Core <php.core-inbox>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P1 CC: gadi, ganoro
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: All   
Whiteboard:
Attachments:
Description Flags
Screenshot of error none

Description Jeffrey Bolle CLA 2010-05-28 13:08:20 EDT
Build Identifier: 20100527-0614

A function that calls itself to fill a variable that is then used in an if statements causes the editor to frequently pop up the following errors:

An internal error occurred during: "Processing Dirty Regions".
assertion failed:

An internal error occurred during: "Semantic Highlighting Job".
assertion failed:

Additionally I think it causes the code assist feature to freeze eclipse for some time.

Reproducible: Always

Steps to Reproduce:
1. Create a new PHP file in the PHP Perspective.
2. Paste in the following code:
<?php
class FooClass
{
	public function foo()
	{
		$obj = new BarClass();
				
		if ($obj->getValue() === 1) {
			$obj = $this->foo();
		} elseif ($obj->getValue() === 2) {
			$obj = $this->foo();
		}
		return $obj;
	}
	
}

3. Save the file.
Comment 1 Zhongwei Zhao CLA 2010-05-28 22:48:06 EDT
I think this bug has been fixed already.

IMO,when you put cursor on getValue this bug will happen.
BTW,what pdt version do you use?
Comment 2 Jeffrey Bolle CLA 2010-05-29 04:38:57 EDT
(In reply to comment #1)
> I think this bug has been fixed already.
> 
> IMO,when you put cursor on getValue this bug will happen.
> BTW,what pdt version do you use?

I'm using the latest development build available from the Eclipse website:

Eclipse PHP Helios RC2 (http://www.eclipse.org/downloads/download.php?file=/technology/epp/downloads/release/helios/RC2/eclipse-php-helios-RC2-linux-gtk.tar.gz)

The bug was also present in Eclipse PHP Helios RC1.  I have reproduced this bug on both my Windows (Windows 7 x64) machine at work and my linux (Ubuntu 10.04 x86) machine at home.

You are correct the bug appears as soon as you put the cursor on getValue().  It also appears when you open the file and sometimes when you switch the editor to the file that contains this code.

I hope this helps.

Regards,
Jeffrey Bolle
Comment 3 Zhongwei Zhao CLA 2010-05-29 04:45:27 EDT
Hi

Thanks ,I got it!
Comment 4 Roy Ganor CLA 2010-05-29 05:16:20 EDT
it seems like PDT RC1 == RC2 since the update site was not updated. so probably you'll need to either wait until RC3 or update your Eclipse with the latest nightly build.

Thanks for sharing,
Comment 5 Zhongwei Zhao CLA 2010-05-29 08:16:45 EDT
Hi

fixed in head
Comment 6 Gadi Goldbarg CLA 2010-06-17 08:03:58 EDT
Verified at PDT-2.2.0.v20100616

No more Processing Dirty Regions and Semantic Highlighting Jobs error appear at screen at this version - probably wait for PDT to be released and have available updates for fixing the problem

Closing this issue...
Thanks

Verified by
Teodor Kirkov
teodor.k@zend.com
Comment 7 Patrick CLA 2010-09-23 09:03:50 EDT
Created attachment 179453 [details]
Screenshot of error

I'm completely up 2 date in helios, yet it still happens though this bug is marked as fixed.

Helios build id: 20100617-1415