Java-Gaming.org    
Featured games (81)
games approved by the League of Dukes
Games in Showcase (495)
Games in Android Showcase (114)
games submitted by our members
Games in WIP (563)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  LWJGL crashing?  (Read 5357 times)
0 Members and 1 Guest are viewing this topic.
Offline erikd

JGO Ninja


Medals: 16
Projects: 4
Exp: 14 years


Maximumisness


« Posted 2003-01-31 17:52:09 »

Hi there,

1st off, I'm getting more and more fond of LWJGL and Open-GL. I'm now at the stage that I'm wondering why I've ever bothered with non-accellerated 2d techniques  Cheesy

But... (there's always a 'but' isn't there  Wink), now that my 1st ogl game is progressing nicely and that I'm spending more time play-testing it, it crashes after a while  Huh.
Not during gameplay, but when I exit and try to return to windows.
I have the feeling that it might have something to do with input, because after a while my pc speaker starts to make rattling noises when I press keys, as if the keyboard buffer overflows.
When that happens and I start hearing those noises, the PC is very likely to freeze with a black screen when I exit to windows with the only option to press reset and reboot...
I'm using the BaseWindow class from the examples for initializing OGL and exiting from it.

Anyone else experienced this? Any workaround?

Greetings,
Erik

Offline princec

JGO Kernel


Medals: 378
Projects: 3
Exp: 16 years


Eh? Who? What? ... Me?


« Reply #1 - Posted 2003-01-31 18:38:19 »

No probs here. As with all crash reports post:
OS, CPU, VGA card, sound card, JDK, driver versions
and any other gubbins you can get hold of which might be relevant.

Cas Smiley

Offline erikd

JGO Ninja


Medals: 16
Projects: 4
Exp: 14 years


Maximumisness


« Reply #2 - Posted 2003-01-31 19:13:22 »

Oh, yes of course (sorry):

