Internal error "unable to create new native thread"

Hi all,

The last few days I am plagued with the attached error. It appears every time I try to debug anything after stepping throw a few lines of code.

Servoy Developer and even computer restarts have no affect on this error.

Has anyone else seen this and are there any tips on what might be causing this and how to resolve it?

Thanks for your help in advance.

Can you copy/paste the stack of the error from log?

lvostinar:
Can you copy/paste the stack of the error from log?

Here’s what I found in the Servoy\developer\hs_err_pid7520.log:

#
# A fatal error has been detected by the Java Runtime Environment:
#
#  EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x6d0b71e0, pid=7520, tid=8112
#
# JRE version: 6.0_29-b11
# Java VM: Java HotSpot(TM) Client VM (20.4-b02 mixed mode windows-x86 )
# Problematic frame:
# C  [awt.dll+0xb71e0]
#
# If you would like to submit a bug report, please visit:
#   http://java.sun.com/webapps/bugreport/crash.jsp
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#

---------------  T H R E A D  ---------------

Current thread (0x05688800):  JavaThread "AWT-Windows" daemon [_thread_in_native, id=8112, stack(0x077f0000,0x078f0000)]

siginfo: ExceptionCode=0xc0000005, reading address 0x00000000

Registers:
EAX=0x078efb28, EBX=0x05675ce8, ECX=0x000000ba, EDX=0x000000c0
ESP=0x078efb10, EBP=0x00000000, ESI=0x00000000, EDI=0x000000c0
EIP=0x6d0b71e0, EFLAGS=0x00010206

Top of Stack: (sp=0x078efb10)
0x078efb10:   078efb28 00001000 00000000 07b3c278
0x078efb20:   00000001 078efb18 078efb1c 6d0aebbd
0x078efb30:   00000000 00000000 07b3c278 6d0aec8a
0x078efb40:   00000000 07b3c278 00000001 6d0aed8e
0x078efb50:   07b3c278 6d063d02 02648778 00000000
0x078efb60:   6d0b0cf0 00000001 6d104f60 6d104940
0x078efb70:   02648778 6d0b20e2 6d104f58 6d0b22c9
0x078efb80:   6d09ab33 00000000 764b1450 00001fb0 

Instructions: (pc=0x6d0b71e0)
0x6d0b71c0:   d8 56 8b b3 10 a0 00 00 1b c0 57 25 00 f0 ff ff
0x6d0b71d0:   05 00 20 00 00 50 c1 e2 05 8d 44 24 14 50 8b fa
0x6d0b71e0:   8b 16 57 c1 e1 05 51 56 ff 52 2c 85 c0 0f 8c 93
0x6d0b71f0:   00 00 00 8b 53 04 8b cf 8b 7c 24 10 8b c1 c1 e9 


Register to memory mapping:

EAX=0x078efb28 is pointing into the stack for thread: 0x05688800
EBX=0x05675ce8 is an unknown value
ECX=0x000000ba is an unknown value
EDX=0x000000c0 is an unknown value
ESP=0x078efb10 is pointing into the stack for thread: 0x05688800
EBP=0x00000000 is an unknown value
ESI=0x00000000 is an unknown value
EDI=0x000000c0 is an unknown value


Stack: [0x077f0000,0x078f0000],  sp=0x078efb10,  free space=1022k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
C  [awt.dll+0xb71e0]  D3DVertexCacher::Render+0x50

[error occurred during error reporting (printing native stack), id 0xc0000005]

Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
j  sun.awt.windows.WToolkit.eventLoop()V+0
j  sun.awt.windows.WToolkit.run()V+52
j  java.lang.Thread.run()V+11
v  ~StubRoutines::call_stub

---------------  P R O C E S S  ---------------

Java Threads: ( => current thread )
  0x06bfb400 JavaThread "Thread-2" daemon [_thread_in_native, id=3868, stack(0x064d0000,0x065d0000)]
  0x06bf3c00 JavaThread "http-8080-1" daemon [_thread_blocked, id=4588, stack(0x070b0000,0x071b0000)]
  0x07fc2800 JavaThread "Timer-8" [_thread_blocked, id=7612, stack(0x69e50000,0x69f50000)]
  0x06bf7c00 JavaThread "Script Debug accept thread" [_thread_in_native, id=4180, stack(0x09780000,0x09880000)]
  0x07fc4000 JavaThread "pool-3-thread-1" [_thread_blocked, id=8132, stack(0x71c10000,0x71d10000)]
  0x07fc3800 JavaThread "TimerQueue" daemon [_thread_blocked, id=5804, stack(0x71b10000,0x71c10000)]
  0x07fc3400 JavaThread "AWT-EventQueue-0" [_thread_blocked, id=1996, stack(0x70c80000,0x70d80000)]
  0x07fc1400 JavaThread "AWT-Shutdown" [_thread_blocked, id=2672, stack(0x70b40000,0x70c40000)]
  0x06bf8000 JavaThread "Timer-0" daemon [_thread_blocked, id=3328, stack(0x0c350000,0x0c450000)]
  0x06bf9000 JavaThread "http-8080-Acceptor-0" daemon [_thread_blocked, id=7636, stack(0x0c150000,0x0c250000)]
  0x06bf5400 JavaThread "PingScanner" daemon [_thread_blocked, id=4332, stack(0x0a140000,0x0a240000)]
  0x06bf5000 JavaThread "MessageScheduler" daemon [_thread_blocked, id=1920, stack(0x0a000000,0x0a100000)]
  0x06bf4800 JavaThread "MessagePreHandler" daemon [_thread_blocked, id=6824, stack(0x09ec0000,0x09fc0000)]
=>0x05688800 JavaThread "AWT-Windows" daemon [_thread_in_native, id=8112, stack(0x077f0000,0x078f0000)]
  0x06a90c00 JavaThread "Java2D Disposer" daemon [_thread_blocked, id=5928, stack(0x07550000,0x07650000)]
  0x0267a000 JavaThread "Low Memory Detector" daemon [_thread_blocked, id=7832, stack(0x05290000,0x05390000)]
  0x02675c00 JavaThread "C1 CompilerThread0" daemon [_thread_blocked, id=7200, stack(0x05150000,0x05250000)]
  0x02672800 JavaThread "Attach Listener" daemon [_thread_blocked, id=7648, stack(0x05010000,0x05110000)]
  0x0266f800 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=6916, stack(0x04f10000,0x05010000)]
  0x02647000 JavaThread "Finalizer" daemon [_thread_blocked, id=7808, stack(0x04e10000,0x04f10000)]
  0x02642400 JavaThread "Reference Handler" daemon [_thread_blocked, id=7752, stack(0x04d10000,0x04e10000)]
  0x01ef9c00 JavaThread "main" [_thread_blocked, id=5448, stack(0x00090000,0x00190000)]

