Eli Delventhal
|
 |
«
Posted
2010-07-13 14:32:51 » |
|
When trying to run: http://www.otcsw.com/applet/PixelSplosion/collisiontest.html1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
| 7/13/10 5:16:07 AM Safari[209] Apple Java Plugin: Unexpected exception occurred (/SourceCache/JavaJDK16/JavaJDK16-279/deploy/src/plugin/macosx/native/apple/applet/JavaWebKitView.m - -[JavaWebKitView callDestroy:] : 300) 7/13/10 5:16:07 AM Safari[209] java.lang.NullPointerException at sun.plugin.viewer.WebKitPluginObject.destroyPlugin(WebKitPluginObject.java:657) at sun.plugin.viewer.WebKitPluginObject.destroyPlugin(WebKitPluginObject.java:640) 7/13/10 5:16:07 AM Safari[209] Please file a bug report at http:7/13/10 5:16:16 AM [0x0-0x1e01e].com.apple.Safari[209] Fatal error occured (4): forbid thread creation in disposed TG 7/13/10 5:16:16 AM [0x0-0x1e01e].com.apple.Safari[209] java.lang.IllegalThreadStateException: forbid thread creation in disposed TG 7/13/10 5:16:16 AM [0x0-0x1e01e].com.apple.Safari[209] at sun.plugin.security.ActivatorSecurityManager.checkAccess(ActivatorSecurityManager.java:159) 7/13/10 5:16:16 AM [0x0-0x1e01e].com.apple.Safari[209] at java.lang.ThreadGroup.checkAccess(ThreadGroup.java:299) 7/13/10 5:16:16 AM [0x0-0x1e01e].com.apple.Safari[209] at java.lang.Thread.init(Thread.java:332) 7/13/10 5:16:16 AM [0x0-0x1e01e].com.apple.Safari[209] at java.lang.Thread.<init>(Thread.java:379) 7/13/10 5:16:16 AM [0x0-0x1e01e].com.apple.Safari[209] at org.lwjgl.util.applet.AppletLoader$4.<init>(AppletLoader.java:963) 7/13/10 5:16:16 AM [0x0-0x1e01e].com.apple.Safari[209] at org.lwjgl.util.applet.AppletLoader.getJarInputStream(AppletLoader.java:963) 7/13/10 5:16:16 AM [0x0-0x1e01e].com.apple.Safari[209] at org.lwjgl.util.applet.AppletLoader.downloadJars(AppletLoader.java:885) 7/13/10 5:16:16 AM [0x0-0x1e01e].com.apple.Safari[209] at org.lwjgl.util.applet.AppletLoader.run(AppletLoader.java:633) 7/13/10 5:16:16 AM [0x0-0x1e01e].com.apple.Safari[209] at java.lang.Thread.run(Thread.java:637) |
This is happening in Java 1.6.0_20 32-bit with Safari 4.0.5 on Mac OS X 10.6.3 2Ghz Intel Core Duo. It does not happen on my work machine, which is Java 1.6.0_20 64-bit with Safari 5.0 on Mac OS X 10.6.4 2.53 Ghz Intel Core 2 Duo. This causes the canvas to stay white (all the LWJGL loading happens, but I can never see anything). That error code is usually not reported (typically I see no errors at all). I tried to run it in 32-bit Java on my work machine and had no issues. I also installed Safari 5.0 on my home machine and it still wouldn't work. I heard this may be a driver issue, but Minecraft is able to run fine on my home computer, as well as most LWJGL applets I try to use on it (although some do indeed get the white screen). Similarly, I am able to run this in the AppletLoader (from Eclipse) and I've gotten LWJGL stuff to work fine via Webstart. If I try running this with an older version of LWJGL will that potentially help things?
|
|
|
|
kappa
|
 |
«
Reply #1 - Posted
2010-07-13 21:03:39 » |
|
Wish I had access to a mac so could debug this.
However, does look like some sort of mac issue and the AppletLoader, since its failing before reaching LWJGL code. If your up for some debugging grab the LWJGL AppletLoader code and see if you can narrow it to the problematic piece of code (its just java2d with a bit of other standard java stuff).
Most likely its some sort of jre/mac specific issue but should be fixable if we can find out why its failing.
|
|
|
|
|
Eli Delventhal
|
 |
«
Reply #2 - Posted
2010-07-14 00:26:55 » |
|
Wish I had access to a mac so could debug this.
However, does look like some sort of mac issue and the AppletLoader, since its failing before reaching LWJGL code. If your up for some debugging grab the LWJGL AppletLoader code and see if you can narrow it to the problematic piece of code (its just java2d with a bit of other standard java stuff).
Most likely its some sort of jre/mac specific issue but should be fixable if we can find out why its failing.
Yeah, I might give that a try at some point in the future, but unfortunately I'm on a bit of a time crunch with this so that's not incredibly likely. We'll have to see - either way it will probably be worth making my own AppletLoader like Minecraft does in order to maximize reachability.
|
|
|
|
Games published by our own members! Check 'em out!
|
|
bobjob
|
 |
«
Reply #3 - Posted
2010-07-14 00:35:52 » |
|
Im just stabbing in the dark. 1
| sun.plugin.security.ActivatorSecurityManager.checkAccess(ActivatorSecurityManager.java:159) |
could it be that you have the certificate blocked in the key manager? try this appletloader, its signed by a different certificate: http://have2chat.net/mixedcode
|
|
|
|
kappa
|
 |
«
Reply #4 - Posted
2010-07-14 00:37:33 » |
|
either way it will probably be worth making my own AppletLoader like Minecraft does in order to maximize reachability.
thought minecraft just used the standard lwjgl appletloader. But yeh like bobjob above it does use its own certificate.
|
|
|
|
|
Eli Delventhal
|
 |
