Bug 23 - glFinish() or glDeleteTextures() on Linux -> native crash
Summary: glFinish() or glDeleteTextures() on Linux -> native crash
Status: VERIFIED WORKSFORME
Alias: None
Product: Jogl
Classification: JogAmp
Component: core (show other bugs)
Version: 1
Hardware: All all
: P1 normal
Assignee: Sven Gothel
URL:
Depends on:
Blocks:
 
Reported: 2003-07-04 08:22 CEST by Sven Gothel
Modified: 2010-03-24 07:45 CET (History)
0 users

See Also:
Type: DEFECT
SCM Refs:
Workaround: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sven Gothel 2010-03-24 07:45:34 CET


---- Reported by albanc 2003-07-04 08:22:28 ----

Calling glFinish(), glDeleteLists() or glDeleteTextures()  with animator suspended on 
Linux crashes on the native side (Nvidia Driver GeForce 4 MX440). The code runs 
fine on windows :

An unexpected exception has been detected in native code outside the VM.
Unexpected Signal : 11 occurred at PC=0x4D31D428
Function=glFinish+0x0
Library=/usr/lib/libGL.so.1

Current Java thread:
	at net.java.games.jogl.impl.x11.X11GLImpl.glFinish(Native Method)
	at om.sceneElements.OmNode.cleanup(OmNode.java:506)
	at om.sceneElements.OmScene.cleanup(OmScene.java:241)
	at tools.viewer.objectLoaded(viewer.java:104)
	at om.sceneToolkit.OmASEParser.notifyObjectLoaded
(OmASEParser.java:1135)
	at om.sceneToolkit.OmASEParser.run(OmASEParser.java:208)