Other Threads:
  0x0263dc00 VMThread [stack: 0x04c10000,0x04d10000] [id=4812]
  0x0268c000 WatcherThread [stack: 0x053d0000,0x054d0000] [id=5356]

VM state:not at safepoint (normal execution)

VM Mutex/Monitor currently owned by a thread: None

Heap
 def new generation   total 78784K, used 10428K [0x10050000, 0x155c0000, 0x255a0000)
  eden space 70080K,  11% used [0x10050000, 0x108608e8, 0x144c0000)
  from space 8704K,  24% used [0x14d40000, 0x14f5e8b8, 0x155c0000)
  to   space 8704K,   0% used [0x144c0000, 0x144c0000, 0x14d40000)
 tenured generation   total 174784K, used 69042K [0x255a0000, 0x30050000, 0x50050000)
   the space 174784K,  39% used [0x255a0000, 0x2990cb28, 0x2990cc00, 0x30050000)
 compacting perm gen  total 103680K, used 103669K [0x50050000, 0x56590000, 0x68050000)
   the space 103680K,  99% used [0x50050000, 0x5658d4e0, 0x5658d600, 0x56590000)
No shared spaces configured.

Code Cache  [0x02690000, 0x03238000, 0x04690000)
 total_blobs=5909 nmethods=5616 adapters=222 free_code_cache=21355200 largest_free_block=384

