Java-Gaming.org Hi !
Featured games (83)
games approved by the League of Dukes
Games in Showcase (538)
Games in Android Showcase (132)
games submitted by our members
Games in WIP (601)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
   Home   Help   Search   Login   Register   
  Show Posts
Pages: [1]
1  Java Game APIs & Engines / JOGL Development / Re: Applet runs but canvas is white. on: 2007-05-17 04:45:35
solved.

Within the Applet's init() function getSize() was returning Dimension(0,0).
so the canvas was not visible.


    public void init()
    {
        GLCapabilities capabilities = new GLCapabilities();
        capabilities.setSampleBuffers(true);
        capabilities.setNumSamples(4);
        GLCanvas canvas = new GLCanvas(capabilities);
        canvas.addGLEventListener(new BoxShot());

        canvas.setSize(getSize());    
     }
2  Java Game APIs & Engines / JOGL Development / Applet runs but canvas is white. on: 2007-05-17 01:43:03
If I run the same code as an application, then it the render display works fine.

I've instrumented my code with debug messages. and all the functions are called that need to be called.
The canvas flickers if I drag other widows over it (I see 'tearing'), so I know *something* is being painted, but the canvas it is immediately repainted with solid white again.

- Any ideas?
3  Java Game APIs & Engines / JOGL Development / Re: JOGLAppletLauncher locks and browser hangs on: 2007-05-17 01:36:48
Problem solved.
The applet was hosted on a remote webserver and I had a typo in my codebase param (a unreachable host - my dev box) - doh!

...so I guess the connection was timing out.
4  Java Game APIs & Engines / JOGL Development / JOGLAppletLauncher locks and browser hangs on: 2007-05-16 14:37:19
sorry this msg includes a thread stack dump so it is loooooong....