Dynamic libraries:
08048000-0804e000 r-xp 00000000 03:02 
72299      /usr/local/share/j2sdk1.4.2/bin/java
0804e000-0804f000 rw-p 00005000 03:02 
72299      /usr/local/share/j2sdk1.4.2/bin/java
40000000-40011000 r-xp 00000000 03:02 47230      /lib/ld-2.3.1.so
40011000-40012000 rw-p 00011000 03:02 47230      /lib/ld-2.3.1.so
40012000-4001a000 r-xp 00000000 03:02 
71679      /usr/local/share/j2sdk1.4.2/jre/lib/i386/native_threads/libhpi.so
4001a000-4001b000 rw-p 00007000 03:02 
71679      /usr/local/share/j2sdk1.4.2/jre/lib/i386/native_threads/libhpi.so
4001c000-40028000 r-xp 00000000 03:02 47248      /lib/libpthread-0.10.so
40028000-4002b000 rw-p 0000c000 03:02 47248      /lib/libpthread-0.10.so
4006b000-4006d000 r-xp 00000000 03:02 47235      /lib/libdl-2.3.1.so
4006d000-4006e000 rw-p 00001000 03:02 47235      /lib/libdl-2.3.1.so
4006e000-40176000 r-xp 00000000 03:02 47233      /lib/libc-2.3.1.so
40176000-4017c000 rw-p 00107000 03:02 47233      /lib/libc-2.3.1.so
4017e000-40573000 r-xp 00000000 03:02 
71685      /usr/local/share/j2sdk1.4.2/jre/lib/i386/client/libjvm.so
40573000-4058f000 rw-p 003f4000 03:02 
71685      /usr/local/share/j2sdk1.4.2/jre/lib/i386/client/libjvm.so
405a1000-405b1000 r-xp 00000000 03:02 47237      /lib/libnsl-2.3.1.so
405b1000-405b2000 rw-p 00010000 03:02 47237      /lib/libnsl-2.3.1.so
405b4000-405d4000 r-xp 00000000 03:02 47236      /lib/libm-2.3.1.so
405d4000-405d5000 rw-p 0001f000 03:02 47236      /lib/libm-2.3.1.so
405d5000-405d9000 rw-s 00000000 03:02 57021      /tmp/hsperfdata_ace/849
405d9000-405dc000 r--s 00000000 03:02 
71717      /usr/local/share/j2sdk1.4.2/jre/lib/ext/dnsns.jar
405dc000-405dd000 r-xp 00000000 03:02 
71710      /usr/local/share/j2sdk1.4.2/jre/lib/i386/libjawt.so
405dd000-405de000 rw-p 00000000 03:02 
71710      /usr/local/share/j2sdk1.4.2/jre/lib/i386/libjawt.so
405de000-405e7000 r-xp 00000000 03:02 47238      /lib/libnss_compat-2.3.1.so
405e7000-405e8000 rw-p 00009000 03:02 47238      /lib/libnss_compat-2.3.1.so
405e8000-405f8000 r-xp 00000000 03:02 
71690      /usr/local/share/j2sdk1.4.2/jre/lib/i386/libverify.so
405f8000-405fa000 rw-p 0000f000 03:02 
71690      /usr/local/share/j2sdk1.4.2/jre/lib/i386/libverify.so
405fa000-4061a000 r-xp 00000000 03:02 
71691      /usr/local/share/j2sdk1.4.2/jre/lib/i386/libjava.so
4061a000-4061c000 rw-p 0001f000 03:02 
71691      /usr/local/share/j2sdk1.4.2/jre/lib/i386/libjava.so
4061c000-40630000 r-xp 00000000 03:02 
71693      /usr/local/share/j2sdk1.4.2/jre/lib/i386/libzip.so
40630000-40633000 rw-p 00013000 03:02 
71693      /usr/local/share/j2sdk1.4.2/jre/lib/i386/libzip.so
40633000-41fb6000 r--s 00000000 03:02 
72241      /usr/local/share/j2sdk1.4.2/jre/lib/rt.jar
42000000-42016000 r--s 00000000 03:02 
71720      /usr/local/share/j2sdk1.4.2/jre/lib/sunrsasign.jar
42016000-420f0000 r--s 00000000 03:02 
72201      /usr/local/share/j2sdk1.4.2/jre/lib/jsse.jar
420f0000-42101000 r--s 00000000 03:02 
71721      /usr/local/share/j2sdk1.4.2/jre/lib/jce.jar
42101000-4265a000 r--s 00000000 03:02 
72239      /usr/local/share/j2sdk1.4.2/jre/lib/charsets.jar
44702000-4470f000 r--s 00000000 03:02 
71718      /usr/local/share/j2sdk1.4.2/jre/lib/ext/ldapsec.jar
4470f000-44710000 rw-s 40000000 03:02 5090       /dev/nvidia0
4c790000-4c7df000 r--p 00000000 03:02 56868      /usr/lib/locale/locale-archive
4c7df000-4c7fb000 r--s 00000000 03:02 
71716      /usr/local/share/j2sdk1.4.2/jre/lib/ext/sunjce_provider.jar
4c7fb000-4c8b7000 r--s 00000000 03:02 
71719      /usr/local/share/j2sdk1.4.2/jre/lib/ext/localedata.jar
4c8b7000-4c8dd000 r--s 00000000 00:08 8945708    /home/ace/openmind-
jsr/binary-distribution/lib/openmind-core.jar
4c8dd000-4c8f9000 r--s 00000000 00:08 8945707    /home/ace/openmind-
jsr/binary-distribution/lib/vecmath-free.jar
4c8f9000-4c9bb000 r--s 00000000 00:08 8945706    /home/ace/openmind-
jsr/binary-distribution/lib/jogl.jar
4c9bb000-4cc86000 r-xp 00000000 03:02 
71701      /usr/local/share/j2sdk1.4.2/jre/lib/i386/libawt.so
4cc86000-4cc9b000 rw-p 002ca000 03:02 
71701      /usr/local/share/j2sdk1.4.2/jre/lib/i386/libawt.so
4ccc1000-4cd14000 r-xp 00000000 03:02 
71700      /usr/local/share/j2sdk1.4.2/jre/lib/i386/libmlib_image.so
4cd14000-4cd15000 rw-p 00052000 03:02 
71700      /usr/local/share/j2sdk1.4.2/jre/lib/i386/libmlib_image.so
4cd15000-4cd1b000 r--s 00000000 00:08 8945704    /home/ace/openmind-
jsr/binary-distribution/lib/joal.jar
4cd1b000-4cd1d000 r-xp 00000000 03:02 
35383      /usr/X11R6/lib/X11/locale/common/xlcDef.so.2
4cd1d000-4cd1e000 rw-p 00001000 03:02 
35383      /usr/X11R6/lib/X11/locale/common/xlcDef.so.2
4cd1e000-4cd24000 r-xp 00000000 03:02 35682      /usr/X11R6/lib/libXp.so.6.2
4cd24000-4cd25000 rw-p 00006000 03:02 35682      /usr/X11R6/lib/libXp.so.6.2
4cd25000-4cd6b000 r-xp 00000000 03:02 35513      /usr/X11R6/lib/libXt.so.6.0
4cd6b000-4cd6f000 rw-p 00045000 03:02 35513      /usr/X11R6/lib/libXt.so.6.0
4cd6f000-4cd7b000 r-xp 00000000 03:02 35512      /usr/X11R6/lib/libXext.so.6.4
4cd7b000-4cd7c000 rw-p 0000c000 03:02 35512      /usr/X11R6/lib/libXext.so.6.4
4cd7c000-4cd80000 r-xp 00000000 03:02 35508      /usr/X11R6/lib/libXtst.so.6.1
4cd80000-4cd81000 rw-p 00003000 03:02 35508      /usr/X11R6/lib/libXtst.so.6.1
4cd81000-4ce38000 r-xp 00000000 03:02 35676      /usr/X11R6/lib/libX11.so.6.2
4ce38000-4ce3b000 rw-p 000b7000 03:02 35676      /usr/X11R6/lib/libX11.so.6.2
4ce3b000-4ce42000 r-xp 00000000 03:02 35681      /usr/X11R6/lib/libSM.so.6.0
4ce42000-4ce43000 rw-p 00007000 03:02 35681      /usr/X11R6/lib/libSM.so.6.0
4ce43000-4ce56000 r-xp 00000000 03:02 35509      /usr/X11R6/lib/libICE.so.6.3
4ce56000-4ce58000 rw-p 00012000 03:02 35509      /usr/X11R6/lib/libICE.so.6.3
4ce59000-4ce67000 r--s 00000000 00:08 8945701    /home/ace/openmind-
jsr/binary-distribution/lib/png.jar
4ce67000-4cf1c000 r--s 00000000 00:08 11812873   /home/ace/bin/ant/lib/ant.jar
4cf1c000-4cf37000 r--s 00000000 00:08 11812874   /home/ace/bin/ant/lib/xml-
apis.jar
4cf37000-4d010000 r--s 00000000 00:08 
11812875   /home/ace/bin/ant/lib/xercesImpl.jar
4d010000-4d0b4000 r--s 00000000 00:08 
11812872   /home/ace/bin/ant/lib/optional.jar
4d0b4000-4d125000 r--s 00000000 00:08 
7127087    /home/ace/Jimi/examples/AppletDemo/JimiProClasses.jar
4d125000-4d1df000 r-xp 00000000 03:02 
71704      /usr/local/share/j2sdk1.4.2/jre/lib/i386/libfontmanager.so
4d1df000-4d1f9000 rw-p 000b9000 03:02 
71704      /usr/local/share/j2sdk1.4.2/jre/lib/i386/libfontmanager.so
4d1fa000-4d214000 r-xp 00000000 03:02 
35381      /usr/X11R6/lib/X11/locale/common/ximcp.so.2
4d214000-4d216000 rw-p 00019000 03:02 
35381      /usr/X11R6/lib/X11/locale/common/ximcp.so.2
4d216000-4d218000 r-xp 00000000 03:02 47387      /usr/lib/gconv/ISO8859-15.so
4d218000-4d219000 rw-p 00001000 03:02 47387      /usr/lib/gconv/ISO8859-15.so
4d219000-4d2dc000 r-xp 00000000 00:08 8945705    /home/ace/openmind-
jsr/binary-distribution/lib/libjogl.so
4d2dc000-4d2de000 rw-p 000c2000 00:08 8945705    /home/ace/openmind-
jsr/binary-distribution/lib/libjogl.so
4d2de000-4d2df000 rwxp 00000000 03:02 3311       /dev/zero
4d2df000-4d2e0000 rwxp 00000000 03:02 3311       /dev/zero
4d2e0000-4d2e1000 rwxp 00000000 03:02 3311       /dev/zero
4d2e1000-4d2e2000 rwxp 00000000 03:02 3311       /dev/zero
4d2e2000-4d2e3000 rwxp 00000000 03:02 3311       /dev/zero
4d2e3000-4d2e4000 rwxp 00000000 03:02 3311       /dev/zero
4d2e4000-4d2e5000 rwxp 00000000 03:02 3311       /dev/zero
4d2e5000-4d2e6000 rwxp 00000000 03:02 3311       /dev/zero
4d2e6000-4d2e7000 rwxp 00000000 03:02 3311       /dev/zero
4d2e7000-4d32a000 r-xp 00000000 03:02 8702       /usr/lib/libGL.so.1.0.3123
4d32a000-4d32d000 rw-p 00042000 03:02 8702       /usr/lib/libGL.so.1.0.3123
4d32f000-4d398000 r-xp 00000000 03:02 56459      /usr/X11R6/lib/libGLU.so.1.3
4d398000-4d3a2000 rw-p 00069000 03:02 56459      /usr/X11R6/lib/libGLU.so.1.3
4d3a2000-4d70a000 r-xp 00000000 03:02 10330      /usr/lib/libGLcore.so.1.0.3123
4d70a000-4d712000 rw-p 00367000 03:02 10330      /usr/lib/libGLcore.so.1.0.3123
4d73c000-4d7cc000 r-xp 00000000 03:02 10392      /usr/lib/libstdc++.so.5.0.4
4d7cc000-4d7e3000 rw-p 0008f000 03:02 10392      /usr/lib/libstdc++.so.5.0.4
4d7e8000-4d7ee000 r-xp 00000000 03:02 10366      /lib/libgcc_s.so.1
4d7ee000-4d7ef000 rw-p 00006000 03:02 10366      /lib/libgcc_s.so.1
4d8e9000-4d9f0000 rw-s 00000000 00:04 0          /SYSV00000000 (deleted)
4d9f0000-559f0000 rw-s 10000000 03:02 5090       /dev/nvidia0
55aaf000-55bb1000 rw-s 80000000 03:02 5090       /dev/nvidia0
55bb1000-55bc1000 rw-s 00810000 03:02 5090       /dev/nvidia0
55de3000-55ee5000 rw-s 80000000 03:02 5090       /dev/nvidia0
55ee5000-55ef5000 rw-s 00820000 03:02 5090       /dev/nvidia0
55ff7000-55ff8000 rw-s 40000000 03:02 5090       /dev/nvidia0

