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 241562 - OutOfMemoryError: can't create offscreen surface
Summary: OutOfMemoryError: can't create offscreen surface
Status: RESOLVED WONTFIX
Alias: None
Product: platform
Classification: Unclassified
Component: JDK Problems (show other bugs)
Version: 8.0
Hardware: Macintosh (x86) Mac OS X
: P1 normal with 1 vote (vote)
Assignee: Antonin Nebuzelsky
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-02-08 06:49 UTC by bhaskarjain
Modified: 2015-02-10 11:43 UTC (History)
34 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 207403


Attachments
stacktrace (363 bytes, text/plain)
2014-02-08 06:49 UTC, bhaskarjain
Details
stacktrace (363 bytes, text/plain)
2014-09-11 04:14 UTC, abien
Details
stacktrace (363 bytes, text/plain)
2014-10-06 06:44 UTC, abien
Details
stacktrace (363 bytes, text/plain)
2014-10-24 15:41 UTC, alied
Details
stacktrace (363 bytes, text/plain)
2014-10-24 20:11 UTC, alied
Details
stacktrace (363 bytes, text/plain)
2014-10-24 20:14 UTC, alied
Details

Note You need to log in before you can comment on or make changes to this bug.
Description bhaskarjain 2014-02-08 06:49:39 UTC
This bug was originally marked as duplicate of bug 215397, 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 Beta (Build nbms-and-javadoc-1280-on-20140205)
VM: Java HotSpot(TM) 64-Bit Server VM, 24.51-b03, Java(TM) SE Runtime Environment, 1.7.0_51-b13
OS: Mac OS X

User Comments:
GUEST: Just opened it

GUEST: sorry no steps as it happened suddenly in a php editor.
scrolling displayed garbage on the surface (pixels corruptions) but once scrolling stopped the content was redrawn correctly.

GUEST: <Please provide a description of the problem or the steps to reproduce>

GUEST: it suddenly blocked my macbook

GUEST: opening java class for jframe in design mode from main project package

GUEST: Opening netbeans?

GUEST: <Please provide a description of the problem or the steps to reproduce>l

GUEST: Error while loading IDE

GUEST: Have no idea.

theshadow27: Trying to refactor a method name

GUEST: Debug was running, waiting for connection. Memory use was approx 45-MB/550MB. NB was not-focused. Returned to focus. Deleted a file using right-click in Projects pane. NB froze with spinning icon and high CPU usage. Killed the process in shell.

GUEST: Just fired up Netbeans

GUEST: i dont really know

GUEST: Didn't see a problem but this error is recurring

GUEST: close my mackbook pro (repose mode) and open again...

GUEST: crashed

heyzooi: don't know

GUEST: Upgraded to Mavricks and netbeans would no longer start. Had to upgrade JDK to 1.7, now it is working.

bluntzki: netbeans says last time I ran my procect it ran out of memory, it might be the cause that os x mavericks takes all the memory up

jag: Typeing in, just got a completion

GUEST: A replace in projects, but hadn't even opened the dialogue box up was just trying to find the keyboard shortcut for Replace All instead of Replace in Projects

athompson: double-clicked on colum divider in SQL result view to widen column

athompson: reporting another exception

jag: clicked "step into"

abien: Did not happened in the previous build

GUEST: Just tried to delete a class file.

GUEST: Trying to search all open projects

GUEST: Editing php code

GUEST: No clue :)

GUEST: changed project properties.

bhaskarjain: when you work with python plugin in netbeans on mac it seems to keep running into exceptions

GUEST: n/a

GUEST: jsut got stuck

GUEST: Sorry, I can't remember

GUEST: when you change the formatting style for the editor in the preferences, Netbeans crashed

GUEST: Unclear; this problem is happening on my Retina Macbook Pro.

GUEST: added a new js lib fron project properties window

GUEST: OutOfMemoryError: can't create offscreen surface

GUEST: crash

