line graphics noise (only when compiling from source)

For discussion of ports to POSIX based systems, especially using GNUStep.

Moderators: winston, another_commander, Getafix

Post Reply
noOp
Average
Average
Posts: 8
Joined: Fri Sep 23, 2005 5:42 am

line graphics noise (only when compiling from source)

Post by noOp »

Here are a few shots: http://skybound.portland.co.uk/oolite/w ... nes_noise/

I noticed them while running my modified svn trunk version, though was willing to attribute them to my own errors. They also appear when compiling a clean 1-55.1 checkout. Strangely enough I can't reproduce them in the binary release. This didn't happen in 1-52.x, not sure about 53.

From what I can tell they seem to be coming from the planet; I find them most visible when flying close to the sun and turning towards the planet.
As your package works this is may very well be a problem of my setup.
Maybe you have an idea? I'd appreciate any help.

I do get a few warnings while compiling, is this 'normal'? Or a problem of my debian GNUstep libs; maybe I'll try a self-made version on the weekend.
Here is stderr after a clean build:
---
TextureStore.m: In function ‘-[TextureStore getTextureNameFor:]’:
TextureStore.m:260: warning: multiple methods named ‘-objectForKey:’ found
/usr/lib/GNUstep/System/Library/Headers/Foundation/NSDictionary.h:72: warning: using ‘-(id)objectForKey:(id)aKey’
/usr/lib/GNUstep/System/Library/Headers/Foundation/NSUserDefaults.h:245: warning: also found ‘-(id)objectForKey:(NSString *)defaultName’
TextureStore.m: In function ‘-[TextureStore getSizeOfTexture:]’:
TextureStore.m:270: warning: multiple methods named ‘-objectForKey:’ found
/usr/lib/GNUstep/System/Library/Headers/Foundation/NSDictionary.h:72: warning: using ‘-(id)objectForKey:(id)aKey’
/usr/lib/GNUstep/System/Library/Headers/Foundation/NSUserDefaults.h:245: warning: also found ‘-(id)objectForKey:(NSString *)defaultName’
TextureStore.m:271: warning: multiple methods named ‘-objectForKey:’ found
/usr/lib/GNUstep/System/Library/Headers/Foundation/NSDictionary.h:72: warning: using ‘-(id)objectForKey:(id)aKey’
/usr/lib/GNUstep/System/Library/Headers/Foundation/NSUserDefaults.h:245: warning: also found ‘-(id)objectForKey:(NSString *)defaultName’
Universe.m: In function ‘compareName’:
Universe.m:6403: warning: multiple methods named ‘-objectForKey:’ found
/usr/lib/GNUstep/System/Library/Headers/Foundation/NSDictionary.h:72: warning: using ‘-(id)objectForKey:(id)aKey’
/usr/lib/GNUstep/System/Library/Headers/Foundation/NSUserDefaults.h:245: warning: also found ‘-(id)objectForKey:(NSString *)defaultName’
Universe.m:6403: warning: multiple methods named ‘-objectForKey:’ found
/usr/lib/GNUstep/System/Library/Headers/Foundation/NSDictionary.h:72: warning: using ‘-(id)objectForKey:(id)aKey’
/usr/lib/GNUstep/System/Library/Headers/Foundation/NSUserDefaults.h:245: warning: also found ‘-(id)objectForKey:(NSString *)defaultName’
LoadSave.m: In function ‘-[PlayerEntity(LoadSave) findIndexOfCommander:]’:
LoadSave.m:363: warning: multiple methods named ‘-objectForKey:’ found
/usr/lib/GNUstep/System/Library/Headers/Foundation/NSDictionary.h:72: warning: using ‘-(id)objectForKey:(id)aKey’
/usr/lib/GNUstep/System/Library/Headers/Foundation/NSUserDefaults.h:245: warning: also found ‘-(id)objectForKey:(NSString *)defaultName’
User avatar
winston
Pirate
Pirate
Posts: 731
Joined: Mon Sep 27, 2004 10:21 pm
Location: Port St. Mary, Isle of Man
Contact:

Post by winston »

Those warnings are definitely NOT normal!
User avatar
JensAyton
Grand Admiral Emeritus
Grand Admiral Emeritus
Posts: 6657
Joined: Sat Apr 02, 2005 2:43 pm
Location: Sweden
Contact:

Post by JensAyton »

Weird, but those warnings shouldn't be a problem per se.
User avatar
JensAyton
Grand Admiral Emeritus
Grand Admiral Emeritus
Posts: 6657
Joined: Sat Apr 02, 2005 2:43 pm
Location: Sweden
Contact:

Post by JensAyton »

Oh, and if you look at the screen shots the colours support the idea that the artifact is planet-related.
noOp
Average
Average
Posts: 8
Joined: Fri Sep 23, 2005 5:42 am

