Weirdest and rarest bug in Java!

You guys won’t believe what I came across!!

My normal applet:

http://ra4king.is-a-geek.net/extras/images/NormalJava.png

The weird bug:

http://ra4king.is-a-geek.net/extras/images/WeirdJava.png

When Google Chrome froze for a second, all I got was a gray background in my game. Looking in the Java Console for a stack trace, I got the applet window there!!! ???

Anyone got any explanation?

Just to fully clarify the “bug”

It works fine in a standalone applet
but it doesn’t work in google chrome window?

Unless there is something deeper I am missing.

edit: or do you mean, it was intended to be launched as an applet, but then launched into its own window, even though it wasnt a jnlp or pop out window?

Applet frame has been detached from applet container, you can reproduce it here http://demo.dzzd.net/HelloWorld/HelloWorld.htm
Click applet than hit F5 and use ALT+TAB to see the browser, it does not contain the applet frame anymore, that s probably what happen to you but why?!

@namrog84
It is not a stand-alone window, look closer at the title and buttons :wink:

EDIT: Look at original post.

@Dzzd
Hitting F5 in the applet doesn’t do anything…

did you give applet focus by clicking on it before ?

its running in the console window! - thats pretty f* weird.
I guess their window handle got shifted somehow.

@DzzD
Yeah. But still this isn’t really an applet thing just for some reason the applet is in the Java Console.

@Matzon
I was so glad I was able to take a screenshot of this when I could! How could this even happen?

I wonder whether it’s related to the code a (now former) boss pointed out to me years ago where there’s a comment to the effect of “We know we’re not honouring the contract with the windowing library here, but we think we can get away with it”.

I’ve seen applets start rendering outside any window, apparently attached to the root.

I was wondering! I havnt been able to play :(. Assumed it was just me

I have a feeling of deja vu. I vaguely recall seeing that once before, but couldn’t repeat it.

How about play it on other browsers? I had FF 3.6.10 and didn’t see that.

That is very strange. Wow what hope is there for applet security when the thing can paint in any random place. Geez

ra4king, i actually thought your game was broken, seeing as it NEVER worked for me; but i had this bug every time i clicked your sig. I get it regularly. For example, pogo games website games normall break after a few minutes. I have java set to open console by default now, and voila… it appears VERY often. On pogo Risk game, drawing to console means co-ordinates are all messed up aswell. Pain in the ass

O_O

I also got this weird buzzing through my headphones whenever I launched any time of Java applicaiton, other than applets. I’ve since formatted and both these are gone. Literally god knows what was causing some of these things, but it was rediculous

Approximately 2% of the time, trying to run my game applet in the browser causes the JVM to crash. It never happens when debugging in NetBeans, and nobody has reported this bug since we switched from Java Web Start to applets 2 months ago. It’s a little disturbing, but since it doesn’t seem to affect any players I haven’t been motivated to debug it.

Also, once or twice while playing Minecraft Classic (this was probably 1-2 years ago) my whole screen starting flashing black very quickly, then I got an Nvidia driver error: “This application has caused too many errors and must be closed.” Could have been my driver version, but I’ve never seen that error with any other game.

Hi

Google Chrome applet support is quite poor, have you ever reproduced this bug with Firefox?