Java-Gaming.org Hi !
Featured games (90)
games approved by the League of Dukes
Games in Showcase (778)
Games in Android Showcase (231)
games submitted by our members
Games in WIP (856)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  Large heap sizes cause JVM crash when calling glTexImage3D  (Read 1441 times)
0 Members and 1 Guest are viewing this topic.
Offline beermann

Senior Newbie





« Posted 2005-07-12 20:31:39 »

I'm having a problem where my application is crashing on a glTexImage3D call, but only when the heap size is very large, say 1200MB.  I'm trying to allocate a 3D texture that is 512x512x287 using short data.  I've got a Quadro 4400 so the memory on the card isn't an issue.  I also have 2GB of memory in my machine, so that shouldn't be the problem either.  Furthermore, this call will succeed for lower heap sizes, such as 800MB. 

It seems like there's only so much memory that can be shared between the java heap and what can be allocated for OpenGL, but I don't know what that limit is and how to determine if I've reached it.  If anyone has any information about why this might be happening and how I could prevent it, that would be greatly appreciated.  Thanks for your time.

The top portion of the dump that happens from the crash follows:

An unexpected exception has been detected in native code outside the VM.
Unexpected Signal : EXCEPTION_ACCESS_VIOLATION (0xc0000005) occurred at PC=0x69714D88
Function=DrvCopyContext+0x1C7C8
Library=C:\WINDOWS\system32\nvoglnt.dll

Current Java thread:
   at net.java.games.jogl.impl.windows.WindowsGLImpl.dispatch_glTexImage3D(Native Method)
   at net.java.games.jogl.impl.windows.WindowsGLImpl.glTexImage3D(WindowsGLImpl.java:25585)
Offline Ken Russell

JGO Coder




Java games rock!


« Reply #1 - Posted 2005-07-12 20:44:42 »

It's possible you're running out of address space. By default Windows processes have access to about 1.8 GB of address space although this limit can be raised by limiting the amount of space the kernel consumes. I think this can be tuned in boot.ini but you'll have to search the web for more information about it.
Pages: [1]
  ignore  |  Print  
 
 

 
hadezbladez (358 views)
2018-11-16 13:46:03

hadezbladez (191 views)
2018-11-16 13:41:33

hadezbladez (361 views)
2018-11-16 13:35:35

hadezbladez (90 views)
2018-11-16 13:32:03

EgonOlsen (2191 views)
2018-06-10 19:43:48

EgonOlsen (2226 views)
2018-06-10 19:43:44

EgonOlsen (1384 views)
2018-06-10 19:43:20

DesertCoockie (2022 views)
2018-05-13 18:23:11

nelsongames (1674 views)
2018-04-24 18:15:36

nelsongames (2312 views)
2018-04-24 18:14:32
Deployment and Packaging
by mudlee
2018-08-22 18:09:50

Java Gaming Resources
by gouessej
2018-08-22 08:19:41

Deployment and Packaging
by gouessej
2018-08-22 08:04:08

Deployment and Packaging
by gouessej
2018-08-22 08:03:45

Deployment and Packaging
by philfrei
2018-08-20 02:33:38

Deployment and Packaging
by philfrei
2018-08-20 02:29:55

Deployment and Packaging
by philfrei
2018-08-19 23:56:20

Deployment and Packaging
by philfrei
2018-08-19 23:54:46
java-gaming.org is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑gaming.org
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!