Post by noOp »

So far no luck; both the warning and the 'lines' keep occuring.
* tried using gnustep-startup-0.13.0
* updated the rest of the system (switched to x.org and gcc 4)

I'll keep digging, though currently no ideas.
For completeness my system specs:

OpenGL renderer string: Mesa DRI R200 20040929
OpenGL version string: 1.3 Mesa 6.2.1
[Radeon 9200 running x.org with the free driver]

gcc (GCC) 4.0.2 (Debian 4.0.2-2)
[though it happend with 3.4, too]

libc6 2.3.5-6
libstdc++6 4.0.2-2
eddyp
Competent
Competent
Posts: 63
Joined: Tue May 02, 2006 2:44 pm

Post by eddyp »

noOp wrote:
So far no luck; both the warning and the 'lines' keep occuring.
* tried using gnustep-startup-0.13.0
* updated the rest of the system (switched to x.org and gcc 4)

I'll keep digging, though currently no ideas.
For completeness my system specs:

OpenGL renderer string: Mesa DRI R200 20040929
OpenGL version string: 1.3 Mesa 6.2.1
[Radeon 9200 running x.org with the free driver]

gcc (GCC) 4.0.2 (Debian 4.0.2-2)
[though it happend with 3.4, too]

libc6 2.3.5-6
libstdc++6 4.0.2-2
If the problem persists, you could use the Debian packages.
dajt
Quite Grand Sub-Admiral
Quite Grand Sub-Admiral
Posts: 364
Joined: Tue Aug 17, 2004 7:05 am
Location: Orange, NSW, Australia

Post by dajt »

I see what I think are similar warning when I compile, so I don't think they are the problem.

Here are the warnings I get (and always have done):

Code: Select all

 Compiling file src/Core/PlayerEntity_contracts.m ...
In file included from src/Core/PlayerEntity_contracts.m:3:
src/Core/PlayerEntity (contracts).m: In function `-[PlayerEntity(Contracts) showShipyardInfoForSelection]':
src/Core/PlayerEntity (contracts).m:1090: warning: multiple methods named `-objectForKey:' found
c:/GNUstep/System/Library/Headers/Foundation/NSDictionary.h:72: warning: using `-(id)objectForKey:(id)aKey'
c:/GNUstep/System/Library/Headers/Foundation/NSUserDefaults.h:245: warning: also found `-(id)objectForKey:(NSString *)defaultName'
src/Core/PlayerEntity (contracts).m:1091: warning: multiple methods named `-objectForKey:' found
c:/GNUstep/System/Library/Headers/Foundation/NSDictionary.h:72: warning: using `-(id)objectForKey:(id)aKey'
c:/GNUstep/System/Library/Headers/Foundation/NSUserDefaults.h:245: warning: also found `-(id)objectForKey:(NSString *)defaultName'
...
 Compiling file src/Core/PlayerEntity.m ...
src/Core/PlayerEntity.m: In function `-[PlayerEntity init:keys]':
src/Core/PlayerEntity.m:214: warning: initialization makes pointer from integer without a cast
src/Core/PlayerEntity.m: In function `-[PlayerEntity setGuiToEquipShipScreen::]':
src/Core/PlayerEntity.m:5156: warning: multiple methods named `-objectForKey:' found
c:/GNUstep/System/Library/Headers/Foundation/NSDictionary.h:72: warning: using `-(id)objectForKey:(id)aKey'
c:/GNUstep/System/Library/Headers/Foundation/NSUserDefaults.h:245: warning: also found `-(id)objectForKey:(NSString *)defaultName'
src/Core/PlayerEntity.m:5158: warning: multiple methods named `-objectForKey:' found
c:/GNUstep/System/Library/Headers/Foundation/NSDictionary.h:72: warning: using `-(id)objectForKey:(id)aKey'
c:/GNUstep/System/Library/Headers/Foundation/NSUserDefaults.h:245: warning: also found `-(id)objectForKey:(NSString *)defaultName'
src/Core/PlayerEntity.m:5158: warning: multiple methods named `-objectForKey:' found
c:/GNUstep/System/Library/Headers/Foundation/NSDictionary.h:72: warning: using `-(id)objectForKey:(id)aKey'
c:/GNUstep/System/Library/Headers/Foundation/NSUserDefaults.h:245: warning: also found `-(id)objectForKey:(NSString *)defaultName'
...
 Compiling file src/Core/TextureStore.m ...