GUEST: I pressed on a mac following:
cmd + shift + f
I was trying to format code :(
My bad

GUEST: <Please provide a description of the problem or the steps to reproduce>

GUEST: I attempted to open the 'Find' dialog on my project. The dialog stretched across the screen and showed only some UI elements. When the search box was visible, many lines of code- I'm assuming from my clipboard- were jammed into the single-line box. The box appeared to expand to accomodate the long string, causing the dialog to expand to accomodate the box. This made the UI unusable, so I closed Netbeans.

GUEST: come back from sleep

GUEST: NetBeans freezes unexpectedly on OSX Mavericks, staying in that state until force the exit.
Programming Java.

GUEST: Reporting error

stecgn: ? nothing to see

mfriedenhagen: Inspecting a testcase where stdout had XML.

mcampo84: Tried to reformat code (which must be a different key combination on a mac than a windows machine - I used command+shift+f). The "find" window popped up with numerous outofmemoryerrors.

GUEST: trying to figure out why most modules were not installed

GUEST: I have no idea. The editor was slow as crap (slower than usual) and then I just quit it, did not get any messages

GUEST: I have no idea how this error occured. The computer has 16 GB RAM.

GUEST: Crash

ain: It was a normal shut down of a working machine on Friday, started today, claims problems.

GUEST: Don't have any knowledge how that happened.

GUEST: nothing

GUEST: <Please provide a description of the problem or the steps to reproduce>
Use my code.. idk neatbeans was crazed with power and drunk with it as well.

GUEST: Starting app.

leonardo.grupow: Ao abrir o Netbeans esta mensagem apareceu.

GUEST: Sorry don't know.

GUEST: I didn't even realize there was an error until I re-opened the program.

GUEST: <Please provide a description of the problem or the steps to reproduce>

GUEST: na

GUEST: find and replace screen with long query term failed to load

GUEST: This frozen my entire macbook.

ebakke: Opening the "Find" dialog in the output window on MacOS (with Command+F). It always gives this error.

mfriedenhagen: While inspecting the stdout of a testcase which produces XML.

GUEST: idk wtf happened

GUEST: Quit and restarted

GUEST: Navigator crashed; unresponsive netbeans




Stacktrace: 
java.lang.OutOfMemoryError: can't create offscreen surface
   at sun.java2d.opengl.OGLSurfaceData.initSurfaceNow(OGLSurfaceData.java:298)
   at sun.java2d.opengl.OGLSurfaceData.access$000(OGLSurfaceData.java:98)
   at sun.java2d.opengl.OGLSurfaceData$1.run(OGLSurfaceData.java:324)
   at sun.java2d.opengl.OGLRenderQueue$QueueFlusher.run(OGLRenderQueue.java:234)
Comment 1 bhaskarjain 2014-02-08 06:49:43 UTC
Created attachment 144932 [details]
stacktrace
Comment 2 Tomas Hurka 2014-02-08 14:06:27 UTC
This looks like JDK problem on Mac OS X and JDK 7+ only. It looks the same as https://bugs.openjdk.java.net/browse/JI-9004824
Comment 3 abien 2014-09-11 04:14:07 UTC
Created attachment 149127 [details]
stacktrace

Error couldn't be send last time
Comment 4 abien 2014-10-06 06:44:39 UTC
Created attachment 149721 [details]
stacktrace

Happened during debugging of an application server
Comment 5 alied 2014-10-24 15:41:05 UTC
Created attachment 150104 [details]
stacktrace

I was merging several git branches to master and fixing conflicts.
Also a very slow-to-load gradle project was trying to load while doing all that...
(yes, I'm evil >:->)
Comment 6 alied 2014-10-24 20:11:05 UTC
Created attachment 150107 [details]
stacktrace

was editing a source file and suddenly it closed...
BTW, these are the start up parameteers I'm using (in case it shows some light):
netbeans_default_options="-J-server -J-Xss2m -J-Xmx2G -J-Dsun.java2d.dpiaware=true -J-XX:+UseG1GC -J-Dsun.zip.disableMemoryMapping=true -J-Djava.net.preferIPv4Stack=true -J-XX:CompileThreshold=100 -J-Dsun.java2d.dpiaware=true -J-Dsun.java2d.opengl=true -J-Dsun.java2d.xrender=true -J-Dswing.aatext=true -J-Dawt.useSystemAAFontSettings=gasp"
Comment 7 alied 2014-10-24 20:14:05 UTC
Created attachment 150108 [details]
stacktrace

Now I was paying more attention:
Netbeans closed while scrolling the Navigator view. Specifically I believe it was at the time it tried to show the javadoc for a method.
Comment 8 Exceptions Reporter 2014-12-20 20:26:28 UTC
This bug already has 300 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=207403
Comment 9 Antonin Nebuzelsky 2014-12-23 15:40:03 UTC
JDK bug:
https://bugs.openjdk.java.net/browse/JDK-8055839
Comment 10 Alexandr Scherbatiy 2015-02-10 11:43:40 UTC
The JDK issue has been fixed JDK-8040617 [macosx] Large JTable cell results in a OutOfMemoryException
https://bugs.openjdk.java.net/browse/JDK-8040617