This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 244377

Summary: OutOfMemoryError: Indicated as coming from org.netbeans.lib.lexer.token.DefaultToken
Product: db Reporter: Exceptions Reporter <exceptions_reporter>
Component: SQL EditorAssignee: matthias42
Status: RESOLVED WONTFIX    
Severity: normal    
Priority: P3    
Version: 8.0   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 209603
Attachments: stacktrace

Description Exceptions Reporter 2014-05-08 11:13:17 UTC
This bug was originally marked as duplicate of bug 239377, that is already resolved. This bug is still valid, so this seems to be another bug, but it might be related.

Build: NetBeans IDE 8.0 (Build 201403101706)
VM: Java HotSpot(TM) Client VM, 24.55-b03, Java(TM) SE Runtime Environment, 1.7.0_55-b14
OS: Windows 8

User Comments:
GUEST: carsh

GUEST: Diff two 7,6MB files

Irfan123: Hang the nebeans IDE automatically after using consistently, this may cause laoss of the data if not saved.

GUEST: only started

GUEST: ?? ????

GUEST: memmory?

GUEST: Netbeans just stop responsing to any action and thus netbeans.exe process was killed

GUEST: A big file has been opened.




Stacktrace: 
java.lang.OutOfMemoryError: Java heap space
   at java.util.concurrent.locks.ReentrantLock$Sync.newCondition(ReentrantLock.java:0)
   at java.util.concurrent.locks.ReentrantLock.newCondition(ReentrantLock.java:0)
   at javax.swing.TimerQueue.run(TimerQueue.java:0)
   at java.lang.Thread.run(Thread.java:0)
Comment 1 Exceptions Reporter 2014-05-08 11:13:20 UTC
Created attachment 147184 [details]
stacktrace
Comment 2 Petr Cyhelsky 2014-06-27 14:08:40 UTC
There is only last heap dump left ... reassigning to diff
Comment 3 Ondrej Vrabec 2014-07-03 07:18:45 UTC
almost 2 million instances of org.netbeans.lib.lexer.token.DefaultToken	related to an sql file of 7MB size. Possibly there is a memory leak in loading such a file.
Comment 4 matthias42 2016-08-26 15:46:46 UTC
I now looked through this multiple times. The sql lexer looks sane and does not keep excessive data around. The count of 2 million tokens for a 7MB file also looks reasonable.

As users are clearly warned about opening files > 1MB I'll close this here.