«
Reply #5 - Posted
2010-07-14 00:45:22 » |
|
Im just stabbing in the dark. 1
| sun.plugin.security.ActivatorSecurityManager.checkAccess(ActivatorSecurityManager.java:159) |
could it be that you have the certificate blocked in the key manager? try this appletloader, its signed by a different certificate: http://have2chat.net/mixedcodeSeems to work, I see a big bullseye on a red background. Is there a reason this certificate would be blocked? I haven't blocked anything. Should I potentially just sign all the LWJGL jars with my own signature? I could be wrong about Minecraft, but I had a look at its HTML and it doesn't look like AppletLoader.
|
|
|
|
bobjob
|
 |
«
Reply #6 - Posted
2010-07-14 00:47:03 » |
|
what it most likely sounds like, is that one of the jar files isnt signed. maybe re-download the appletloader, and try again. 
|
|
|
|
kappa
|
 |
«
Reply #7 - Posted
2010-07-14 00:51:19 » |
|
I could be wrong about Minecraft, but I had a look at its HTML and it doesn't look like AppletLoader.
you are talking about the one found here right?
|
|
|
|
|
|
|
bobjob
|
 |
«
Reply #9 - Posted
2010-07-14 02:31:58 » |
|
Also, bobjob, why would it work on one machine but not another if it was a signing issue?
not sure, it was just an idea. Should I potentially just sign all the LWJGL jars with my own signature?
I also noticed the "forbid thread creation" in the error, so it might have been an issue with mixed code (could depend on the version of java yet it seems there the same version  ). Did you manage to get a version working, after downloading? probably best to grab the version from the nightly build. sorry Demonpants Im really not sure what the issue is. By time crunch, when did you need to get it working by, I think the newer version of LWJGL 2.5 is coming out next week.
|
|
|
|
Games published by our own members! Check 'em out!
|
|
Eli Delventhal
|
 |
«
Reply #10 - Posted
2010-07-15 06:28:54 » |
|
not sure, it was just an idea. I also noticed the "forbid thread creation" in the error, so it might have been an issue with mixed code (could depend on the version of java yet it seems there the same version  ). Did you manage to get a version working, after downloading? probably best to grab the version from the nightly build. sorry Demonpants Im really not sure what the issue is. By time crunch, when did you need to get it working by, I think the newer version of LWJGL 2.5 is coming out next week. By time crunch I just mean a lot of things need to be done within a month. I'm not worried about rushing to get this working at the moment, it's just slightly annoying is all. But yeah I'm really not spending much time at this point. I've just been putting up test builds every couple of days for my artist to see, just a little bit troublesome I can't see them without using my work machine.
|
|
|
|
Eli Delventhal
|
 |
«
Reply #11 - Posted
2010-07-15 06:35:55 » |
|
One weird thing is that this works: http://www.otcsw.com/applet/PixelSplosion/appletloader.htmlAnd it's literally the exact same loader I'm using, just a different JAR file. Do I need to package my JAR some special way? Anything I might be able to put into it that would make it not work? It's pretty small and simple.
|
|
|
|
bobjob
|
 |
«
Reply #12 - Posted
2010-07-15 15:12:29 » |
|
did you sign the jar file?
|
|
|
|
Riven
|
 |
«
Reply #13 - Posted
2010-07-15 15:19:21 » |
|
If anything, make sure all your JARs are signed with the same key, otherwise you trigger 'mixed-mode' which is a hand warm steaming pile of something very specific.
|
|
|
|
Eli Delventhal
|
 |
«
Reply #14 - Posted
2010-07-15 15:26:50 » |
|
I didn't sign it at all because I figured it doesn't do anything that makes it need signing. I guess that must be part of the issue, then. Sorry about that if it is the problem, I'm very unfamiliar with signed applets still. Webstart no doubt would have whined at me about this already...
|
|
|
|
Eli Delventhal
|
 |
«
Reply #15 - Posted
2010-07-15 17:24:26 » |
|
Blurg... Arrgg.... Grrr...
It works after signing it. I can't believe it &$%#ing works after signing it. &$%# that. I would have tried that from day 1 if it hadn't been working on my other machine with no issues. Sigh...
Well... whatever. At least everything is happy days again...
|
|
|
|
Riven
|
 |
«
Reply #16 - Posted
2010-07-15 18:34:13 » |
|
Blurg... Arrgg.... Grrr...
It works after signing it. I can't believe it &$%#ing works after signing it. &$%# that. I would have tried that from day 1 if it hadn't been working on my other machine with no issues. Sigh...
Well... whatever. At least everything is happy days again...
Nice. Next up: file a bug report and wait a few years 
|
|
|
|
Eli Delventhal
|
 |
«
Reply #17 - Posted
2010-07-15 21:45:07 » |
|
Hm. I just had a friend try it (also on a Mac, probably very similar specs to the two machines I've tried with) and he gets exactly the same thing (white screen).
Damn it.
Since LWJGL is open source maybe I'll just pull the AppletLoader apart and write my own. :/
|
|
|
|
kappa
|
 |
«
Reply #18 - Posted
2010-07-15 22:39:39 » |
|
Hm. I just had a friend try it (also on a Mac, probably very similar specs to the two machines I've tried with) and he gets exactly the same thing (white screen).
Damn it.
Since LWJGL is open source maybe I'll just pull the AppletLoader apart and write my own. :/
be great if you do find a fix and contribute it back to LWJGL 
|
|
|
|
|
Eli Delventhal
|
 |
«
Reply #19 - Posted
2010-07-16 04:17:39 » |
|
be great if you do find a fix and contribute it back to LWJGL  Yeah if I do I definitely will put it into the repository.
|
|
|
|
|