Dynamic libraries:
0x00400000 - 0x0040d000 	C:\Servoy\developer\servoy.exe
0x774b0000 - 0x77630000 	C:\Windows\SysWOW64\ntdll.dll
0x764a0000 - 0x765b0000 	C:\Windows\syswow64\kernel32.dll
0x76a10000 - 0x76a56000 	C:\Windows\syswow64\KERNELBASE.dll
0x761e0000 - 0x762e0000 	C:\Windows\syswow64\USER32.dll
0x765c0000 - 0x76650000 	C:\Windows\syswow64\GDI32.dll
0x77480000 - 0x7748a000 	C:\Windows\syswow64\LPK.dll
0x75de0000 - 0x75e7d000 	C:\Windows\syswow64\USP10.dll
0x76ae0000 - 0x76b8c000 	C:\Windows\syswow64\msvcrt.dll
0x76820000 - 0x768c0000 	C:\Windows\syswow64\ADVAPI32.dll
0x761b0000 - 0x761c9000 	C:\Windows\SysWOW64\sechost.dll
0x762e0000 - 0x763d0000 	C:\Windows\syswow64\RPCRT4.dll
0x74ba0000 - 0x74c00000 	C:\Windows\syswow64\SspiCli.dll
0x74b90000 - 0x74b9c000 	C:\Windows\syswow64\CRYPTBASE.dll
0x735a0000 - 0x73624000 	C:\Windows\WinSxS\x86_microsoft.windows.common-controls_6595b64144ccf1df_5.82.7601.17514_none_ec83dffa859149af\COMCTL32.dll
0x76b90000 - 0x76bf0000 	C:\Windows\system32\IMM32.DLL
0x74c50000 - 0x74d1c000 	C:\Windows\syswow64\MSCTF.dll
0x74190000 - 0x741c2000 	C:\Windows\SysWOW64\nvinit.dll
0x10000000 - 0x1004d000 	C:\Windows\SysWOW64\guard32.dll
0x74180000 - 0x74189000 	C:\Windows\system32\VERSION.dll
0x74170000 - 0x74177000 	C:\Windows\system32\fltlib.dll
0x72000000 - 0x7200d000 	C:\Servoy\developer\plugins\org.eclipse.equinox.launcher.win32.win32.x86_1.1.2.R36x_v20101222\eclipse_1312.dll
0x6d7f0000 - 0x6da9f000 	C:\Program Files (x86)\Java\jre6\bin\client\jvm.dll
0x72290000 - 0x722c2000 	C:\Windows\system32\WINMM.dll
0x7c340000 - 0x7c396000 	C:\Windows\system32\MSVCR71.dll
0x73640000 - 0x7368c000 	C:\Windows\system32\apphelp.dll
0x6d7a0000 - 0x6d7ac000 	C:\Program Files (x86)\Java\jre6\bin\verify.dll
0x6d320000 - 0x6d33f000 	C:\Program Files (x86)\Java\jre6\bin\java.dll
0x6d7e0000 - 0x6d7ef000 	C:\Program Files (x86)\Java\jre6\bin\zip.dll
0x73e40000 - 0x73e56000 	C:\Windows\system32\CRYPTSP.dll
0x73e00000 - 0x73e3b000 	C:\Windows\system32\rsaenh.dll
0x74150000 - 0x74167000 	C:\Windows\system32\USERENV.dll
0x74140000 - 0x7414b000 	C:\Windows\system32\profapi.dll
0x6d600000 - 0x6d613000 	C:\Program Files (x86)\Java\jre6\bin\net.dll
0x76460000 - 0x76495000 	C:\Windows\syswow64\WS2_32.dll
0x74d20000 - 0x74d26000 	C:\Windows\syswow64\NSI.dll
0x73910000 - 0x7394c000 	C:\Windows\system32\mswsock.dll
0x724f0000 - 0x724f6000 	C:\Windows\System32\wship6.dll
0x720e0000 - 0x720f0000 	C:\Windows\system32\NLAapi.dll
0x720d0000 - 0x720e0000 	C:\Windows\system32\napinsp.dll
0x720b0000 - 0x720c2000 	C:\Windows\system32\pnrpnsp.dll
0x728b0000 - 0x728f4000 	C:\Windows\system32\DNSAPI.dll
0x720a0000 - 0x720a8000 	C:\Windows\System32\winrnr.dll
0x72090000 - 0x7209d000 	C:\Windows\system32\wshbth.dll
0x72160000 - 0x72187000 	C:\Program Files (x86)\Common Files\Microsoft Shared\Windows Live\WLIDNSP.DLL
0x765b0000 - 0x765b5000 	C:\Windows\syswow64\PSAPI.DLL
0x75fa0000 - 0x75ff7000 	C:\Windows\syswow64\SHLWAPI.dll
0x73900000 - 0x73905000 	C:\Windows\System32\wshtcpip.dll
0x72910000 - 0x7292c000 	C:\Windows\system32\IPHLPAPI.DLL
0x72900000 - 0x72907000 	C:\Windows\system32\WINNSI.DLL
0x724d0000 - 0x724d6000 	C:\Windows\system32\rasadhlp.dll
0x72120000 - 0x72158000 	C:\Windows\System32\fwpuclnt.dll
0x71760000 - 0x717e0000 	C:\Windows\system32\uxtheme.dll
0x05940000 - 0x05978000 	C:\Program Files\WIDCOMM\Bluetooth Software\SysWOW64\BtMmHook.dll
0x74ef0000 - 0x75b3a000 	C:\Windows\syswow64\SHELL32.dll
0x75ba0000 - 0x75cfc000 	C:\Windows\syswow64\ole32.dll
0x75d50000 - 0x75ddf000 	C:\Windows\syswow64\OLEAUT32.dll
0x763d0000 - 0x76453000 	C:\Windows\syswow64\CLBCatQ.DLL
0x6d620000 - 0x6d629000 	C:\Program Files (x86)\Java\jre6\bin\nio.dll
0x06f90000 - 0x06ff3000 	C:\Servoy\developer\configuration\org.eclipse.osgi\bundles\188\1\.cp\swt-win32-3659.dll
0x76a60000 - 0x76adb000 	C:\Windows\syswow64\comdlg32.dll
0x73ec0000 - 0x7405e000 	C:\Windows\WinSxS\x86_microsoft.windows.common-controls_6595b64144ccf1df_6.0.7601.17514_none_41e6975e2bd6f2b2\COMCTL32.dll
0x75e80000 - 0x75f9a000 	C:\Windows\syswow64\WININET.dll
0x761d0000 - 0x761d3000 	C:\Windows\syswow64\Normaliz.dll
0x74d30000 - 0x74ee8000 	C:\Windows\syswow64\iertutil.dll
0x76000000 - 0x76110000 	C:\Windows\syswow64\urlmon.dll
0x71720000 - 0x71733000 	C:\Windows\system32\dwmapi.dll
0x01f40000 - 0x01f5d000 	C:\Servoy\developer\configuration\org.eclipse.osgi\bundles\188\1\.cp\swt-gdip-win32-3659.dll
0x722d0000 - 0x72460000 	C:\Windows\WinSxS\x86_microsoft.windows.gdiplus_6595b64144ccf1df_1.1.7601.17514_none_72d18a4386696c80\gdiplus.dll
0x71ee0000 - 0x71fdb000 	C:\Windows\system32\WindowsCodecs.dll
0x01ee0000 - 0x01eee000 	C:\Servoy\developer\configuration\org.eclipse.osgi\bundles\51\1\.cp\os\win32\x86\localfile_1_0_0.dll
0x6d000000 - 0x6d14c000 	C:\Program Files (x86)\Java\jre6\bin\awt.dll
0x73e60000 - 0x73eb1000 	C:\Windows\system32\WINSPOOL.DRV
0x72470000 - 0x724ac000 	C:\Windows\system32\oleacc.dll
0x72890000 - 0x728a2000 	C:\Windows\system32\dhcpcsvc.DLL
0x72880000 - 0x7288d000 	C:\Windows\system32\dhcpcsvc6.DLL
0x6fb60000 - 0x6fc55000 	C:\Windows\system32\propsys.dll
0x0a4b0000 - 0x0a61f000 	C:\Windows\system32\explorerframe.dll
0x6f690000 - 0x6f6bf000 	C:\Windows\system32\DUser.dll
0x6b830000 - 0x6b8e2000 	C:\Windows\system32\DUI70.dll
0x73df0000 - 0x73dfe000 	C:\Windows\system32\RpcRtRemote.dll
0x6d550000 - 0x6d559000 	C:\Program Files (x86)\Java\jre6\bin\management.dll
0x6d230000 - 0x6d27f000 	C:\Program Files (x86)\Java\jre6\bin\fontmanager.dll
0x0c650000 - 0x0c813000 	C:\Windows\system32\d3d9.dll
0x71a10000 - 0x71a16000 	C:\Windows\system32\d3d8thk.dll
0x0c8e0000 - 0x0d286000 	C:\Windows\system32\nvd3dum.dll
0x0c820000 - 0x0c8b2000 	C:\Windows\system32\igdumdx32.dll
0x0d5f0000 - 0x0db6b000 	C:\Windows\system32\igdumd32.dll
0x6fb30000 - 0x6fb55000 	C:\Windows\system32\PowrProf.dll
0x76650000 - 0x767ed000 	C:\Windows\syswow64\SETUPAPI.dll
0x74c20000 - 0x74c47000 	C:\Windows\syswow64\CFGMGR32.dll
0x74c00000 - 0x74c12000 	C:\Windows\syswow64\DEVOBJ.dll
0x71910000 - 0x7193e000 	C:\Windows\system32\mlang.dll
0x74060000 - 0x74065000 	C:\Windows\system32\msimg32.dll
0x6a720000 - 0x6b065000 	C:\Windows\SysWOW64\ieframe.dll
0x72030000 - 0x7208f000 	C:\Windows\system32\SXS.DLL
0x74590000 - 0x74598000 	C:\Windows\system32\Secur32.dll
0x6b8f0000 - 0x6c4aa000 	C:\Windows\SysWOW64\mshtml.dll
0x71fe0000 - 0x71feb000 	C:\Windows\system32\msimtf.dll
0x6f660000 - 0x6f68b000 	C:\Windows\system32\msls31.dll
0x6f570000 - 0x6f62a000 	C:\Windows\system32\d2d1.dll
0x6c700000 - 0x6c80a000 	C:\Windows\system32\DWrite.dll
0x6c810000 - 0x6c893000 	C:\Windows\system32\dxgi.dll
0x767f0000 - 0x7681d000 	C:\Windows\syswow64\WINTRUST.dll
0x768c0000 - 0x769dd000 	C:\Windows\syswow64\CRYPT32.dll
0x761a0000 - 0x761ac000 	C:\Windows\syswow64\MSASN1.dll
0x6f520000 - 0x6f54c000 	C:\Windows\system32\d3d10_1.dll
0x0fa20000 - 0x0fa5a000 	C:\Windows\system32\d3d10_1core.dll
0x6c8a0000 - 0x6c9cc000 	C:\Windows\system32\D3D10Warp.dll
0x6b7f0000 - 0x6b829000 	C:\Windows\system32\MMDevAPI.DLL
0x6cad0000 - 0x6cb00000 	C:\Windows\system32\wdmaud.drv
0x71740000 - 0x71744000 	C:\Windows\system32\ksuser.dll
0x6f560000 - 0x6f567000 	C:\Windows\system32\AVRT.dll
0x6cb00000 - 0x6cb36000 	C:\Windows\system32\AUDIOSES.DLL
0x6cf90000 - 0x6cfe2000 	C:\Windows\system32\RASAPI32.dll
0x719f0000 - 0x71a05000 	C:\Windows\system32\rasman.dll
0x71750000 - 0x7175d000 	C:\Windows\system32\rtutils.dll
0x0ffd0000 - 0x0ffd6000 	C:\Windows\system32\sensapi.dll
0x0fff0000 - 0x0fff8000 	C:\Windows\system32\msacm32.drv
0x6d1d0000 - 0x6d1e4000 	C:\Windows\system32\MSACM32.dll
0x6d280000 - 0x6d2a5000 	C:\Windows\system32\peerdist.dll
0x6d2b0000 - 0x6d2cb000 	C:\Windows\system32\AUTHZ.dll
0x6cff0000 - 0x6cff7000 	C:\Windows\system32\midimap.dll
0x6e760000 - 0x6e91b000 	C:\Windows\SysWOW64\jscript9.dll
0x6eb20000 - 0x6eb53000 	C:\Windows\system32\windowscodecsext.dll
0x6eb60000 - 0x6ebd9000 	C:\Windows\system32\mscms.dll
0x6ebe0000 - 0x6ec18000 	C:\Windows\system32\icm32.dll
0x6f170000 - 0x6f182000 	C:\Windows\SysWOW64\l3codeca.acm