- Win 98 SE
- P2/450
- 128Mb
- JDK 1.4.0_01
- gForce 4 Ti4200 64Mb (Driver version 4.13.01.4109)
- Soundblaster 128 (Driver version is 4.06.1156, but I'm not using any sound yet. The noises come from the pc speaker)
- Asus BX-440 motherboard

Greetings,
Erik

Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline princec

JGO Kernel


Medals: 378
Projects: 3
Exp: 16 years


Eh? Who? What? ... Me?


« Reply #3 - Posted 2003-01-31 19:22:23 »

What's your exit code look like?

Cas Smiley

Offline erikd

JGO Ninja


Medals: 16
Projects: 4
Exp: 14 years


Maximumisness


« Reply #4 - Posted 2003-02-01 07:26:39 »

I'll direct all output to a file and try to force a crash, because like I said the screen turns black and there's nothing else to do than to reset.
It doesn't crash always when that rattling noise starts, so that may be just a red herring.

Anyway, I'll try to crash my pc again and post the results  Smiley

Greetings,
Erik

Offline erikd

JGO Ninja


Medals: 16
Projects: 4
Exp: 14 years


Maximumisness


« Reply #5 - Posted 2003-02-01 09:43:04 »

Hmm.. no errors are outputted  :-/
I noticed that even moving the mouse makes my pc-speaker rattle. Even when the screen turned black and the pc is frozen.
Very weird...

Erik

Offline erikd

JGO Ninja


Medals: 16
Projects: 4
Exp: 14 years


Maximumisness


« Reply #6 - Posted 2003-02-01 09:48:52 »

Quote
What's your exit code look like?

1  
2  
3  
4  
5  
6  
protected void killGLWindow() {
        Mouse.destroy();
        Keyboard.destroy();
        gl.destroy();
        Display.destroy();
}


It's from the BaseWindow class in the examples.

Offline princec

JGO Kernel


Medals: 378
Projects: 3
Exp: 16 years


Eh? Who? What? ... Me?


« Reply #7 - Posted 2003-02-01 10:01:35 »

Hm, nothing funny about that code; it's basically the same as mine.

That clicking noise is what happens when the operating system's input buffer fills up - every keyboard/mouse movement generates an event that isn't being consumed so it makes a little beep instead.

Have you looked for any drivers and such?

And what happens when you run in debug (non-fullscreen) mode?

Cas Smiley

Offline erikd

JGO Ninja


Medals: 16
Projects: 4
Exp: 14 years


Maximumisness


« Reply #8 - Posted 2003-02-01 13:48:28 »

It seems to work fine in a window...
My (video-)drivers are the latest and I don't have any problems with any open-gl games.

I just found that when things seem to crash and I press ctrl-alt-delete, after about a minute a BSOD appears with a dialog saying something like "waiting for 'close application' dialog to appear. Press space to continue waiting or ctrl-alt-delete to reboot" (something like that). When I pressed space to continue, a "close program" dialog appeared with "Ddhelp [not responding]". When I close that Ddhelp thing, the desktop comes back, but my game won't start again until a reset (it hangs immediately when I try.
I haven't got the slightest idea what that Ddhelp thingy is but it seems related...

Offline princec

JGO Kernel


Medals: 378
Projects: 3
Exp: 16 years


Eh? Who? What? ... Me?


« Reply #9 - Posted 2003-02-01 20:03:26 »

Can you be sure that the killWindow method is being called? And on which line do you think it hangs? You'll have to use a remote debugger to find out unfortunately and that's a bit beyond my ken right now. Or you could write out something to a file each time and make sure it's flushed before carrying on to the next line. Tedious I know but it's got to be done...

Cas Smiley

Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline erikd

JGO Ninja


Medals: 16
Projects: 4
Exp: 14 years


Maximumisness


« Reply #10 - Posted 2003-02-02 12:54:24 »

I put some logging in the code, and the weird thing is: it doesn't seem to crash anymore!  :-/
I really only put some System.out.println()'s between all lines in the exit code.
I'm still getting those rattling noises but that's all...
I'll still try to locate where it's getting wrong, but it might take a little...

I'm having another problem regarding windows getting in front of the open-gl screen. It seems not everybody is getting this problem, but most do.
I described it at the following thread (where I also posted a link to the game):

http://www.java-gaming.org/cgi-bin/JGOForums/YaBB.cgi?board=Announcements;action=display;num=1044200919;start=0

Offline princec

JGO Kernel


Medals: 378
Projects: 3
Exp: 16 years


Eh? Who? What? ... Me?


« Reply #11 - Posted 2003-02-02 19:22:54 »

Mm, yes, I wonder if we should do something about that Smiley

Cas Smiley

Offline cfmdobbie

Senior Member


Medals: 1


Who, me?


« Reply #12 - Posted 2003-02-02 20:08:41 »

ROFL!  Grin

Hellomynameis Charlie Dobbie.
Offline erikd

JGO Ninja


Medals: 16
Projects: 4
Exp: 14 years


Maximumisness


« Reply #13 - Posted 2003-02-05 17:21:50 »

Well, I got the same crash again.
It crashes when my program exits:
The last line before it does (at System.exit(err)Wink it does a System.out.println("Game Ended."); and that showed up in the log.
So, I suspect it has something to do with (video-) drivers or something and not with LWJGL...

That crash was a suitable end for a shitty day where *everything* went wrong  :-/
I'll turn off my computer now and read a book or something. I really need to be not near a PC for a while...

Offline princec

JGO Kernel


Medals: 378
Projects: 3
Exp: 16 years


Eh? Who? What? ... Me?


« Reply #14 - Posted 2003-02-05 20:02:55 »

Oh, you think everything went wrong for you eh? Well how do you like this:

Today, Eclipse crashed with a NPE somewhere in its innards, and deleted the XAP source directory and everything under it. Zip! Gone! Kapoof!

Thank f*ck for CVS is all I can say.

Eclipse has been playing up in a BIG way just lately Angry

Every time I exit the IDE (or it crashes), it will refuse to resart unless I reinstall it. I've tried reinstalling XP, virus checking, scandisking, new JDK, etc. but to no avail. It's getting very bothersome indeed. But deleting my source code instantly after a crash is totally, utterly, unforgiveable. Gah.

Cas Smiley

Offline erikd

JGO Ninja


Medals: 16
Projects: 4
Exp: 14 years


Maximumisness


« Reply #15 - Posted 2003-02-06 06:50:27 »

sheesh, that is bad!  Shocked

Yes, as much as I like Eclipse, it certainly does have its quirks.
At work, I use win2k pc and eclipse for development. I use windows automatic update because I need to know which windows feature was fixed/broken this week.
Unfortunately, my win installation didn't survive the last automatic patch install:
During installation (which just started while I was working), my PC just powered down without warning leaving sources I had open corrupt.
My inbox broke so I lost all email. Eclipse also wouldn't start again, even after reinstalling. I got all kinds of weird errors that only M$ can think of. So I lost a full day reinstalling my PC while I'm already well behind schedule.
Of course in my hurry I forgot to backup a thing or two.
When I got things working again, I just tried to start my game through web start. Of course it didn't work anymore. Nor on my co-worker's PC.
Tried to fix my alpha blending code at home for about the 1000th time. Still no success.
The last try crashed my PC at home.

Just one of those days I guess.

Pages: [1]
  ignore  |  Print  
 
 
You cannot reply to this message, because it is very, very old.

 

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

The first screenshot will be displayed as a thumbnail.

BurntPizza (12 views)
2014-09-19 03:14:18

Dwinin (30 views)
2014-09-12 09:08:26

Norakomi (57 views)
2014-09-10 13:57:51

TehJavaDev (79 views)
2014-09-10 06:39:09

Tekkerue (40 views)
2014-09-09 02:24:56

mitcheeb (62 views)
2014-09-08 06:06:29

BurntPizza (45 views)
2014-09-07 01:13:42

Longarmx (30 views)
2014-09-07 01:12:14

Longarmx (36 views)
2014-09-07 01:11:22

Longarmx (36 views)
2014-09-07 01:10:19
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

List of Learning Resources
by SilverTiger
2014-07-31 16:26:06

List of Learning Resources
by SilverTiger
2014-07-31 11:54:12

HotSpot Options
by dleskov
2014-07-08 01:59:08
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!