Java-Gaming.org Hi !
Featured games (83)
games approved by the League of Dukes
Games in Showcase (528)
Games in Android Showcase (127)
games submitted by our members
Games in WIP (594)
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  
  problems on linux  (Read 1461 times)
0 Members and 1 Guest are viewing this topic.
Offline William Denniss

JGO Coder


Projects: 2


Fire at will


« Posted 2004-03-30 01:20:30 »

Hi I've got the latest package off lwjgl.org (the unofficial one) wanting to try out Xith3D on LWJGL.

Alas I get a native crash when it tries to open a window.

1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
12  
13  
14  
15  
16  
17  
18  
19  
 java org.lwjgl.test.WindowCreationTest
Found 4 display modes
 
Unexpected Signal : 11 occurred at PC=0x401E68F6
Function=(null)+0x401E68F6
Library=/usr/java/j2sdk1.4.2_03/jre/lib/i386/client/libjvm.so
 
NOTE: We are unable to locate the function name symbol for the error
      just occurred. Please refer to release documentation for possible
      reason and solutions.
 
 
Current Java thread:
        at org.lwjgl.opengl.Window.nCreate(Native Method)
        at org.lwjgl.opengl.Window.createWindow(Window.java:313)
        at org.lwjgl.opengl.Window.create(Window.java:291)
        at org.lwjgl.test.WindowCreationTest.main(WindowCreationTest.java:58)
 
Dynamic libraries:


When I run the tests, I get this message:
1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
12  
13  
14  
15  
16  
17  
18  
19  
20  
java org.lwjgl.test.DisplayTest
==== Test Current ====
Info about current:
Platform: GLX
Graphics card: null, version: null
Resolution: 1024x768x16@0Hz
---- Test Current ----
==== Test query ====
Retrieving available displaymodes
Found 4 modes
The first 5 are:
800 x 600 x 16 @0Hz
512 x 384 x 16 @0Hz
640 x 480 x 16 @0Hz
1024 x 768 x 16 @0Hz
---- Test query ----
==== Test setDisplayMode ====
Retrieving available displaymodes
Looking for 640x480x16@60...error
FATAL: Unable to find basic mode.


What does that mean and how do I fix it?

The native dump really shouldn't happen anyway should it, is that a bug?

I am running Red Hat 9, on a laptop with software gl rendering (Mesa).  Xith3D and JOGL work fine (almost all demos will run, if a little slow).

Thanks in advance,

Will.

Offline Matzon

JGO Knight


Medals: 19
Projects: 1


I'm gonna wring your pants!


« Reply #1 - Posted 2004-03-30 02:45:34 »

LWJGL doesn't allow software modes, since it doesn't make sense in a gaming library. However we provide a hidden preference to allow software mode for developers working in software mode. Just set the property org.lwjgl.opengl.Window.allowSoftwareOpenGL to true, typically by passing:
-Dorg.lwjgl.opengl.Window.allowSoftwareOpenGL=true on the command line. I do however believe you will need the latest from cvs for that to work.

Offline elias

Senior Devvie





« Reply #2 - Posted 2004-03-30 03:42:33 »

And the native crash you saw has been fixed in CVS already :-) It had something to do with me throwing multiple exceptions on one native call.

- elias

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

Junior Devvie




where I should sign ?


« Reply #3 - Posted 2004-03-30 08:45:35 »

Quote
And the native crash you saw has been fixed in CVS already :-) It had something to do with me throwing multiple exceptions on one native call.

- elias


evil JNI Smiley
Offline William Denniss

JGO Coder


Projects: 2


Fire at will


« Reply #4 - Posted 2004-03-30 10:06:44 »

Thanks for the info.

Now for my other test machine: GeForce2MX 400, Linux (Fedora 1) most things work except for the "Grass" demo:

1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
12  
java org.lwjgl.test.opengl.Grass
Display mode: 640 x 480 x 24 @0Hz
Created display.
Created OpenGL.
Vertex program supported: true
java.io.IOException: Stream closed
        at java.io.BufferedInputStream.ensureOpen(BufferedInputStream.java:120)
        at java.io.BufferedInputStream.read(BufferedInputStream.java:199)
        at org.lwjgl.test.opengl.Grass.loadFile(Grass.java:126)
        at org.lwjgl.test.opengl.Grass.main(Grass.java:149)
Exception in thread "main" java.lang.NullPointerException
        at org.lwjgl.test.opengl.Grass.main(Grass.java:150)


any idea why?

Cheers,

Will.

Offline elias

Senior Devvie





« Reply #5 - Posted 2004-03-30 10:26:29 »

It needs a file (the vertex shader) from the res/ directory, try adding that to the classpath.

- elias

Offline Matzon

JGO Knight


Medals: 19
Projects: 1


I'm gonna wring your pants!


« Reply #6 - Posted 2004-03-30 11:04:05 »

actually it's in /src/java/org/lwjgl/test/opengl/ - so including /src/java in the classpath will do?

Offline William Denniss

JGO Coder


Projects: 2


Fire at will


« Reply #7 - Posted 2004-03-31 05:50:52 »

ta Smiley

Will.

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.

PocketCrafter7 (15 views)
2014-11-28 16:25:35

PocketCrafter7 (10 views)
2014-11-28 16:25:09

PocketCrafter7 (11 views)
2014-11-28 16:24:29

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

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

toopeicgaming1999 (17 views)
2014-11-26 15:20:08

SHC (30 views)
2014-11-25 12:00:59

SHC (28 views)
2014-11-25 11:53:45

Norakomi (33 views)
2014-11-25 11:26:43

Gibbo3771 (28 views)
2014-11-24 19:59:16
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

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