VM Arguments:
jvm_args: -Xms256m -Xmx1024m -XX:MaxPermSize=384M 
java_command: <unknown>
Launcher Type: generic

Environment Variables:
PATH=C:/Program Files (x86)/Java/jre6/bin/client;C:/Program Files (x86)/Java/jre6/bin;C:/Program Files (x86)/Java/jre6/lib/i386;C:\Program Files\Common Files\Microsoft Shared\Windows Live;C:\Program Files (x86)\Common Files\Microsoft Shared\Windows Live;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\WIDCOMM\Bluetooth Software\;C:\Program Files\WIDCOMM\Bluetooth Software\syswow64;C:\Program Files\Intel\WiFi\bin\;C:\Program Files\Common Files\Intel\WirelessCommon\;c:\Program Files\Intel\DMIX;C:\Program Files (x86)\NTRU Cryptosystems\NTRU TCG Software Stack\bin\;C:\Program Files\NTRU Cryptosystems\NTRU TCG Software Stack\bin\;C:\Program Files (x86)\Intel\Services\IPT\;C:\Program Files\Dell\Dell Data Protection\Access\Advanced\Wave\Gemalto\Access Client\v5\;C:\Program Files (x86)\Windows Live\Shared;C:\Program Files (x86)\Common Files\Roxio Shared\DLLShared\;C:\Program Files (x86)\Common Files\Roxio Shared\OEM\DLLShared\;C:\Program Files (x86)\Common Files\Roxio Shared\OEM\DLLShared\;C:\Program Files (x86)\Common Files\Roxio Shared\OEM\12.0\DLLShared\;C:\Program Files (x86)\Roxio\OEM\AudioCore\;C:\Program Files (x86)\Microsoft SQL Server\100\Tools\Binn\;C:\Program Files\Microsoft SQL Server\100\Tools\Binn\;C:\Program Files\Microsoft SQL Server\100\DTS\Binn\;C:\Program Files (x86)\Microsoft SQL Server\100\Tools\Binn\VSShell\Common7\IDE\;C:\Program Files (x86)\Microsoft Visual Studio 9.0\Common7\IDE\PrivateAssemblies\;C:\Program Files (x86)\Microsoft SQL Server\100\DTS\Binn\;C:\Program Files (x86)\Java\jre6\bin;C:\Program Files\TortoiseSVN\bin;C:\Program Files (x86)\IDM Computer Solutions\UltraEdit\;C:\Servoy\developer;
USERNAME=rossent
OS=Windows_NT
PROCESSOR_IDENTIFIER=Intel64 Family 6 Model 42 Stepping 7, GenuineIntel



---------------  S Y S T E M  ---------------

OS: Windows 7 , 64 bit Build 7601 Service Pack 1

CPU:total 8 (4 cores per cpu, 2 threads per core) family 6 model 42 stepping 7, cmov, cx8, fxsr, mmx, sse, sse2, sse3, ssse3, sse4.1, sse4.2, popcnt, ht

Memory: 4k page, physical 8266648k(4758152k free), swap 16531448k(12330684k free)

vm_info: Java HotSpot(TM) Client VM (20.4-b02) for windows-x86 JRE (1.6.0_29-b11), built on Oct  3 2011 01:01:08 by "java_re" with MS VC++ 7.1 (VS2003)

time: Tue Oct 25 13:57:43 2011
elapsed time: 6201 seconds

This is in the Servoy\application_server\servoy_log.txt :

2011-10-24 16:12:59,378 ERROR [AWT-EventQueue-0] com.servoy.j2db.Za.Zo - java.lang.OutOfMemoryError: unable to create new native thread
com.servoy.j2db.Za.Zo - java.lang.OutOfMemoryError: unable to create new native thread

Do you have enough memory allocated? Does it happen with other java version ?

lvostinar:

com.servoy.j2db.Za.Zo - java.lang.OutOfMemoryError: unable to create new native thread

Do you have enough memory allocated? Does it happen with other java version ?

As you can see from the first log, the Java VM settings are:

VM Arguments:
jvm_args: -Xms256m -Xmx1024m -XX:MaxPermSize=384M

The same happens if I use:

VM Arguments:
jvm_args: -Xms256m -Xmx1152m -XX:MaxPermSize=256M

I just updated to Java 6.29 and will see if there is any difference. Other developers running the same source with identical settings are not getting this error.

After updating to Java 6.29 the error does not appear, however the debugged client “locks up” and even the repaint is not happening (the whole Smart Client window is black)

Here is the dump stack from the server:

Current time: Tue Oct 25 14:40:29 EEST 2011

Server Information
Servoy version 6.0.1 -build 1219
Port used by RMI Registry: 1099
Repository version 40

Current time: Tue Oct 25 14:40:29 EEST 2011

Uptime:  42 minutes 45 seconds

JDK Information
java.vm.name=Java HotSpot(TM) Client VM
java.version=1.6.0_29
java.vm.info=mixed mode
java.vm.vendor=Sun Microsystems Inc.