Heap at VM Abort:
Heap
 def new generation   total 576K, used 208K [0x44710000, 0x447b0000, 
0x44bf0000)
  eden space 512K,  34% used [0x44710000, 0x4473cc58, 0x44790000)
  from space 64K,  45% used [0x447a0000, 0x447a7578, 0x447b0000)
  to   space 64K,   0% used [0x44790000, 0x44790000, 0x447a0000)
 tenured generation   total 1648K, used 1163K [0x44bf0000, 0x44d8c000, 
0x48710000)
   the space 1648K,  70% used [0x44bf0000, 0x44d12dc8, 0x44d12e00, 
0x44d8c000)
 compacting perm gen  total 4864K, used 4851K [0x48710000, 0x48bd0000, 
0x4c710000)
   the space 4864K,  99% used [0x48710000, 0x48bcced8, 0x48bcd000, 
0x48bd0000)

Local Time = Fri Jul  4 16:51:34 2003
Elapsed Time = 2
#
# The exception above was detected in native code outside the VM
#
# Java VM: Java HotSpot(TM) Client VM (1.4.2-beta-b19 mixed mode)
#



---- Additional Comments From kbr 2003-07-14 22:15:16 ----

Please submit a boiled-down test case. I'm aware that your application does some
fancy context handling and I think most probably you are calling OpenGL routines
without a current context, which can lead to driver crashes.




---- Additional Comments From kbr 2004-04-30 16:09:00 ----

Please retest with the JOGL 1.1 builds and either reopen this issue or file a
new one if there are still problems. Again, I believe these errors are caused by
application code and not JOGL's core code.




--- Bug imported by sgothel@jausoft.com 2010-03-24 07:45 EDT  ---

This bug was previously known as _bug_ 23 at https://jogl.dev.java.net/bugs/show_bug.cgi?id=23