0

The Flash Builder restart after showing this alert.

Unhandled event loop exception 
unable to create new native thread

Note That i am using Flash Builder 4.6

Thanks

Tahir Alvi
  • 896
  • 2
  • 14
  • 44

1 Answers1

2

Do you have a big project with lot of files and libraries?

In my experience, this is caused by low Java memory.

Option A: Solution is to increase memory for Flash Builder.

Adobe says: Improving Compiler Performance for Large Projects

Edit FlashBuilder.ini lines with Xms and Xmx

-vmargs
-Xms512m
-Xmx1024m
-XX:MaxPermSize=256m
-XX:PermSize=64m

My computer with 8 GB RAM allows max increase for 1g, not more. We have project so big that we were forced to migrate to IntelliJ IDEA with external compiler

Link: Maximum for Java VM is discussed here

Option B: Create new Flash Builder/eclipse workspace and recreate your project. (Or remove .metadata folder from your workspace).

Maybe there are some local changes that corrupted something inside the Flash Builder.

Can you reproduce the same error on another PC?

Option C: Leave Flash Builder and migrate to other software. I suggest IntelliJ IDEA which uses external compiler and that way the compilation process can use more memory (Flash Builder shares its memory with the compiler).

Community
  • 1
  • 1
mizi_sk
  • 1,007
  • 7
  • 33
  • i already edit FlashBuilder.ini -Xms512m -Xmx1024m but same result. – Tahir Alvi May 16 '12 at 17:37
  • @TahirAlvi as I said, we had the project so big, that were not able to work in FB4.6 anymore. Is your project big also? For example we have 38 external SWC libs and 3500+ files. This compiles (mxmlc compiler) in 16 secs on i7-2600K CPU with SSD disk. Compilation of the same project in FB4.6 took nearly 2 min on the same PC. – mizi_sk May 16 '12 at 19:13
  • Thanks man, Now you understand all the situation clearly. My project contain external 13 Library project and 3664 files. – Tahir Alvi May 17 '12 at 04:47