Operating System Information
os.name=Windows 7
os.version=6.1
os.arch=x86

System Information
Heap Space Memory: allocated=762728K, used=342861K, max=1013632K
Non-Heap Space Memory: allocated=127136K, used=126945K, max=425984K

Thread: http-8080-6, state: WAITING, total cpu time: 0.0ms, total user time: 0.0ms
  java.lang.Object.wait(Native Method)
  java.lang.Object.wait(Object.java:485)
  org.apache.tomcat.util.net.JIoEndpoint$Worker.await(JIoEndpoint.java:458)
  org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:484)
  java.lang.Thread.run(Unknown Source)

Thread: http-8080-5, state: WAITING, total cpu time: 0.0ms, total user time: 0.0ms
  java.lang.Object.wait(Native Method)
  java.lang.Object.wait(Object.java:485)
  org.apache.tomcat.util.net.JIoEndpoint$Worker.await(JIoEndpoint.java:458)
  org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:484)
  java.lang.Thread.run(Unknown Source)

Thread: http-8080-4, state: WAITING, total cpu time: 0.0ms, total user time: 0.0ms
  java.lang.Object.wait(Native Method)
  java.lang.Object.wait(Object.java:485)
  org.apache.tomcat.util.net.JIoEndpoint$Worker.await(JIoEndpoint.java:458)
  org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:484)
  java.lang.Thread.run(Unknown Source)

Thread: http-8080-3, state: WAITING, total cpu time: 0.0ms, total user time: 0.0ms
  java.lang.Object.wait(Native Method)
  java.lang.Object.wait(Object.java:485)
  org.apache.tomcat.util.net.JIoEndpoint$Worker.await(JIoEndpoint.java:458)
  org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:484)
  java.lang.Thread.run(Unknown Source)

Thread: http-8080-2, state: WAITING, total cpu time: 0.0ms, total user time: 0.0ms
  java.lang.Object.wait(Native Method)
  java.lang.Object.wait(Object.java:485)
  org.apache.tomcat.util.net.JIoEndpoint$Worker.await(JIoEndpoint.java:458)
  org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:484)
  java.lang.Thread.run(Unknown Source)

Thread: scheduler_QuartzSchedulerThread, state: TIMED_WAITING, total cpu time: 0.0ms, total user time: 0.0ms
  java.lang.Object.wait(Native Method)
  org.quartz.core.QuartzSchedulerThread.run(QuartzSchedulerThread.java:245)

Thread: scheduler_QuartzSchedulerThread, state: TIMED_WAITING, total cpu time: 0.0ms, total user time: 0.0ms
  java.lang.Object.wait(Native Method)
  org.quartz.core.QuartzSchedulerThread.run(QuartzSchedulerThread.java:245)

Thread: Worker-25, state: TIMED_WAITING, total cpu time: 46.8003ms, total user time: 46.8003ms
  java.lang.Object.wait(Native Method)
  org.eclipse.core.internal.jobs.WorkerPool.sleep(WorkerPool.java:185)
  org.eclipse.core.internal.jobs.WorkerPool.startJob(WorkerPool.java:217)
  org.eclipse.core.internal.jobs.Worker.run(Worker.java:50)

Thread: org.eclipse.dltk.internal.ui.text.ScriptReconciler, state: TIMED_WAITING, total cpu time: 842.4054ms, total user time: 842.4054ms
  java.lang.Object.wait(Native Method)
  org.eclipse.jface.text.reconciler.AbstractReconciler$BackgroundThread.run(AbstractReconciler.java:179)

Thread: Timer-4, state: WAITING, total cpu time: 0.0ms, total user time: 0.0ms
  java.lang.Object.wait(Native Method)
  java.lang.Object.wait(Object.java:485)
  java.util.TimerThread.mainLoop(Unknown Source)
  java.util.TimerThread.run(Unknown Source)

Thread: Timer-3, state: WAITING, total cpu time: 0.0ms, total user time: 0.0ms
  java.lang.Object.wait(Native Method)
  java.lang.Object.wait(Object.java:485)
  java.util.TimerThread.mainLoop(Unknown Source)
  java.util.TimerThread.run(Unknown Source)

Thread: Worker-24, state: TIMED_WAITING, total cpu time: 62.4004ms, total user time: 46.8003ms
  java.lang.Object.wait(Native Method)
  org.eclipse.core.internal.jobs.WorkerPool.sleep(WorkerPool.java:185)
  org.eclipse.core.internal.jobs.WorkerPool.startJob(WorkerPool.java:217)
  org.eclipse.core.internal.jobs.Worker.run(Worker.java:50)

Thread: Worker-23, state: WAITING, total cpu time: 62.4004ms, total user time: 62.4004ms
  java.lang.Object.wait(Native Method)
  java.lang.Object.wait(Object.java:485)
  org.eclipse.dltk.dbgp.internal.packets.DbgpPacketReceiver$ResponcePacketWaiter.waitPacket(DbgpPacketReceiver.java:52)
  org.eclipse.dltk.dbgp.internal.packets.DbgpPacketReceiver.getResponsePacket(DbgpPacketReceiver.java:166)
  org.eclipse.dltk.dbgp.internal.DbgpDebugingEngine.getResponsePacket(DbgpDebugingEngine.java:94)
  org.eclipse.dltk.dbgp.internal.commands.DbgpDebuggingEngineCommunicator.receiveResponse(DbgpDebuggingEngineCommunicator.java:44)
  org.eclipse.dltk.dbgp.internal.commands.DbgpDebuggingEngineCommunicator.communicate(DbgpDebuggingEngineCommunicator.java:69)
  org.eclipse.dltk.dbgp.DbgpBaseCommands.communicate(DbgpBaseCommands.java:43)
  org.eclipse.dltk.dbgp.internal.commands.DbgpContinuationCommands.execCommand(DbgpContinuationCommands.java:35)
  org.eclipse.dltk.dbgp.internal.commands.DbgpContinuationCommands.run(DbgpContinuationCommands.java:43)
  org.eclipse.dltk.dbgp.internal.commands.DbgpCoreCommands.run(DbgpCoreCommands.java:137)
  org.eclipse.dltk.internal.debug.core.model.operations.DbgpResumeOperation.process(DbgpResumeOperation.java:23)
  org.eclipse.dltk.internal.debug.core.model.operations.DbgpOperation$1.run(DbgpOperation.java:64)
  org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)

