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 59036 - [Fix Imports] hangs Netbeans with jogl
Summary: [Fix Imports] hangs Netbeans with jogl
Status: RESOLVED WORKSFORME
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 4.x
Hardware: PC Windows XP
: P3 blocker with 1 vote (vote)
Assignee: issues@java
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-05-18 18:50 UTC by turquoise3232
Modified: 2007-09-26 09:14 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description turquoise3232 2005-05-18 18:50:14 UTC
Don't know if it's a library problem but Netbeans must be killed after launching
"Fix import" with Jogl library...

Worked with 4.0 version.
Comment 1 turquoise3232 2005-05-19 18:32:22 UTC
It seems that a bad source zip causes this problem...
It's not crucial to solve, but it may be useful not to need to kill Netbeans
when this kind of problems occur.
Comment 2 Milan Kubec 2005-05-23 07:26:57 UTC
Do you mean the source zip for the jogl library or for Java platform?
Comment 3 turquoise3232 2005-05-23 17:38:53 UTC
It seems that "zip for the jogl library" is the problem. Tested with version
1.1b10 & 1.1b11.
Comment 4 jportway 2005-07-15 11:05:18 UTC
i have this problem on OSX too - the IDE freezes very often when editing any file that imports Jogl. Often 
freezes on save, or when a code completion is supposed to happen, or when following a "hotlink" to a 
method (cmd-click to go to source). Therefore I assume it's a problem with the code analysis ? The IDE 
hangs in some kind of tight loop (it eats CPU cycles but does nothing, the UI hangs too). Jogl has one class 
(GL) that has an *awful* lot of methods, could this be the problem ?

This happens in Netbeans 4.1 and the latest 4.2 dailies. 
Comment 5 jportway 2005-07-15 11:08:29 UTC
sorry, forgot to mention the most important thing - I'm still having this problem after removing the source 
code zip for Jogl from the Library manager, so doesn't seem like it could be the source code.  
turquoise3232 - do you have a workaround ? Does it help if I decompress the actual library jar file ?
Comment 6 jportway 2005-07-15 11:10:11 UTC
A possibility - Jogl includes a native code library as a jar - I have this mounted in the Library manager 
classpath - could this be the problem ?
Comment 7 jportway 2005-07-15 11:31:57 UTC
I tried removing the native jar from the classpath and this seems to fix the problem for me.
I realise that the native stuff shouldn't probably be there anyway, but it shouldn't cause the IDE to 
crash. When I tried adding the native jars into the library on a 4.2 daily I get intermittent crashes of the 
IDE as soon as I try to add the jar - crashed the first time, worked the second time i tried.

On a related note - it would be VERY useful for netbeans to have a bit more elegant native library 
support. The library manager should have a way to specify native DLLs for imported libraries, and 
should add these to your apps native code path when it runs the app. At the moment, as far as I can 
tell, the only thing to do is to copy DLLs to either system-wide locations or to your working directory, 
or to add stuff to your code to find the libs.

Comment 8 Tomas Hurka 2005-11-01 16:25:09 UTC
I downloaded jogl library an played with it. It worked fine. Closing as works
for me. If it happens again create few thread dumps so we can find out what is
going on. Thanks.