Lee,
This still sounds very much like problems we were seeing. As best I
could track it there is some issue with dynamic allocation of memory
(sometimes it would work sometimes it wouldn't). Try running your app
with a big chunk of memory allocated up front. Something like:
java -mx40000000 -ms40000000 yourProgram
It's a very annoying problem because sometimes it'll run flawlessly for
hours, sometimes it'll die before bringing up the Canvas3D, sometimes
it'll die just about dang near anytime. But since allocating memory up
front it hasn't died at all.
- John Wright
Starfire Research
"J. Lee Dixon" wrote:
>
> Well, I'm still at it. I took Kelvin's advice and updated drivers,
> windows, DirectX 8.0a, running in Emulation mode using -Dj3d.d3ddevice
> flag, but I am still having the same problem: my applet/application
> hangs Windows 98.
>
> I have found that my applet sometimes freezes while running, but
> sometimes it even hangs before the first frame.
>
> Lastly, I tried using Java 1.3.1-beta. For the first hour, even my test
> program (attached) would cause the machine to hang. Of course after
> investigating for a couple hours, it doesn't hang anymore. :-? Nope,
> no stack trace dump.
>
> I need serious help. My full-up app uses Java3D and Swing, but my test
> app does not, so it's not a Swing thing. The only thing I can figure is
> application size. Does anyone have a "large" app I can try on my
> Win98/ME machines?
>
> -Lee
>
> > -----Original Message-----
> > From: Doug Twilleager [mailto:[EMAIL PROTECTED]]
> > Sent: Friday, March 23, 2001 3:53 PM
> > To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
> > Subject: RE: [JAVA3D] Sun help! Applet freezes on Win98/ME machines
> >
> >
> > I have heard that Win2K does handle threads better than Win98/ME.
> > But since the whole machine is wedged, I don't think it is a Java
> > deadlock. It sounds like an interaction problem between the drivers
> > and threads. Can you get it to happen before any Java 3D object is
> > created? It would help if we could know for sure it was us
> > vs the JVM.
> > If it is us, then the only way for us to track it down is with a test
> > program. And, yes we do have Win98 HW to test on. :^)
> >
> > Doug Twilleager
> > Sun Microsystems
> >
> >
> > >To: "'Doug Twilleager'" <[EMAIL PROTECTED]>,
> > [EMAIL PROTECTED]
> > >Subject: RE: [JAVA3D] Sun help! Applet freezes on Win98/ME machines
> > >MIME-Version: 1.0
> > >
> > >Yep, completely wedged, hung, locked-up, frozen, melvin-ed, 86'd.
> > >Sometimes I have to hit the restart button.
> > >
> > >And yes, I have also tried upgrading to DirectX 8, and doing Windows
> > >Update. Still dies.
> > >
> > >My next step was to make one of the machines dual-boot and install
> > >Windows 2000. After doing this on the TNT2/Celeron 566Mhz
> > machine, my
> > >applet ran fine, but slow (5fps) because I didn't have the
> > TNT2 drivers
> > >installed yet. After installing the Detonator3 drivers,
> > I've got a good
> > >frame rate (50fps) and no freeze-up.
> > >
> > >Summing up... same hardware, different OS, Win2k works,
> > WinME does not.
> > >Could it be that Win2K has better thread handling??
> > >
> > >As for a test program.... ;) Could you guys do anything if
> > I sent you
> > >my whole set of JARs? Do you guys have Win98 machines to test on?
> > >
> > >-Lee
> > >
> > >> -----Original Message-----
> > >> From: Doug Twilleager [mailto:[EMAIL PROTECTED]]
> > >> Sent: Friday, March 23, 2001 2:13 PM
> > >> To: [EMAIL PROTECTED]
> > >> Subject: Re: [JAVA3D] Sun help! Applet freezes on Win98/ME machines
> > >>
> > >>
> > >> This feels a lot like a deadlock. Moving from OS to OS can change
> > >> thread timing and scheduling behavior. Is there any way to get a
> > >> thread dump, or are you completely wedged?
> > >>
> > >>
> > >> Doug Twilleager
> > >> Sun Microsystems
> > >>
> > >> >MIME-Version: 1.0
> > >> >Subject: [JAVA3D] Sun help! Applet freezes on Win98/ME machines
> > >> >To: [EMAIL PROTECTED]
> > >> >
> > >> >My project applet/application has been running great on my
> > >> Win2k machine
> > >> >for a while now. But trying to run it in applet or
> > >> application mode on
> > >> >a Windows 98 AND a Windows ME machine gives unpredictable results.
> > >> >Somewhere along the way, sometimes before the first frame is
> > >> rendered,
> > >> >otherwise just later during navigation, the whole thing just
> > >> freezes up.
> > >> >Even Windows is frozen... pressing CTRL-ALT-DEL brings up the task
> > >> >manager (sometimes), but even that window is frozen.
> > >> >
> > >> >I am currently investigating this problem with two computers that
> > >> >replicate the problem. It happens with several different
> > video cards
> > >> >(ATI, Nvidia TNT2) and with DirectX hardware acceleration
> > disabled.
> > >> >Yes, it dies with OpenGL too.
> > >> >
> > >> >I am specifically testing these machines because they are more
> > >> >mainstream, i.e. Win98 machines running CPUs around
> > 550-750 Mhz. I'm
> > >> >not getting good results and it makes me feel that
> > Java/Java3D is not
> > >> >stable on slower machines.
> > >> >
> > >> >I do have an applet that lets me continually add more
> > >> geometry to see if
> > >> >I can make the system freeze, but, of course, it runs
> > like a champ.
> > >> >
> > >> >Of course my application is more advanced... loading models,
> > >> animations,
> > >> >interactive navigation and selection, even image skins.
> > But since it
> > >> >dies at the beginning sometimes before rendering has begun, I'm
> > >> >wondering what I could be doing wrong.
> > >> >
> > >> >Anybody else have these types of troubles on Win98
> > machines?? Does
> > >> >anyone have a "chunky" example I could try on these machines
> > >> to see if
> > >> >it is just my demo?? I'm desperate, can't you tell ;)
> > >> >
> > >> >-Lee
> > >> >
> > >> >J. Lee Dixon
> > >> >SAIC - Celebration, FL
> > >> >321-939-7917
> > >> >[EMAIL PROTECTED] AOL: LeeOrlando
> > >> >
> > >> >=============================================================
> > >> ==============
> > >> >To unsubscribe, send email to [EMAIL PROTECTED] and
> > >> include in the body
> > >> >of the message "signoff JAVA3D-INTEREST". For general help,
> > >> send email to
> > >> >[EMAIL PROTECTED] and include in the body of the
> > message "help".
> > >>
> > >> ==============================================================
> > >> =============
> > >> To unsubscribe, send email to [EMAIL PROTECTED] and
> > >> include in the body
> > >> of the message "signoff JAVA3D-INTEREST". For general help,
> > >> send email to
> > >> [EMAIL PROTECTED] and include in the body of the
> > message "help".
> > >>
> >
>
> ------------------------------------------------------------------------
>
> TestJ3D.htmlName: TestJ3D.html
> Type: Hypertext Markup Language (text/html)
>
> Name: TestJ3D.jar
> TestJ3D.jar Type: Java Archive (application/java-archive)
> Encoding: base64
>
> Name: TestJ3D.java
> TestJ3D.java Type: JAVA File (application/x-unknown-content-type-javaFile)
> Encoding: quoted-printable
===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA3D-INTEREST". For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".