Thread: Worker-21, state: TIMED_WAITING, total cpu time: 15.6001ms, total user time: 15.6001ms
  java.lang.Object.wait(Native Method)
  org.eclipse.core.internal.jobs.WorkerPool.sleep(WorkerPool.java:185)
  org.eclipse.core.internal.jobs.WorkerPool.startJob(WorkerPool.java:217)
  org.eclipse.core.internal.jobs.Worker.run(Worker.java:50)

Thread: pool-1-thread-2, state: WAITING, total cpu time: 0.0ms, total user time: 0.0ms
  sun.misc.Unsafe.park(Native Method)
  java.util.concurrent.locks.LockSupport.park(Unknown Source)
  java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(Unknown Source)
  java.util.concurrent.LinkedBlockingQueue.take(Unknown Source)
  java.util.concurrent.ThreadPoolExecutor.getTask(Unknown Source)
  java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
  java.lang.Thread.run(Unknown Source)

Thread: pool-1-thread-1, state: WAITING, total cpu time: 0.0ms, total user time: 0.0ms
  sun.misc.Unsafe.park(Native Method)
  java.util.concurrent.locks.LockSupport.park(Unknown Source)
  java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(Unknown Source)
  java.util.concurrent.LinkedBlockingQueue.take(Unknown Source)
  java.util.concurrent.ThreadPoolExecutor.getTask(Unknown Source)
  java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
  java.lang.Thread.run(Unknown Source)

Thread: Lookup ValueList Timer, state: WAITING, total cpu time: 0.0ms, total user time: 0.0ms
  java.lang.Object.wait(Native Method)
  java.lang.Object.wait(Object.java:485)
  java.util.TimerThread.mainLoop(Unknown Source)
  java.util.TimerThread.run(Unknown Source)

Thread: pool-3-thread-2, state: WAITING, total cpu time: 46.8003ms, total user time: 46.8003ms
  sun.misc.Unsafe.park(Native Method)
  java.util.concurrent.locks.LockSupport.park(Unknown Source)
  java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(Unknown Source)
  java.util.concurrent.LinkedBlockingQueue.take(Unknown Source)
  java.util.concurrent.ThreadPoolExecutor.getTask(Unknown Source)
  java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
  java.lang.Thread.run(Unknown Source)

Thread: Timer-1, state: WAITING, total cpu time: 0.0ms, total user time: 0.0ms
  java.lang.Object.wait(Native Method)
  java.lang.Object.wait(Object.java:485)
  java.util.TimerThread.mainLoop(Unknown Source)
  java.util.TimerThread.run(Unknown Source)

Thread: http-8080-1, state: RUNNABLE, total cpu time: 156.001ms, total user time: 156.001ms
  sun.management.ThreadImpl.getThreadInfo1(Native Method)
  sun.management.ThreadImpl.getThreadInfo(Unknown Source)
  sun.management.ThreadImpl.getThreadInfo(Unknown Source)
  com.servoy.j2db.server.servlets.ConfigServlet.Zt(ConfigServlet.java:532)
  com.servoy.j2db.server.servlets.ConfigServlet.service(ConfigServlet.java:2692)
  javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
  org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
  org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
  org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
  org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
  org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
  org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
  org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:554)
  org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
  org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
  org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859)
  org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
  org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
  java.lang.Thread.run(Unknown Source)

Thread: FormCache Monitor, state: TIMED_WAITING, total cpu time: 0.0ms, total user time: 0.0ms
  java.lang.Thread.sleep(Native Method)
  com.servoy.j2db.server.headlessclient.dataui.TemplateGenerator$FormCache$1.run(TemplateGenerator.java:126)
  java.lang.Thread.run(Unknown Source)

Thread: DBGP - Stream manager, state: WAITING, total cpu time: 0.0ms, total user time: 0.0ms
  java.lang.Object.wait(Native Method)
  java.lang.Object.wait(Object.java:485)
  org.eclipse.dltk.dbgp.internal.packets.DbgpPacketReceiver$PacketWaiter.waitPacket(DbgpPacketReceiver.java:91)
  org.eclipse.dltk.dbgp.internal.packets.DbgpPacketReceiver.getStreamPacket(DbgpPacketReceiver.java:161)
  org.eclipse.dltk.dbgp.internal.DbgpDebugingEngine.getStreamPacket(DbgpDebugingEngine.java:84)
  org.eclipse.dltk.dbgp.internal.managers.DbgpStreamManager.workingCycle(DbgpStreamManager.java:45)
  org.eclipse.dltk.dbgp.internal.DbgpWorkingThread$1.run(DbgpWorkingThread.java:29)
  java.lang.Thread.run(Unknown Source)

Thread: DBGP - Notification Manager, state: WAITING, total cpu time: 0.0ms, total user time: 0.0ms
  java.lang.Object.wait(Native Method)
  java.lang.Object.wait(Object.java:485)
  org.eclipse.dltk.dbgp.internal.packets.DbgpPacketReceiver$PacketWaiter.waitPacket(DbgpPacketReceiver.java:91)
  org.eclipse.dltk.dbgp.internal.packets.DbgpPacketReceiver.getNotifyPacket(DbgpPacketReceiver.java:157)
  org.eclipse.dltk.dbgp.internal.DbgpDebugingEngine.getNotifyPacket(DbgpDebugingEngine.java:89)
  org.eclipse.dltk.dbgp.internal.managers.DbgpNotificationManager.workingCycle(DbgpNotificationManager.java:37)
  org.eclipse.dltk.dbgp.internal.DbgpWorkingThread$1.run(DbgpWorkingThread.java:29)
  java.lang.Thread.run(Unknown Source)

Thread: Debug command reader, state: RUNNABLE, total cpu time: 78.0005ms, total user time: 62.4004ms
  java.net.SocketInputStream.socketRead0(Native Method)
  java.net.SocketInputStream.read(Unknown Source)
  java.net.SocketInputStream.read(Unknown Source)
  java.io.FilterInputStream.read(Unknown Source)
  org.eclipse.dltk.rhino.dbgp.DBGPDebugger.run(DBGPDebugger.java:505)

Thread: DBGP - Packet receiver, state: RUNNABLE, total cpu time: 249.6016ms, total user time: 249.6016ms
  java.net.SocketInputStream.socketRead0(Native Method)
  java.net.SocketInputStream.read(Unknown Source)
  java.io.BufferedInputStream.fill(Unknown Source)
  java.io.BufferedInputStream.read(Unknown Source)
  org.eclipse.dltk.dbgp.internal.DbgpRawPacket.readPacketSize(DbgpRawPacket.java:28)
  org.eclipse.dltk.dbgp.internal.DbgpRawPacket.readPacket(DbgpRawPacket.java:75)
  org.eclipse.dltk.dbgp.internal.packets.DbgpPacketReceiver.workingCycle(DbgpPacketReceiver.java:123)
  org.eclipse.dltk.dbgp.internal.DbgpWorkingThread$1.run(DbgpWorkingThread.java:29)
  java.lang.Thread.run(Unknown Source)