My applet always locks in JOGLAppletLauncher.
The demo applet (https://jogl-demos.dev.java.net/applettest.html) does not hang.
What should I do?
What info is there to glean from the thread stack dump below?
(I Cannot post the entire dump because this forum doesn't allow it.)


Thanks to anyone who can help

Jon


Java Plug-in 1.6.0_01
Using JRE version 1.6.0_01 Java HotSpot(TM) Client VM
User home directory = C:\Documents and Settings\Owner


----------------------------------------------------

Dump thread stack ...
----------------------------------------------------
2007-05-16 07:22:57
Full thread dump Java HotSpot(TM) Client VM (1.6.0_01-b06 mixed mode, sharing):

"TimerQueue" daemon prio=6 tid=0x09bc0800 nid=0x1428 in Object.wait() [0x0b5bf000..0x0b5bfa14]
   java.lang.Thread.State: WAITING (on object monitor)
   at java.lang.Object.wait(Native Method)
   - waiting on <0x20a800a8> (a javax.swing.TimerQueue)
   at javax.swing.TimerQueue.run(Unknown Source)
   - locked <0x20a800a8> (a javax.swing.TimerQueue)
   at java.lang.Thread.run(Unknown Source)

"ConsoleWriterThread" daemon prio=6 tid=0x0a9a6800 nid=0x894 in Object.wait() [0x0b41f000..0x0b41fa94]
   java.lang.Thread.State: WAITING (on object monitor)
   at java.lang.Object.wait(Native Method)
   - waiting on <0x2120a480> (a java.lang.Object)
   at java.lang.Object.wait(Object.java:485)
   at com.sun.deploy.util.ConsoleTraceListener$ConsoleWriterThread.run(Unknown Source)
   - locked <0x2120a480> (a java.lang.Object)

"AWT-EventQueue-1" prio=6 tid=0x0a9a7400 nid=0x1678 runnable [0x0aebf000..0x0aebfb14]
   java.lang.Thread.State: RUNNABLE
   at com.sun.deploy.util.ConsoleHelper.dumpAllStacksImpl(Native Method)
   at com.sun.deploy.util.ConsoleHelper.dumpAllStacks(Unknown Source)
   at sun.plugin.util.PluginConsoleController.dumpAllStacks(Unknown Source)
   at com.sun.deploy.util.ConsoleWindow$2.actionPerformed(Unknown Source)
   at javax.swing.JComponent$ActionStandin.actionPerformed(Unknown Source)
   at javax.swing.SwingUtilities.notifyAction(Unknown Source)
   at javax.swing.JComponent.processKeyBinding(Unknown Source)
   at javax.swing.KeyboardManager.fireBinding(Unknown Source)
   at javax.swing.KeyboardManager.fireKeyboardAction(Unknown Source)
   at javax.swing.JComponent.processKeyBindingsForAllComponents(Unknown Source)
   at javax.swing.JComponent.processKeyBindings(Unknown Source)
   at javax.swing.JComponent.processKeyEvent(Unknown Source)
   at java.awt.Component.processEvent(Unknown Source)
   at java.awt.Container.processEvent(Unknown Source)
   at java.awt.Component.dispatchEventImpl(Unknown Source)
   at java.awt.Container.dispatchEventImpl(Unknown Source)
   at java.awt.Component.dispatchEvent(Unknown Source)
   at java.awt.KeyboardFocusManager.redispatchEvent(Unknown Source)
   at java.awt.DefaultKeyboardFocusManager.dispatchKeyEvent(Unknown Source)
   at java.awt.DefaultKeyboardFocusManager.preDispatchKeyEvent(Unknown Source)
   at java.awt.DefaultKeyboardFocusManager.typeAheadAssertions(Unknown Source)
   at java.awt.DefaultKeyboardFocusManager.dispatchEvent(Unknown Source)
   at java.awt.Component.dispatchEventImpl(Unknown Source)
   at java.awt.Container.dispatchEventImpl(Unknown Source)
   at java.awt.Window.dispatchEventImpl(Unknown Source)
   at java.awt.Component.dispatchEvent(Unknown Source)
   at java.awt.EventQueue.dispatchEvent(Unknown Source)
   at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
   at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
   at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
   at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
   at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
   at java.awt.EventDispatchThread.run(Unknown Source)

"Thread-7" prio=6 tid=0x0a813800 nid=0x1154 runnable [0x00000000..0x0ac0f714]
   java.lang.Thread.State: RUNNABLE

"Thread-6" prio=6 tid=0x0a828c00 nid=0x1484 runnable [0x0b20f000..0x0b20fd94]
   java.lang.Thread.State: RUNNABLE
   at sun.awt.image.CachingSurfaceManager.getSourceSurfaceData(Unknown Source)
   at sun.java2d.SurfaceData.getSourceSurfaceData(Unknown Source)
   at sun.java2d.pipe.DrawImage.renderImageCopy(Unknown Source)
   at sun.java2d.pipe.DrawImage.copyImage(Unknown Source)
   at sun.java2d.pipe.DrawImage.copyImage(Unknown Source)
   at sun.java2d.SunGraphics2D.drawImage(Unknown Source)
   at sun.awt.image.ImageRepresentation.drawToBufImage(Unknown Source)
   at sun.java2d.pipe.DrawImage.copyImage(Unknown Source)
   at sun.java2d.SunGraphics2D.drawImage(Unknown Source)
   at sun.java2d.SunGraphics2D.drawImage(Unknown Source)
   at sun.plugin.util.AnimationPanel.renderLogo(Unknown Source)
   at sun.plugin.util.AnimationPanel.renderState4(Unknown Source)
   at sun.plugin.util.AnimationPanel.doPaint(Unknown Source)
   at sun.plugin.util.AnimationPanel.run(Unknown Source)
   at java.lang.Thread.run(Unknown Source)

"Thread-5" prio=4 tid=0x0a825c00 nid=0x11b0 runnable [0x0b10e000..0x0b10fa14]
   java.lang.Thread.State: RUNNABLE
   at java.net.SocketInputStream.socketRead0(Native Method)
   at java.net.SocketInputStream.read(Unknown Source)
   at java.io.BufferedInputStream.fill(Unknown Source)
   at java.io.BufferedInputStream.read1(Unknown Source)
   at java.io.BufferedInputStream.read(Unknown Source)
   - locked <0x21212620> (a java.io.BufferedInputStream)
   at sun.net.www.http.HttpClient.parseHTTPHeader(Unknown Source)
   at sun.net.www.http.HttpClient.parseHTTP(Unknown Source)
   at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
   - locked <0x21185e68> (a sun.net.www.protocol.http.HttpURLConnection)
   at com.sun.deploy.net.HttpUtils.followRedirects(Unknown Source)
   at com.sun.deploy.net.BasicHttpRequest.doRequest(Unknown Source)
   at com.sun.deploy.net.BasicHttpRequest.doGetRequestEX(Unknown Source)
   at com.sun.deploy.net.DownloadEngine.isUpdateAvailable(Unknown Source)
   at com.sun.deploy.cache.DeployCacheHandler.get(Unknown Source)
   - locked <0x21186010> (a com.sun.deploy.cache.DeployCacheHandler)
   at sun.net.www.protocol.http.HttpURLConnection.plainConnect(Unknown Source)
   at sun.net.www.protocol.http.HttpURLConnection.connect(Unknown Source)
   at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
   - locked <0x21186088> (a sun.net.www.protocol.http.HttpURLConnection)
   at sun.net.www.protocol.http.HttpURLConnection.getHeaderField(Unknown Source)
   at com.sun.deploy.cache.DeployCacheHandler.isResourceCacheable(Unknown Source)
   at sun.plugin.PluginURLJarFileCallBack$1.run(Unknown Source)
   at java.security.AccessController.doPrivileged(Native Method)
   at sun.plugin.PluginURLJarFileCallBack.retrieve(Unknown Source)
   at sun.net.www.protocol.jar.URLJarFile.retrieve(Unknown Source)
   at sun.net.www.protocol.jar.URLJarFile.getJarFile(Unknown Source)
   at sun.net.www.protocol.jar.JarFileFactory.get(Unknown Source)
   at sun.net.www.protocol.jar.JarURLConnection.connect(Unknown Source)
   at sun.plugin.net.protocol.jar.CachedJarURLConnection.connect(Unknown Source)
   at sun.plugin.net.protocol.jar.CachedJarURLConnection.getContentLength(Unknown Source)
   at sun.plugin.cache.JarCacheUtil.preload(Unknown Source)
   - locked <0x26aa4d80> (a java.lang.Class for sun.plugin.cache.JarCacheUtil)
   at sun.plugin.AppletViewer.loadJarFiles(Unknown Source)
   at sun.applet.AppletPanel.runLoader(Unknown Source)
   at sun.applet.AppletPanel.run(Unknown Source)
   at java.lang.Thread.run(Unknown Source)

Pages: [1]
 

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

rwatson462 (29 views)
2014-12-15 09:26:44

Mr.CodeIt (20 views)
2014-12-14 19:50:38

BurntPizza (42 views)
2014-12-09 22:41:13

BurntPizza (76 views)
2014-12-08 04:46:31

JscottyBieshaar (37 views)
2014-12-05 12:39:02

SHC (50 views)
2014-12-03 16:27:13

CopyableCougar4 (47 views)
2014-11-29 21:32:03

toopeicgaming1999 (114 views)
2014-11-26 15:22:04

toopeicgaming1999 (102 views)
2014-11-26 15:20:36

toopeicgaming1999 (30 views)
2014-11-26 15:20:08
Resources for WIP games
by kpars
2014-12-18 10:26:14

Understanding relations between setOrigin, setScale and setPosition in libGdx
by mbabuskov
2014-10-09 22:35:00

Definite guide to supporting multiple device resolutions on Android (2014)
by mbabuskov
2014-10-02 22:36:02

List of Learning Resources
by Longor1996
2014-08-16 10:40:00

List of Learning Resources
by SilverTiger
2014-08-05 19:33:27

Resources for WIP games
by CogWheelz
2014-08-01 16:20:17

Resources for WIP games
by CogWheelz
2014-08-01 16:19:50

List of Learning Resources
by SilverTiger
2014-07-31 16:29:50
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!