src/Core/TextureStore.m: In function `-[TextureStore getTextureNameFor:]':
src/Core/TextureStore.m:284: warning: multiple methods named `-objectForKey:' found
c:/GNUstep/System/Library/Headers/Foundation/NSDictionary.h:72: warning: using `-(id)objectForKey:(id)aKey'
c:/GNUstep/System/Library/Headers/Foundation/NSUserDefaults.h:245: warning: also found `-(id)objectForKey:(NSString *)defaultName'
src/Core/TextureStore.m: In function `-[TextureStore getSizeOfTexture:]':
src/Core/TextureStore.m:294: warning: multiple methods named `-objectForKey:' found
c:/GNUstep/System/Library/Headers/Foundation/NSDictionary.h:72: warning: using `-(id)objectForKey:(id)aKey'
c:/GNUstep/System/Library/Headers/Foundation/NSUserDefaults.h:245: warning: also found `-(id)objectForKey:(NSString *)defaultName'
src/Core/TextureStore.m:295: warning: multiple methods named `-objectForKey:' found
c:/GNUstep/System/Library/Headers/Foundation/NSDictionary.h:72: warning: using `-(id)objectForKey:(id)aKey'
c:/GNUstep/System/Library/Headers/Foundation/NSUserDefaults.h:245: warning: also found `-(id)objectForKey:(NSString *)defaultName'
src/Core/TextureStore.m: In function `-[TextureStore reloadTextures]':
src/Core/TextureStore.m:310: warning: multiple methods named `-objectForKey:' found
c:/GNUstep/System/Library/Headers/Foundation/NSDictionary.h:72: warning: using `-(id)objectForKey:(id)aKey'
c:/GNUstep/System/Library/Headers/Foundation/NSUserDefaults.h:245: warning: also found `-(id)objectForKey:(NSString *)defaultName'
 Compiling file src/Core/Universe.m ...
src/Core/Universe.m: In function `compareName':
src/Core/Universe.m:7017: warning: multiple methods named `-objectForKey:' found
c:/GNUstep/System/Library/Headers/Foundation/NSDictionary.h:72: warning: using `-(id)objectForKey:(id)aKey'
c:/GNUstep/System/Library/Headers/Foundation/NSUserDefaults.h:245: warning: also found `-(id)objectForKey:(NSString *)defaultName'
src/Core/Universe.m:7017: warning: multiple methods named `-objectForKey:' found
c:/GNUstep/System/Library/Headers/Foundation/NSDictionary.h:72: warning: using `-(id)objectForKey:(id)aKey'
c:/GNUstep/System/Library/Headers/Foundation/NSUserDefaults.h:245: warning: also found `-(id)objectForKey:(NSString *)defaultName'
...
 Compiling file src/Core/LoadSave.m ...
src/Core/LoadSave.m: In function `-[PlayerEntity(LoadSave) saveCommanderInputHandler::]':
src/Core/LoadSave.m:387: warning: multiple methods named `-objectForKey:' found
c:/GNUstep/System/Library/Headers/Foundation/NSDictionary.h:72: warning: using `-(id)objectForKey:(id)aKey'
c:/GNUstep/System/Library/Headers/Foundation/NSUserDefaults.h:245: warning: also found `-(id)objectForKey:(NSString *)defaultName'
src/Core/LoadSave.m:388: warning: multiple methods named `-objectForKey:' found
c:/GNUstep/System/Library/Headers/Foundation/NSDictionary.h:72: warning: using `-(id)objectForKey:(id)aKey'
c:/GNUstep/System/Library/Headers/Foundation/NSUserDefaults.h:245: warning: also found `-(id)objectForKey:(NSString *)defaultName'
src/Core/LoadSave.m: In function `-[PlayerEntity(LoadSave) findIndexOfCommander:]':
src/Core/LoadSave.m:661: warning: multiple methods named `-objectForKey:' found
c:/GNUstep/System/Library/Headers/Foundation/NSDictionary.h:72: warning: using `-(id)objectForKey:(id)aKey'
c:/GNUstep/System/Library/Headers/Foundation/NSUserDefaults.h:245: warning: also found `-(id)objectForKey:(NSString *)defaultName'
Regards,
David Taylor.
User avatar
winston
Pirate
Pirate
Posts: 731
Joined: Mon Sep 27, 2004 10:21 pm
Location: Port St. Mary, Isle of Man
Contact:

Post by winston »

To the original poster - For the binary release, modify the 'oolite' shell script (the thing that starts oolite.app/oolite - type 'which oolite' to find it) and change it so instead of launching oolite, it runs:

ldd oolite

(i.e. change the line that reads './oolite' to ldd oolite).

Now compile your source version. Then:

ldd oolite.app/oolite

Compare the output.
It's almost certainly a library issue - you may have an older library (it's highly unlikely to be GNUstep - probably one of the SDL libraries) that has bugs that you dynamically link against when you run from source (instead of the binary package, which explicitly tells the game to try the shipped libraries before looking at the distro supplied librarie).
Post Reply