Thread: D3D Screen Updater, state: TIMED_WAITING, total cpu time: 514.8033ms, total user time: 343.2022ms
  java.lang.Object.wait(Native Method)
  sun.java2d.d3d.D3DScreenUpdateManager.run(Unknown Source)
  java.lang.Thread.run(Unknown Source)

Thread: Script Debug accept thread, state: RUNNABLE, total cpu time: 0.0ms, total user time: 0.0ms
  java.net.PlainSocketImpl.socketAccept(Native Method)
  java.net.PlainSocketImpl.accept(Unknown Source)
  java.net.ServerSocket.implAccept(Unknown Source)
  java.net.ServerSocket.accept(Unknown Source)
  com.servoy.j2db.debug.RemoteDebugScriptEngine$1.run(RemoteDebugScriptEngine.java:85)
  java.lang.Thread.run(Unknown Source)

Thread: pool-2-thread-2, state: WAITING, total cpu time: 0.0ms, total user time: 0.0ms
  sun.misc.Unsafe.park(Native Method)
  java.util.concurrent.locks.LockSupport.park(Unknown Source)
  java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(Unknown Source)
  java.util.concurrent.LinkedBlockingQueue.take(Unknown Source)
  java.util.concurrent.ThreadPoolExecutor.getTask(Unknown Source)
  java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
  java.lang.Thread.run(Unknown Source)

Thread: Swing-Shell, state: WAITING, total cpu time: 374.4024ms, total user time: 187.2012ms
  sun.misc.Unsafe.park(Native Method)
  java.util.concurrent.locks.LockSupport.park(Unknown Source)
  java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(Unknown Source)
  java.util.concurrent.LinkedBlockingQueue.take(Unknown Source)
  java.util.concurrent.ThreadPoolExecutor.getTask(Unknown Source)
  java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
  sun.awt.shell.Win32ShellFolderManager2$ComInvoker$3.run(Unknown Source)
  java.lang.Thread.run(Unknown Source)

Thread: pool-3-thread-1, state: WAITING, total cpu time: 124.8008ms, total user time: 46.8003ms
  sun.misc.Unsafe.park(Native Method)
  java.util.concurrent.locks.LockSupport.park(Unknown Source)
  java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(Unknown Source)
  java.util.concurrent.LinkedBlockingQueue.take(Unknown Source)
  java.util.concurrent.ThreadPoolExecutor.getTask(Unknown Source)
  java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
  java.lang.Thread.run(Unknown Source)

Thread: TimerQueue, state: TIMED_WAITING, total cpu time: 15.6001ms, total user time: 15.6001ms
  java.lang.Object.wait(Native Method)
  javax.swing.TimerQueue.run(Unknown Source)
  java.lang.Thread.run(Unknown Source)

Thread: AWT-Shutdown, state: WAITING, total cpu time: 0.0ms, total user time: 0.0ms
  java.lang.Object.wait(Native Method)
  java.lang.Object.wait(Object.java:485)
  sun.awt.AWTAutoShutdown.run(Unknown Source)
  java.lang.Thread.run(Unknown Source)

Thread: Java indexing, state: WAITING, total cpu time: 0.0ms, total user time: 0.0ms
  java.lang.Object.wait(Native Method)
  java.lang.Object.wait(Object.java:485)
  org.eclipse.jdt.internal.core.search.processing.JobManager.run(JobManager.java:381)
  java.lang.Thread.run(Unknown Source)

Thread: [ThreadPool Manager] - Idle Thread, state: WAITING, total cpu time: 0.0ms, total user time: 0.0ms
  java.lang.Object.wait(Native Method)
  java.lang.Object.wait(Object.java:485)
  org.eclipse.equinox.internal.util.impl.tpt.threadpool.Executor.run(Executor.java:106)

Thread: Timer-0, state: WAITING, total cpu time: 0.0ms, total user time: 0.0ms
  java.lang.Object.wait(Native Method)
  java.lang.Object.wait(Object.java:485)
  java.util.TimerThread.mainLoop(Unknown Source)
  java.util.TimerThread.run(Unknown Source)

Thread: SQLExplorerPlugin.ConnectionsTimer, state: TIMED_WAITING, total cpu time: 15.6001ms, total user time: 15.6001ms
  java.lang.Thread.sleep(Native Method)
  net.sourceforge.sqlexplorer.plugin.SQLExplorerPlugin$ConnectionsTimer.run(SQLExplorerPlugin.java:70)

Thread: Bundle File Closer, state: WAITING, total cpu time: 0.0ms, total user time: 0.0ms
  java.lang.Object.wait(Native Method)
  java.lang.Object.wait(Object.java:485)
  org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.getNextEvent(EventManager.java:397)
  org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:333)

Thread: DLTK indexing, state: WAITING, total cpu time: 33025.4117ms, total user time: 32323.4072ms
  java.lang.Object.wait(Native Method)
  java.lang.Object.wait(Object.java:485)
  org.eclipse.dltk.internal.core.search.processing.JobManager.run(JobManager.java:445)
  java.lang.Thread.run(Unknown Source)

Thread: http-8080-Acceptor-0, state: RUNNABLE, total cpu time: 0.0ms, total user time: 0.0ms
  java.net.PlainSocketImpl.socketAccept(Native Method)
  java.net.PlainSocketImpl.accept(Unknown Source)
  java.net.ServerSocket.implAccept(Unknown Source)
  java.net.ServerSocket.accept(Unknown Source)
  org.apache.tomcat.util.net.DefaultServerSocketFactory.acceptSocket(DefaultServerSocketFactory.java:61)
  org.apache.tomcat.util.net.JIoEndpoint$Acceptor.run(JIoEndpoint.java:352)
  java.lang.Thread.run(Unknown Source)

Thread: ContainerBackgroundProcessor[StandardEngine[Catalina]], state: TIMED_WAITING, total cpu time: 405.6026ms, total user time: 109.2007ms
  java.lang.Thread.sleep(Native Method)
  org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1627)
  java.lang.Thread.run(Unknown Source)

Thread: ModificationWatcher Task, state: TIMED_WAITING, total cpu time: 0.0ms, total user time: 0.0ms
  java.lang.Thread.sleep(Native Method)
  org.apache.wicket.util.time.Duration.sleep(Duration.java:445)
  org.apache.wicket.util.thread.Task$1.run(Task.java:130)
  java.lang.Thread.run(Unknown Source)

