initSingleton() locks the execution

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

initSingleton() locks the execution

Eric J
Hi,
I have a problem with some code that calls "new GLCapabilities(GLProfile.getDefault());"
It locks the program execution for 1-2 minutes. Then, under windows7, the video driver crashes, or the program continues normally. Does it remind something to anyone?
Thanks,

Thread [main] (Suspended)
        Object.wait(long) line: not available [native method]
        SharedResourceRunner(Object).wait() line: 503
        SharedResourceRunner.doAndWait(String, String) line: 213
        SharedResourceRunner.getOrCreateShared(AbstractGraphicsDevice) line: 160
        WindowsWGLDrawableFactory.createSharedResource(AbstractGraphicsDevice) line: 425
        GLProfile.initProfilesForDeviceCritical(AbstractGraphicsDevice) line: 1560
        GLProfile.initProfilesForDevice(AbstractGraphicsDevice) line: 1521
        GLProfile.initProfilesForDefaultDevices() line: 1490
        GLProfile.access$100() line: 76
        GLProfile$1.run() line: 157
        AccessController.doPrivileged(PrivilegedAction<T>) line: not available [native method]
        GLProfile.initSingleton() line: 123
        GLProfile.getProfileMap(AbstractGraphicsDevice, boolean) line: 1857
        GLProfile.get(AbstractGraphicsDevice, String) line: 768
        GLProfile.getDefault(AbstractGraphicsDevice) line: 555
        GLProfile.getDefault() line: 566
        Settings.<init>() line: 53
        Settings.getInstance() line: 18
        Chart.<init>(Quality, String) line: 53
        Chart.<init>(Quality) line: 45
Reply | Threaded
Open this post in threaded view
|

Re: initSingleton() locks the execution

gouessej
Administrator
Hi

Please be more precise and provide a test case to reproduce this bug or reuse an existing one. Which version of JOGL 2.0 do you use? Which graphics card do you use? What is the version number of the driver?
Julien Gouesse | Personal blog | Website
Reply | Threaded
Open this post in threaded view
|

Re: initSingleton() locks the execution

Eric
i can't provide with a simple code fragment that reproduces the problem.
We are using a jzy3d chart, and examples provided with the library work!
within our (huge) surrounding code, it seems jogl can't connect to the graphics device.
If somebody knows, could there be known reasons for that?
Reply | Threaded
Open this post in threaded view
|

Re: initSingleton() locks the execution

gouessej
Administrator
If the provided examples work, maybe the problem comes from your own code but we can't help you with very few information. I really advise you to try to reproduce your problem with a smaller code fragment and it would probably allow you to find the root cause or at least it would help us to understand what is wrong.

Edit.: try to use JVisualVM to know where it is locked.
Julien Gouesse | Personal blog | Website