Thread: pool-2-thread-1, state: TIMED_WAITING, total cpu time: 0.0ms, total user time: 0.0ms
  sun.misc.Unsafe.park(Native Method)
  java.util.concurrent.locks.LockSupport.parkNanos(Unknown Source)
  java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.awaitNanos(Unknown Source)
  java.util.concurrent.DelayQueue.take(Unknown Source)
  java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.take(Unknown Source)
  java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.take(Unknown Source)
  java.util.concurrent.ThreadPoolExecutor.getTask(Unknown Source)
  java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
  java.lang.Thread.run(Unknown Source)

Thread: PingScanner, state: TIMED_WAITING, total cpu time: 0.0ms, total user time: 0.0ms
  java.lang.Object.wait(Native Method)
  com.servoy.j2db.dataprocessing.Zn.run(Zn.java:23)
  java.lang.Thread.run(Unknown Source)

Thread: MessageScheduler, state: TIMED_WAITING, total cpu time: 15.6001ms, total user time: 15.6001ms
  java.lang.Object.wait(Native Method)
  com.servoy.j2db.dataprocessing.Zp.run(Zp.java:8)
  java.lang.Thread.run(Unknown Source)

Thread: MessagePreHandler, state: WAITING, total cpu time: 0.0ms, total user time: 0.0ms
  java.lang.Object.wait(Native Method)
  java.lang.Object.wait(Object.java:485)
  com.servoy.j2db.dataprocessing.ClientMessagePreQueueHandler.run(ClientMessagePreQueueHandler.java:13)
  java.lang.Thread.run(Unknown Source)

Thread: AWT-Windows, state: RUNNABLE, total cpu time: 15834.1015ms, total user time: 12152.4779ms
  sun.awt.windows.WToolkit.eventLoop(Native Method)
  sun.awt.windows.WToolkit.run(Unknown Source)
  java.lang.Thread.run(Unknown Source)

Thread: Java2D Disposer, state: WAITING, total cpu time: 0.0ms, total user time: 0.0ms
  java.lang.Object.wait(Native Method)
  java.lang.ref.ReferenceQueue.remove(Unknown Source)
  java.lang.ref.ReferenceQueue.remove(Unknown Source)
  sun.java2d.Disposer.run(Unknown Source)
  java.lang.Thread.run(Unknown Source)

Thread: Worker-JM, state: WAITING, total cpu time: 0.0ms, total user time: 0.0ms
  java.lang.Object.wait(Native Method)
  org.eclipse.core.internal.jobs.InternalWorker.run(InternalWorker.java:58)

Thread: [Timer] - Main Queue Handler, state: TIMED_WAITING, total cpu time: 0.0ms, total user time: 0.0ms
  java.lang.Object.wait(Native Method)
  org.eclipse.equinox.internal.util.impl.tpt.timer.TimerImpl.run(TimerImpl.java:141)
  java.lang.Thread.run(Unknown Source)

Thread: Framework Event Dispatcher, state: WAITING, total cpu time: 46.8003ms, total user time: 46.8003ms
  java.lang.Object.wait(Native Method)
  java.lang.Object.wait(Object.java:485)
  org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.getNextEvent(EventManager.java:397)
  org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:333)

Thread: Start Level Event Dispatcher, state: WAITING, total cpu time: 156.001ms, total user time: 124.8008ms
  java.lang.Object.wait(Native Method)
  java.lang.Object.wait(Object.java:485)
  org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.getNextEvent(EventManager.java:397)
  org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:333)

Thread: State Data Manager, state: TIMED_WAITING, total cpu time: 0.0ms, total user time: 0.0ms
  java.lang.Thread.sleep(Native Method)
  org.eclipse.osgi.internal.baseadaptor.StateManager.run(StateManager.java:319)
  java.lang.Thread.run(Unknown Source)

Thread: Attach Listener, state: RUNNABLE, total cpu time: 0.0ms, total user time: 0.0ms

Thread: Signal Dispatcher, state: RUNNABLE, total cpu time: 0.0ms, total user time: 0.0ms

Thread: Finalizer, state: WAITING, total cpu time: 62.4004ms, total user time: 62.4004ms
  java.lang.Object.wait(Native Method)
  java.lang.ref.ReferenceQueue.remove(Unknown Source)
  java.lang.ref.ReferenceQueue.remove(Unknown Source)
  java.lang.ref.Finalizer$FinalizerThread.run(Unknown Source)

Thread: Reference Handler, state: WAITING, total cpu time: 31.2002ms, total user time: 31.2002ms
  java.lang.Object.wait(Native Method)
  java.lang.Object.wait(Object.java:485)
  java.lang.ref.Reference$ReferenceHandler.run(Unknown Source)

Thread: main, state: RUNNABLE, total cpu time: 74974.0806ms, total user time: 60840.39ms
  org.eclipse.swt.internal.win32.OS.WaitMessage(Native Method)
  org.eclipse.swt.widgets.Display.sleep(Display.java:4553)
  org.eclipse.ui.application.WorkbenchAdvisor.eventLoopIdle(WorkbenchAdvisor.java:364)
  org.eclipse.ui.internal.ide.application.IDEWorkbenchAdvisor.eventLoopIdle(IDEWorkbenchAdvisor.java:887)
  org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2641)
  org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2604)
  org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2438)
  org.eclipse.ui.internal.Workbench$7.run(Workbench.java:671)
  org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
  org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:664)
  org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
  org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:115)
  org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
  org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
  org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
  org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:369)
  org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
  sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
  sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
  java.lang.reflect.Method.invoke(Unknown Source)
  org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:620)
  org.eclipse.equinox.launcher.Main.basicRun(Main.java:575)
  org.eclipse.equinox.launcher.Main.run(Main.java:1408)

Seems as if going into a debug session somehow causes the client to freeze. I need to kill the servoy.exe process in order to get rid of the “run-away” Servoy client…

first of all that “can’t create new native thread” means that you very likely run a 32bit vm
where you have assigned a lot of heap and none heap to java so that the native memory that the vm will use besides that is to little

The fix for this is to use a 64 bit vm so that java can take way more memory
or tweak the memory a bit (for example none heap down is that you currently have set that to more then 400MB?? move that to 150 or 200 or something, so that overal the jvm gets a little bit more play ground)

secondly that dump stack is very weird, that is no awt-event thread at all there… So i guess that is the reason that it doesn’t paint…