X³: TC and AP - Linux support thread

Ask here if you experience technical problems with X³: Terran Conflict, X³: Albion Prelude or X³: Farnham's Legacy.

Moderators: timon37, Moderators for English X Forum

Post Reply
Blitz4
Posts: 146
Joined: Tue, 15. Oct 13, 05:51
x4

Post by Blitz4 » Fri, 13. Nov 15, 11:45

timon37 wrote:@Blitz4

How did you start the game before and after the move?
In general steam runs the game with its own run-time (basically ubuntu 12.04) which sometimes makes things better, sometimes worse.
You could try copying/moving some of the packaged libraries so that they're used or not (either can help).
Before the move I clicked Play from within Steam.
I used ./X3AP_config initally & ./X3AP_main to run the game after the move, both gave me the above error.

I'm almost positive you're right. So in theory if I used Ubuntu 12.04 and didn't install any system updates I wouldn't have this problem at all. Once I figure out how to fix it I'll let you know what I did.

User avatar
EoD
Posts: 279
Joined: Wed, 6. Nov 02, 20:31
xr

Post by EoD » Sat, 14. Nov 15, 12:40

EoD wrote:When I am enabling Antialiasing, I only get a distorted image once I start the game. This includes the video, main menu and the loading screen. They all look similar to http://i.imgur.com/oYfAXWv.jpg

Code: Select all

$ glxinfo | grep OpenGL
OpenGL vendor string: X.Org
OpenGL renderer string: Gallium 0.4 on AMD BARTS (DRM 2.43.0, LLVM 3.7.0)
OpenGL core profile version string: 3.3 (Core Profile) Mesa 11.1.0-devel (git-9ecfc6b)
OpenGL core profile shading language version string: 3.30
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile
OpenGL core profile extensions:
OpenGL version string: 3.0 Mesa 11.1.0-devel (git-9ecfc6b)
OpenGL shading language version string: 1.30
OpenGL context flags: (none)
OpenGL extensions:
OpenGL ES profile version string: OpenGL ES 3.0 Mesa 11.1.0-devel (git-9ecfc6b)
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.00
Any idea what is causing this? Is AA not supported on my system? If it isn't supported, could you maybe disable the AA-checkbox? In other steam games (Sanctum, Portal, Kotor2) I can enable AA and it seems to work just fine.

EDIT: See also the X Rebirth bug report
The XR bug report has been fixed when I apply the patch from bug 92706 to my mesa installation.
The problem with X3TC and AA is not fixed by the patch in the bug report. Hence I this is no duplicate bug report, but valid on its own :/

EDIT: Here is the appropriate bug report https://bugs.freedesktop.org/show_bug.cgi?id=92952
EDIT2: I found the cause (see above bug report). Everything works as expected now!
Last edited by EoD on Sat, 14. Nov 15, 21:34, edited 1 time in total.
The only way of discovering the limits of the possible is to venture a little way past them into the impossible. (Arthur C. Clarke)

Ever wanted to simulate a sp.-relativistic n-body gravitational system?

-outtaspace
Posts: 62
Joined: Thu, 13. Sep 12, 14:45

Post by -outtaspace » Sat, 14. Nov 15, 21:29

I play X3 AP on Linux and it's all ok!
Just a question, someone knows how to use X3 Editor 2 on Linux?
With wine doesn't work and I should had need it a little! :)

Egosoft boyz, I'm trying to speed up ships... :)
ATS RULEZ

SHOT(by)GUN
Posts: 6
Joined: Fri, 13. Nov 15, 21:28
x4

Post by SHOT(by)GUN » Sun, 15. Nov 15, 11:59

With luck I got second wheat station planted... but trying to build a station complex is no go, even with mentioned workarounds.

I also consider F2 button = crash button... pressing it will crash the game with 15% certainty.

My recent crash errors in dmesg:

Code: Select all

[69123.934555] X3TC_main[10881]: segfault at b11193e5 ip 000000000809c6a4 sp 00000000ffc92f70 error 4 in X3TC_main[8048000+23a000]
[69309.566520] X3TC_main[16647]: segfault at 4518ffe9 ip 00000000f51ad5d8 sp 00000000ffd07690 error 4 in libnvidia-glcore.so.352.55[f3d08000+1723000]
[69670.542518] X3TC_main[16761]: segfault at 1147 ip 000000000817eaa0 sp 00000000ffb2c680 error 4 in X3TC_main[8048000+23a000]
[69837.512107] X3TC_main[16911]: segfault at 94a98644 ip 000000000809c8c8 sp 00000000ff86ca80 error 4 in X3TC_main[8048000+23a000]
[69962.662641] X3TC_main[17072]: segfault at 6d293daf ip 00000000f517d30a sp 00000000ffe68030 error 4 in libnvidia-glcore.so.352.55[f3cd8000+1723000]
[70234.324838] X3TC_main[17266]: segfault at fffffacc ip 00000000f4db9cb1 sp 00000000ff94b2d0 error 5 in libnvidia-glcore.so.352.55[f3ca8000+1723000]
[70585.794821] X3TC_main[17483]: segfault at 2fc74723 ip 000000000809c8cd sp 00000000ffe489c0 error 6 in X3TC_main[8048000+23a000]
Game version: 3.2c build 24 on Manjaro Linux

SHOT(by)GUN
Posts: 6
Joined: Fri, 13. Nov 15, 21:28
x4

Post by SHOT(by)GUN » Sun, 15. Nov 15, 21:15

SHOT(by)GUN wrote:With luck I got second wheat station planted... but trying to build a station complex is no go, even with mentioned workarounds.

I also consider F2 button = crash button... pressing it will crash the game with 15% certainty.

My recent crash errors in dmesg:

Code: Select all

[69123.934555] X3TC_main[10881]: segfault at b11193e5 ip 000000000809c6a4 sp 00000000ffc92f70 error 4 in X3TC_main[8048000+23a000]
[69309.566520] X3TC_main[16647]: segfault at 4518ffe9 ip 00000000f51ad5d8 sp 00000000ffd07690 error 4 in libnvidia-glcore.so.352.55[f3d08000+1723000]
[69670.542518] X3TC_main[16761]: segfault at 1147 ip 000000000817eaa0 sp 00000000ffb2c680 error 4 in X3TC_main[8048000+23a000]
[69837.512107] X3TC_main[16911]: segfault at 94a98644 ip 000000000809c8c8 sp 00000000ff86ca80 error 4 in X3TC_main[8048000+23a000]
[69962.662641] X3TC_main[17072]: segfault at 6d293daf ip 00000000f517d30a sp 00000000ffe68030 error 4 in libnvidia-glcore.so.352.55[f3cd8000+1723000]
[70234.324838] X3TC_main[17266]: segfault at fffffacc ip 00000000f4db9cb1 sp 00000000ff94b2d0 error 5 in libnvidia-glcore.so.352.55[f3ca8000+1723000]
[70585.794821] X3TC_main[17483]: segfault at 2fc74723 ip 000000000809c8cd sp 00000000ffe489c0 error 6 in X3TC_main[8048000+23a000]
Game version: 3.2c build 24 on Manjaro Linux
**update**

Finally I was successful making a complex with 4 stations... things I believe contribute to success:
  • Keep ships 10km+ away
    Look away from the station

SHOT(by)GUN
Posts: 6
Joined: Fri, 13. Nov 15, 21:28
x4

Khaak Corvette crash report

Post by SHOT(by)GUN » Mon, 16. Nov 15, 01:46

AttackedByHandler Function GetOwner in undefined object 10 called!

Short summary:
- Khaak Corvette triggers crash
- reproduce-able always
- 3.2c build 24 - from Good Old Games.com
- Manjaro Linux

Video of reproducing a crash
https://www.youtube.com/watch?v=46B_-BlweYQ

gdb backtrace
http://pastebin.com/BnBFj8uc
http://pastebin.com/Mhq6jPHW

savefile X02.sav download
https://www.dropbox.com/s/en9gvpvsymh95ez/X02.sav?dl=1

extra - crashes in dmesg
http://pastebin.com/wDE47uY5

Steam system information
http://pastebin.com/hJkaeuH9

Speculation
Spoiler
Show
As a programmer I can just throw up some thoughts, not actually knowing anything.

- Many of the OTHER crashes happen on scene change.
- Crashes might include OpenAL / nvidia-core / libc6
- AttackedByHandler Function GetOwner in undefined object 10 called!

With those, I'd guess that some objects are not safely un-initialized for audio / graphics libraries... Maybe even destruct the game object mid-frame?
Then audio/graphics engine tries to render for a *destructed* object?

Aaand last patch was on May 2015? and we are almost at 2016
- I assume this report is just a falling leaf on autumn, taken by the wind

timon37
EGOSOFT
EGOSOFT
Posts: 485
Joined: Fri, 14. Dec 12, 11:02
x4

Post by timon37 » Mon, 16. Nov 15, 17:35

@SHOT(by)GUN

Thanks for the high-quality info:)
I will look into it, though probably not very soon because of 4.0 happening for X Rebirth.

Yggdrasill
Posts: 28
Joined: Sat, 15. Jun 13, 00:14
x3ap

Post by Yggdrasill » Wed, 18. Nov 15, 17:28

Yggdrasill wrote:So I've bisected mesa and I arrived at:

Code: Select all

07c65b85eada8dd34019763b6e82ed4257a9b4a6 is the first bad commit
commit 07c65b85eada8dd34019763b6e82ed4257a9b4a6
Author: Michel Dänzer <michel.daenzer@amd.com>
Date:   Thu Jun 19 10:40:38 2014 +0900

    r600g/radeonsi: Use write-combined CPU mappings of some BOs in GTT

    Reviewed-by: Marek Olšák <marek.olsak@amd.com>

:040000 040000 f52840972749b7e2ccc3cc9ac8c285fe1bc9703c 0e8bff89fa7561dfc60733f224d75caec9f127a0 M      src
Doing a hard git reset to that commit means the performance regression still exists as expected, but further going back one commit will make the issue disappear. I've confirmed that this is the commit which introduced the issue in any case.
Issue still seems to appear using radeonsi with a newer card (though it's not unexpected that it would apply to radeonsi too).

libertyzero
Posts: 1
Joined: Mon, 14. Dec 15, 21:09

Slow-down with in-game-menus / interface

Post by libertyzero » Tue, 15. Dec 15, 18:17

Sorry if this has been mentioned before, but I am experiencing extreme slow-downs regarding the interface / in-game-menus.

graphics driver is r600g on a HD4890
this problem also seems to exist with certain versions of catalyst on windows according to the thread http://forum.egosoft.com/viewtopic.php?t=341920

here is a short screen recording showing the issue: http://lyzo.eu/X3_menu_r600g.mkv

As you can see, the screen freezes a short moment every second if menus are open. And when scrolling or when the menus have to be repainted for other reasons, the frame-rate drops completely. It also occurs when simply moving the mouse over the scrollbar. There seems to be a general interface problem because if I enter flight mode and hide the sidebar I also immediately get >10 fps more.

OS: Ubuntu 14.04
System: i7 4790K / 16 GB Ram

spray_n_pray
Posts: 2
Joined: Mon, 4. Jan 10, 00:04
x3tc

Post by spray_n_pray » Wed, 16. Dec 15, 05:08

For those who are interested, I got Xbox One controller working with X3 AP.
https://sites.google.com/site/sbobovyc/ ... on-prelude

rmazurek
Posts: 87
Joined: Tue, 13. Aug 13, 04:04
x3tc

Post by rmazurek » Fri, 18. Dec 15, 00:27

Hello

Just joined joysticks fun club. Saitek X52.

I have no idea how it can all work for someone. In config file there can be mapped 29 buttons and this joystick has more then that.

I guess this is no way to map all buttons? Or I can add Joy Button30 Src, Joy Button31 Src...

Another thing is that I can't map wheels on thruster and slider and also can't use this mouse thing. Generally all that is defined as axis.

Any advice how to handle that? I was only able to remap modes buttons as someone mentioned that X3 does not like permanently pressed buttons.

spray_n_pray
Posts: 2
Joined: Mon, 4. Jan 10, 00:04
x3tc

Post by spray_n_pray » Fri, 18. Dec 15, 15:16

You may be able to remap the extra buttons to keyboard keys in userspace with jstest-gtk.

Edit:
Since the game uses SDL2 (which defaults to evdev instead of joystick) this may not work.
http://forum.egosoft.com/viewtopic.php?p=4019150

I would look into using xboxdrv for doing userspace remapping.

Yggdrasill
Posts: 28
Joined: Sat, 15. Jun 13, 00:14
x3ap

Re: Slow-down with in-game-menus / interface

Post by Yggdrasill » Mon, 21. Dec 15, 14:29

libertyzero wrote:Sorry if this has been mentioned before, but I am experiencing extreme slow-downs regarding the interface / in-game-menus.
This is indeed my issue as well, it seems. The game runs smooth at 60 FPS if I disable the UI, and I am on the radeonsi driver.

I am glad that I am not the only one with this issue.

rmazurek
Posts: 87
Joined: Tue, 13. Aug 13, 04:04
x3tc

Post by rmazurek » Mon, 21. Dec 15, 14:44

spray_n_pray wrote:You may be able to remap the extra buttons to keyboard keys in userspace with jstest-gtk.

Edit:
Since the game uses SDL2 (which defaults to evdev instead of joystick) this may not work.
http://forum.egosoft.com/viewtopic.php?p=4019150

I would look into using xboxdrv for doing userspace remapping.
Thanks for advice. I try this solutions.

satanselbow
Posts: 3
Joined: Wed, 3. Feb 16, 23:29
x4

Post by satanselbow » Thu, 4. Feb 16, 19:10

Arch Linux x64 4.4.1-2-ARCH

X3R (v2.5 no mods, not steam) started from ./X3R_main - crashes out after movie about 2nd wave attack in quickstart/new game :(

Any ideas? Last 500 lines below ;)

Code: Select all

MOV_FreeVoices() 0 pages with total 0 voices entries freed.
SB_LoadLocation() loading story file x3intro
======================================
SE_ReadFile: Can't load file types\fonts.txt
======================================
LoadVoices(44)
movloadmovie success: reply=1 (1 / 3942)
[mpegvideo @ 0xc606f40] max_analyze_duration 5000000 reached at 5000000
[mpegvideo @ 0xc606f40] Estimating duration from bitrate, this may be inaccurate
movloadmovie success: reply=1 (1 / 3942)
[mpegvideo @ 0xc24e0e0] max_analyze_duration 5000000 reached at 5000000
[mpegvideo @ 0xc24e0e0] Estimating duration from bitrate, this may be inaccurate
movloadmovie success: reply=1 (1 / 3944)
ST_LoadCut() cut 948 loaded
----
Warning!  Some triangles have zero area!
----
movloadmovie success: reply=1 (1 / 5236)
No dump, because DEBUG disabled
Autofreeing texture 1118 [NULL]
Autofreeing texture 1121 [NULL]
Autofreeing texture 1119 [NULL]
Autofreeing texture 1122 [NULL]
Autofreeing texture 1120 [NULL]
Autofreeing texture 1117 [NULL]
Autofreeing texture 1123 [NULL]
Autofreeing texture 1124 [NULL]
J3D_FreeCut() freeing cut 1950
J3D_FreeCut() freeing cut 948
J3D_FreeCut() freeing cut 954
J3D_FreeCut() freeing cut 969
MOV_FreeVoices() 128 pages with total 8765 voices entries freed.
No dump, because DEBUG disabled
MOV_FreeVoices() 0 pages with total 0 voices entries freed.
SB_LoadLocation() loading story file x3story
======================================
S_VerifyStory(): signature verification of x3story.obj failed
======================================
======================================
SE_ReadFile: Can't load file types\fonts.txt
======================================
======================================
SE_ReadFile: Can't load file t/440003.xml
======================================
======================================
SE_ReadFile: Can't load file t/440003.xml
======================================
======================================
SE_ReadFile: Can't load file t/440004.xml
======================================
======================================
SE_ReadFile: Can't load file t/440004.xml
======================================
LoadVoices(44)
movloadmovie success: reply=1 (1 / 57606)
[mpegvideo @ 0xc89ada0] max_analyze_duration 5000000 reached at 5000000
[mpegvideo @ 0xc89ada0] Estimating duration from bitrate, this may be inaccurate
movloadmovie success: reply=1 (1 / 57606)
======================================
SE_ReadFile: Can't load file t/440011.xml
======================================
======================================
SE_ReadFile: Can't load file t/440011.xml
======================================
======================================
#2124[024821]2124.__runScript 0.SV_ArraySize() operand not an array
======================================
======================================
#2124[024821]2124.__runScript 0.SV_ArraySize() operand not an array
======================================
J3D_LoadCut2: Loaded embedded body 901000003
J3D_LoadCut2: Loaded embedded body 901000004
----
Warning!  Some triangles have zero area!
----
J3D_LoadCut2: Loaded embedded body 901400003
J3D_LoadCut2: Loaded embedded body 901400004
J3D_LoadCut2: Loaded embedded body 901400005
J3D_LoadCut2: Loaded embedded body 901300000
J3D_LoadCut2: Loaded embedded body 901300001
J3D_LoadCut2: Loaded embedded body 901300003
----
Warning!  Some triangles have zero area!
----
----
Warning!  Some triangles have zero area!
----
----
Warning!  Some triangles have zero area!
----
----
Warning!  Some triangles have zero area!
----
----
Warning!  Some triangles have zero area!
----
----
Warning!  Some triangles have zero area!
----
----
Warning!  Some triangles have zero area!
----
======================================
WARNING: Unable to load texture textures\C:\Documents and Settings\Markus.EGOSOFT\Desktop\New Folder (4)\old_shiptex\unique_argon_M3_02_diff, using dummy texture 
======================================
======================================
WARNING: Unable to load texture textures\C:\Documents and Settings\Markus.EGOSOFT\Desktop\New Folder (4)\old_shiptex\unique_argon_M3_02_bump, using dummy texture 
======================================
======================================
WARNING: Unable to load texture textures\C:\Documents and Settings\Markus.EGOSOFT\Desktop\New Folder (4)\old_shiptex\unique_argon_M3_02_spec, using dummy texture 
======================================
======================================
WARNING: Unable to load texture textures\C:\Documents and Settings\Markus.EGOSOFT\Desktop\New Folder (4)\old_shiptex\unique_argon_M3_02_light, using dummy texture 
======================================
======================================
WARNING: Unable to load texture textures\C:\Documents and Settings\Markus.EGOSOFT\Desktop\New Folder (4)\old_shiptex\unique_argon_M3_03_diff, using dummy texture 
======================================
======================================
WARNING: Unable to load texture textures\C:\Documents and Settings\Markus.EGOSOFT\Desktop\New Folder (4)\old_shiptex\unique_argon_M3_03_bump, using dummy texture 
======================================
======================================
WARNING: Unable to load texture textures\C:\Documents and Settings\Markus.EGOSOFT\Desktop\New Folder (4)\old_shiptex\unique_argon_M3_03_spec, using dummy texture 
======================================
======================================
WARNING: Unable to load texture textures\C:\Documents and Settings\Markus.EGOSOFT\Desktop\New Folder (4)\old_shiptex\unique_argon_M3_03_light, using dummy texture 
======================================
======================================
WARNING: Unable to load texture textures\C:\Documents and Settings\Markus.EGOSOFT\Desktop\New Folder (4)\old_shiptex\unique_argon_M5_glass_diff, using dummy texture 
======================================
======================================
WARNING: Unable to load texture textures\C:\Documents and Settings\Markus.EGOSOFT\Desktop\New Folder (4)\old_shiptex\unique_argon_m4_02_diff, using dummy texture 
======================================
======================================
WARNING: Unable to load texture textures\C:\Documents and Settings\Markus.EGOSOFT\Desktop\New Folder (4)\old_shiptex\unique_argon_m4_02_bump, using dummy texture 
======================================
======================================
WARNING: Unable to load texture textures\C:\Documents and Settings\Markus.EGOSOFT\Desktop\New Folder (4)\old_shiptex\unique_argon_m4_02_spec, using dummy texture 
======================================
======================================
WARNING: Unable to load texture textures\C:\Documents and Settings\Markus.EGOSOFT\Desktop\New Folder (4)\old_shiptex\unique_argon_m4_02_light, using dummy texture 
======================================
======================================
WARNING: Unable to load texture textures\C:\Documents and Settings\Markus.EGOSOFT\Desktop\New Folder (4)\old_shiptex\unique_split_m5_02_diff, using dummy texture 
======================================
======================================
WARNING: Unable to load texture textures\C:\Documents and Settings\Markus.EGOSOFT\Desktop\New Folder (4)\old_shiptex\unique_split_m5_02_bump, using dummy texture 
======================================
======================================
WARNING: Unable to load texture textures\C:\Documents and Settings\Markus.EGOSOFT\Desktop\New Folder (4)\old_shiptex\unique_split_m5_02_spec, using dummy texture 
======================================
======================================
WARNING: Unable to load texture textures\C:\Documents and Settings\Markus.EGOSOFT\Desktop\New Folder (4)\old_shiptex\unique_split_m5_02_light, using dummy texture 
======================================
======================================
WARNING: Unable to load texture textures\C:\Documents and Settings\Markus.EGOSOFT\Desktop\New Folder (4)\old_shiptex\unique_split_m5_03_diff, using dummy texture 
======================================
======================================
WARNING: Unable to load texture textures\C:\Documents and Settings\Markus.EGOSOFT\Desktop\New Folder (4)\old_shiptex\unique_split_m5_03_bump, using dummy texture 
======================================
======================================
WARNING: Unable to load texture textures\C:\Documents and Settings\Markus.EGOSOFT\Desktop\New Folder (4)\old_shiptex\unique_split_m5_03_spec, using dummy texture 
======================================
======================================
WARNING: Unable to load texture textures\C:\Documents and Settings\Markus.EGOSOFT\Desktop\New Folder (4)\old_shiptex\unique_split_m5_03_light, using dummy texture 
======================================
======================================
WARNING: Unable to load texture textures\C:\Documents and Settings\Markus.EGOSOFT\Desktop\New Folder (4)\old_shiptex\unique_boron_m3_02_diff, using dummy texture 
======================================
======================================
WARNING: Unable to load texture textures\C:\Documents and Settings\Markus.EGOSOFT\Desktop\New Folder (4)\old_shiptex\unique_boron_m3_02_bump, using dummy texture 
======================================
======================================
WARNING: Unable to load texture textures\C:\Documents and Settings\Markus.EGOSOFT\Desktop\New Folder (4)\old_shiptex\unique_boron_m3_02_spec, using dummy texture 
======================================
======================================
WARNING: Unable to load texture textures\C:\Documents and Settings\Markus.EGOSOFT\Desktop\New Folder (4)\old_shiptex\unique_boron_m3_02_light, using dummy texture 
======================================
======================================
WARNING: Unable to load texture textures\C:\Documents and Settings\Markus.EGOSOFT\Desktop\New Folder (4)\old_shiptex\unique_boron_m3_03_diff, using dummy texture 
======================================
======================================
WARNING: Unable to load texture textures\C:\Documents and Settings\Markus.EGOSOFT\Desktop\New Folder (4)\old_shiptex\unique_boron_m3_03_bump, using dummy texture 
======================================
======================================
WARNING: Unable to load texture textures\C:\Documents and Settings\Markus.EGOSOFT\Desktop\New Folder (4)\old_shiptex\unique_boron_m3_03_spec, using dummy texture 
======================================
======================================
WARNING: Unable to load texture textures\C:\Documents and Settings\Markus.EGOSOFT\Desktop\New Folder (4)\old_shiptex\unique_boron_m3_03_light, using dummy texture 
======================================
movloadmovie success: reply=1 (1 / 66632)
J3D_LoadCut2: Loaded embedded body 639900001
J3D_LoadCut2: Loaded embedded body 639900002
ST_LoadCut() cut 6399 loaded
ST_StartFromIndex(6399, 1) found starttime 0, endtime 601000
Switching to Camera Camera01
Sent CutEvent t=0 fadein 200
[mpeg @ 0x16cff500] max_analyze_duration 5000000 reached at 5000000
[mpeg @ 0x16cf67e0] max_analyze_duration 5000000 reached at 5000000
movloadmovie success: reply=1 (1 / 85875)
Autofreeing texture 11 [NULL]
movloadmovie success: reply=1 (1 / 91490)
Failed stoping movie 8301
======================================
Failed freeing movie 8301
======================================
ST_UnloadCut() cut 6399 start
ST_UnloadCut() starting unload cut 6399, numinst=3
J3D_FreeCut() freeing cut 6399
======================================
#-18283(2403)[0beeca]2402.Graphics_RenderTexts NULLa.SV_ArrayRead(0) tried to read nonexisting array
======================================
======================================
#-18284(2406)[0beeca]2402.Graphics_RenderTexts NULLa.SV_ArrayRead(0) tried to read nonexisting array
======================================
ST_LoadCut() cut 2224 loaded
Finished Inst3D Dump
J3D_FreeCut() freeing cut 50224
J3D_FreeCut() freeing cut 50232
J3D_FreeCut() freeing cut 50246
J3D_FreeCut() freeing cut 4169
J3D_FreeCut() freeing cut 50250
J3D_FreeCut() freeing cut 50252
J3D_FreeCut() freeing cut 50253
J3D_FreeCut() freeing cut 50254
J3D_FreeCut() freeing cut 50255
J3D_FreeCut() freeing cut 4177
J3D_FreeCut() freeing cut 50258
J3D_FreeCut() freeing cut 50271
J3D_FreeCut() freeing cut 50291
J3D_FreeCut() freeing cut 50303
J3D_FreeCut() freeing cut 50351
J3D_FreeCut() freeing cut 50352
J3D_FreeCut() freeing cut 2224
J3D_FreeCut() freeing cut 9008
J3D_FreeCut() freeing cut 9010
J3D_FreeCut() freeing cut 9013
J3D_FreeCut() freeing cut 9014
J3D_FreeCut() freeing cut 825
J3D_FreeCut() freeing cut 50000
J3D_FreeCut() freeing cut 50001
J3D_FreeCut() freeing cut 50010
J3D_FreeCut() freeing cut 50013
J3D_FreeCut() freeing cut 50017
J3D_FreeCut() freeing cut 50018
J3D_FreeCut() freeing cut 50019
J3D_FreeCut() freeing cut 50020
J3D_FreeCut() freeing cut 50021
J3D_FreeCut() freeing cut 50025
J3D_FreeCut() freeing cut 50027
J3D_FreeCut() freeing cut 50028
J3D_FreeCut() freeing cut 50040
J3D_FreeCut() freeing cut 50094
J3D_FreeCut() freeing cut 50095
J3D_FreeCut() freeing cut 50130
J3D_FreeCut() freeing cut 50134
J3D_FreeCut() freeing cut 50136
J3D_FreeCut() freeing cut 50138
J3D_FreeCut() freeing cut 50140
J3D_FreeCut() freeing cut 50144
J3D_FreeCut() freeing cut 50146
J3D_FreeCut() freeing cut 50147
J3D_FreeCut() freeing cut 50149
J3D_LoadCut2: Loaded embedded body 901000003
J3D_LoadCut2: Loaded embedded body 901000004
----
Warning!  Some triangles have zero area!
----
----
Warning!  Some triangles have zero area!
----
----
Warning!  Some triangles have zero area!
----
----
Warning!  Some triangles have zero area!
----
J3D_LoadCut2: Loaded embedded body 901400003
J3D_LoadCut2: Loaded embedded body 901400004
J3D_LoadCut2: Loaded embedded body 901400005
J3D_LoadCut2: Loaded embedded body 901300000
J3D_LoadCut2: Loaded embedded body 901300001
J3D_LoadCut2: Loaded embedded body 901300003
----
Warning!  Some triangles have zero area!
----
----
Warning!  Some triangles have zero area!
----
======================================
WARNING: Unable to load texture textures\C:\Documents and Settings\Markus.EGOSOFT\Desktop\New Folder (4)\old_shiptex\unique_teladi_M3_02_diff, using dummy texture 
======================================
======================================
WARNING: Unable to load texture textures\C:\Documents and Settings\Markus.EGOSOFT\Desktop\New Folder (4)\old_shiptex\unique_teladi_M3_02_bump, using dummy texture 
======================================
======================================
WARNING: Unable to load texture textures\C:\Documents and Settings\Markus.EGOSOFT\Desktop\New Folder (4)\old_shiptex\unique_teladi_M3_02_spec, using dummy texture 
======================================
======================================
WARNING: Unable to load texture textures\C:\Documents and Settings\Markus.EGOSOFT\Desktop\New Folder (4)\old_shiptex\unique_teladi_M3_02_light, using dummy texture 
======================================
======================================
WARNING: Unable to load texture textures\C:\Documents and Settings\Markus.EGOSOFT\Desktop\New Folder (4)\old_shiptex\unique_teladi_M3_03_diff, using dummy texture 
======================================
======================================
WARNING: Unable to load texture textures\C:\Documents and Settings\Markus.EGOSOFT\Desktop\New Folder (4)\old_shiptex\unique_teladi_M3_03_bump, using dummy texture 
======================================
======================================
WARNING: Unable to load texture textures\C:\Documents and Settings\Markus.EGOSOFT\Desktop\New Folder (4)\old_shiptex\unique_teladi_M3_03_spec, using dummy texture 
======================================
======================================
WARNING: Unable to load texture textures\C:\Documents and Settings\Markus.EGOSOFT\Desktop\New Folder (4)\old_shiptex\unique_teladi_M3_03_light, using dummy texture 
======================================
ST_UnloadCut() cut 2224 start
ST_LoadCut() cut 2225 loaded
ST_UnloadCut() cut 2225 start
ST_UnloadCut() starting unload cut 2225, numinst=14
J3D_FreeCut() freeing cut 2225
movloadmovie success: reply=1 (1 / 110943)
======================================
WARNING: Unable to load texture textures\C:\Documents and Settings\Markus.EGOSOFT\Desktop\New Folder (4)\old_shiptex\unique_teladi_m5_02_diff, using dummy texture 
======================================
======================================
WARNING: Unable to load texture textures\C:\Documents and Settings\Markus.EGOSOFT\Desktop\New Folder (4)\old_shiptex\unique_teladi_m5_02_bump, using dummy texture 
======================================
======================================
WARNING: Unable to load texture textures\C:\Documents and Settings\Markus.EGOSOFT\Desktop\New Folder (4)\old_shiptex\unique_teladi_m5_02_spec, using dummy texture 
======================================
======================================
WARNING: Unable to load texture textures\C:\Documents and Settings\Markus.EGOSOFT\Desktop\New Folder (4)\old_shiptex\unique_teladi_m5_02_light, using dummy texture 
======================================
======================================
WARNING: Unable to load texture textures\C:\Documents and Settings\Markus.EGOSOFT\Desktop\New Folder (4)\old_shiptex\unique_teladi_m5_03_diff, using dummy texture 
======================================
======================================
WARNING: Unable to load texture textures\C:\Documents and Settings\Markus.EGOSOFT\Desktop\New Folder (4)\old_shiptex\unique_teladi_m5_03_bump, using dummy texture 
======================================
======================================
WARNING: Unable to load texture textures\C:\Documents and Settings\Markus.EGOSOFT\Desktop\New Folder (4)\old_shiptex\unique_teladi_m5_03_spec, using dummy texture 
======================================
======================================
WARNING: Unable to load texture textures\C:\Documents and Settings\Markus.EGOSOFT\Desktop\New Folder (4)\old_shiptex\unique_teladi_m5_03_light, using dummy texture 
======================================
======================================
WARNING: Unable to load texture textures\C:\Documents and Settings\Markus.EGOSOFT\Desktop\New Folder (4)\old_shiptex\unique_split_m3_02_diff, using dummy texture 
======================================
======================================
WARNING: Unable to load texture textures\C:\Documents and Settings\Markus.EGOSOFT\Desktop\New Folder (4)\old_shiptex\unique_split_m3_02_bump, using dummy texture 
======================================
======================================
WARNING: Unable to load texture textures\C:\Documents and Settings\Markus.EGOSOFT\Desktop\New Folder (4)\old_shiptex\unique_split_m3_02_spec, using dummy texture 
======================================
======================================
WARNING: Unable to load texture textures\C:\Documents and Settings\Markus.EGOSOFT\Desktop\New Folder (4)\old_shiptex\unique_split_m3_02_light, using dummy texture 
======================================
======================================
WARNING: Unable to load texture textures\C:\Documents and Settings\Markus.EGOSOFT\Desktop\New Folder (4)\old_shiptex\unique_split_m3_03_diff, using dummy texture 
======================================
======================================
WARNING: Unable to load texture textures\C:\Documents and Settings\Markus.EGOSOFT\Desktop\New Folder (4)\old_shiptex\unique_split_m3_03_bump, using dummy texture 
======================================
======================================
WARNING: Unable to load texture textures\C:\Documents and Settings\Markus.EGOSOFT\Desktop\New Folder (4)\old_shiptex\unique_split_m3_03_spec, using dummy texture 
======================================
======================================
WARNING: Unable to load texture textures\C:\Documents and Settings\Markus.EGOSOFT\Desktop\New Folder (4)\old_shiptex\unique_split_m3_03_light, using dummy texture 
======================================
======================================
{-18201,-18202,-18203,-18204,-18205,-18206}.SV_ArrayRead(6) #-17850(4223)[05ff35]2004.AddWare array index out of bounds [0..5]
======================================
movloadmovie success: reply=1 (1 / 162233)
======================================
#-17850(4223)[00e403]2050.IsClass Undefined function 0(0).GetID called!
======================================
New 3d sound for (pri= 11) unknown
======================================
#-17850(4223)[00e403]2050.IsClass Undefined function 0(0).GetID called!
======================================
======================================
#-17850(4223)[00e403]2050.IsClass Undefined function 0(0).GetID called!
======================================
======================================
#-17850(4223)[00e403]2050.IsClass Undefined function 0(0).GetID called!
======================================
======================================
#-17850(4223)[00e403]2050.IsClass Undefined function 0(0).GetID called!
======================================
======================================
#-17850(4223)[00e403]2050.IsClass Undefined function 0(0).GetID called!
======================================
======================================
#-17850(4223)[00e403]2050.IsClass Undefined function 0(0).GetID called!
======================================
======================================
SFX_StopSample() failed stopping sample 923
======================================
movloadmovie success: reply=1 (1 / 188029)
----
Warning!  Some triangles have zero area!
----
ST_LoadCut() cut 2224 loaded
Finished Inst3D Dump
J3D_FreeCut() freeing cut 50197
J3D_FreeCut() freeing cut 50203
J3D_FreeCut() freeing cut 50222
J3D_FreeCut() freeing cut 50224
J3D_FreeCut() freeing cut 50225
J3D_FreeCut() freeing cut 4163
J3D_FreeCut() freeing cut 50246
J3D_FreeCut() freeing cut 50247
J3D_FreeCut() freeing cut 4169
J3D_FreeCut() freeing cut 50250
J3D_FreeCut() freeing cut 50252
J3D_FreeCut() freeing cut 50253
J3D_FreeCut() freeing cut 50254
J3D_FreeCut() freeing cut 50256
J3D_FreeCut() freeing cut 4177
J3D_FreeCut() freeing cut 50258
J3D_FreeCut() freeing cut 50264
J3D_FreeCut() freeing cut 50266
J3D_FreeCut() freeing cut 4207
J3D_FreeCut() freeing cut 4209
J3D_FreeCut() freeing cut 50291
J3D_FreeCut() freeing cut 50307
J3D_FreeCut() freeing cut 50312
J3D_FreeCut() freeing cut 50330
J3D_FreeCut() freeing cut 50332
J3D_FreeCut() freeing cut 50333
J3D_FreeCut() freeing cut 4260
J3D_FreeCut() freeing cut 2224
J3D_FreeCut() freeing cut 701
J3D_FreeCut() freeing cut 9008
J3D_FreeCut() freeing cut 9010
J3D_FreeCut() freeing cut 9013
J3D_FreeCut() freeing cut 9014
J3D_FreeCut() freeing cut 822
J3D_FreeCut() freeing cut 50000
J3D_FreeCut() freeing cut 50001
J3D_FreeCut() freeing cut 50010
J3D_FreeCut() freeing cut 50013
J3D_FreeCut() freeing cut 50019
J3D_FreeCut() freeing cut 50020
J3D_FreeCut() freeing cut 50065
J3D_FreeCut() freeing cut 50067
J3D_FreeCut() freeing cut 50068
J3D_FreeCut() freeing cut 50130
J3D_FreeCut() freeing cut 50136
J3D_FreeCut() freeing cut 50138
J3D_FreeCut() freeing cut 50142
J3D_FreeCut() freeing cut 50144
J3D_FreeCut() freeing cut 50146
J3D_FreeCut() freeing cut 50147
J3D_FreeCut() freeing cut 50153
J3D_FreeCut() freeing cut 50155
J3D_FreeCut() freeing cut 50171
J3D_LoadCut2: Loaded embedded body 901000003
J3D_LoadCut2: Loaded embedded body 901000004
----
Warning!  Some triangles have zero area!
----
----
Warning!  Some triangles have zero area!
----
J3D_LoadCut2: Loaded embedded body 901400003
J3D_LoadCut2: Loaded embedded body 901400004
J3D_LoadCut2: Loaded embedded body 901400005
J3D_LoadCut2: Loaded embedded body 901300000
J3D_LoadCut2: Loaded embedded body 901300001
J3D_LoadCut2: Loaded embedded body 901300003
----
Warning!  Some triangles have zero area!
----
----
Warning!  Some triangles have zero area!
----
----
Warning!  Some triangles have zero area!
----
----
Warning!  Some triangles have zero area!
----
ST_UnloadCut() cut 2224 start
ST_LoadCut() cut 2225 loaded
ST_UnloadCut() cut 2225 start
ST_UnloadCut() starting unload cut 2225, numinst=14
J3D_FreeCut() freeing cut 2225
movloadmovie success: reply=1 (1 / 216972)
movloadmovie success: reply=1 (1 / 245520)
ST_LoadCut() cut 6239 loaded
ST_StartFromIndex(6239, 1) found starttime 0, endtime 33333
Sent CutEvent t=0 fadein 1000
Switching to Camera Camera01
Switching to Camera Camera02
Switching to Camera Camera03
Switching to Camera Camera04
Sent CutEvent t=32333 fadeout 1000
ST_UnloadCut() cut 6239 start
ST_UnloadCut() starting unload cut 6239, numinst=32
J3D_FreeCut() freeing cut 6239
======================================
#-17850(4223)[00e403]2050.IsClass Undefined function 0(0).GetID called!
======================================
Segmentation fault (core dumped)

timon37
EGOSOFT
EGOSOFT
Posts: 485
Joined: Fri, 14. Dec 12, 11:02
x4

Post by timon37 » Fri, 5. Feb 16, 12:23

@satanselbow

Try running: gdb ./X3R_main
Then do: r <enter>
When it crashes do: bt <enter>
Copy and paste the last 50 lines including the output of bt

satanselbow
Posts: 3
Joined: Wed, 3. Feb 16, 23:29
x4

Post by satanselbow » Wed, 10. Feb 16, 10:36

timon37 wrote: Try running: gdb ./X3R_main
Then do: r <enter>
When it crashes do: bt <enter>
Copy and paste the last 50 lines including the output of bt
Here we go - thanks for your prompt attention :)

Code: Select all


Warning!  Some triangles have zero area!
----
----
Warning!  Some triangles have zero area!
----
----
Warning!  Some triangles have zero area!
----
======================================
WARNING: Unable to load texture textures\C:\Documents and Settings\Markus.EGOSOFT\Desktop\New Folder (4)\old_shiptex\unique_split_m5_02_diff, using dummy texture 
======================================
======================================
WARNING: Unable to load texture textures\C:\Documents and Settings\Markus.EGOSOFT\Desktop\New Folder (4)\old_shiptex\unique_split_m5_02_bump, using dummy texture 
======================================
======================================
WARNING: Unable to load texture textures\C:\Documents and Settings\Markus.EGOSOFT\Desktop\New Folder (4)\old_shiptex\unique_split_m5_02_spec, using dummy texture 
======================================
======================================
WARNING: Unable to load texture textures\C:\Documents and Settings\Markus.EGOSOFT\Desktop\New Folder (4)\old_shiptex\unique_split_m5_02_light, using dummy texture 
======================================
======================================
WARNING: Unable to load texture textures\C:\Documents and Settings\Markus.EGOSOFT\Desktop\New Folder (4)\old_shiptex\unique_split_m5_03_diff, using dummy texture 
======================================
======================================
WARNING: Unable to load texture textures\C:\Documents and Settings\Markus.EGOSOFT\Desktop\New Folder (4)\old_shiptex\unique_split_m5_03_bump, using dummy texture 
======================================
======================================
WARNING: Unable to load texture textures\C:\Documents and Settings\Markus.EGOSOFT\Desktop\New Folder (4)\old_shiptex\unique_split_m5_03_spec, using dummy texture 
======================================
======================================
WARNING: Unable to load texture textures\C:\Documents and Settings\Markus.EGOSOFT\Desktop\New Folder (4)\old_shiptex\unique_split_m5_03_light, using dummy texture 
======================================
ST_UnloadCut() cut 2224 start
ST_LoadCut() cut 2225 loaded
ST_UnloadCut() cut 2225 start
ST_UnloadCut() starting unload cut 2225, numinst=14
J3D_FreeCut() freeing cut 2225
movloadmovie success: reply=1 (1 / 478342)
movloadmovie success: reply=1 (1 / 518358)
ST_LoadCut() cut 6239 loaded
ST_StartFromIndex(6239, 1) found starttime 0, endtime 33333
Sent CutEvent t=0 fadein 1000
Switching to Camera Camera01
Switching to Camera Camera02
Switching to Camera Camera03
New 3d sound for (pri=  9) unknown
Switching to Camera Camera04
Sent CutEvent t=32333 fadeout 1000
ST_UnloadCut() cut 6239 start
ST_UnloadCut() starting unload cut 6239, numinst=32
J3D_FreeCut() freeing cut 6239

Program received signal SIGSEGV, Segmentation fault.
B3D_InstAnimate (i3d=0x8a93658) at ../src/X3/engines/b3d.cpp:6910
6910	../src/X3/engines/b3d.cpp: No such file or directory.

(gdb) bt
#0  B3D_InstAnimate (i3d=0x8a93658) at ../src/X3/engines/b3d.cpp:6910
#1  0x0805aa11 in B3D_SceneAnimate (s3d=0xa642058)
    at ../src/X3/engines/b3d.cpp:6966
#2  B3D_Vbi () at ../src/X3/engines/b3d.cpp:3323
#3  0x080af2a7 in Client::CL_GameLoop (this=0x82f4a20)
    at ../src/X3/client.cpp:2652
#4  0x080ae4d3 in ego_main (argc=argc@entry=1, 
    argv=argv@entry=0xffffd474) at ../src/X3/client.cpp:2029
#5  0x080506a3 in main (argc=1, argv=0xffffd474, envp=0xffffd47c)
    at ../src/X3/s_linux/sdl2/sio.cpp:1263
(gdb) 




M-vector
Posts: 1
Joined: Fri, 12. Feb 16, 14:50

Post by M-vector » Fri, 12. Feb 16, 15:59

More than a year ago I noticed a performance issue in all 3 X3 games. From what I can tell it is the same issue Yggdrasill has. More specifically the framerate is low while the gpu utilization is also low.

Current system specs:
Archlinux: linux kernel version: 4.4.1-2-ARCH x86_64
Mesa 11.1.2
OpenGL renderer string: Gallium 0.4 on AMD TAHITI (DRM 2.43.0, LLVM 3.7.1)
CPU: AMD Phenom II X4 955BE (quadcore at 3.2GHz)
GPU: R9 280X (TAHITI using radeonsi) (3G VRAM)
RAM: 8G

Originally I had the issue with a AMD HD6870 (1G VRAM) on the open-source graphics drivers (BARTS using R600g). Last january I took some measurements with GALLIUM_HUD for the framerate, radeontop for GPU utilization, htop to measure CPU useage and iotop for hdd usage. Then I went in to X3:Albion Prelude and recorded these numbers:

main menu:
fps 20-24
GPU 35-39%
CPU ~114%
HDD usage 0%

new game menu:
fps ~10
GPU 14-18%
CPU ~106%
HDD 0%

new game argon peace keeper idle:
fps 9-13
GPU 4-11%
CPU 104%
HDD 0%

The CPU was mostly single threaded, which I vaguely remember not being the case 1 year ago. Which I suspect is due to improvements in MESA's opengl validation. So in january I also ran the game with the environment variable MESA_DEBUG=1 and LIBGL_DEBUG=1, and logged all terminal output to the file “X3:AP+D.log”. LIBGL_DEBUG didn't provide any interesting results but MESA_DEBUG did.

Output of “grep Mesa: X3:AP+D.log | sort | uniq”:
Mesa: User error: GL_INVALID_ENUM in glMatrixMode(mode)
Mesa: User error: GL_INVALID_OPERATION in glUniform4("_gl_LightSource[2].attenuation"@8 has 3 components, not 4)

2 weeks ago I replaced the HD6870 with a R9 280X, which has almost identical results from the same tests. (I still have the HD6870, but not in the system)

I will send the log files I made for the HD6870 and the R9 280X, via e-mail. If nessecary I can also make traces with apitace (on the HD6870 while tracing the game runs at 1 fps).

Usefull links:
list of environment variables:http://mesa3d.org/envvars.html
current state of MESA opengl:https://mesamatrix.net/
radeon specific list of driver related info:http://www.x.org/wiki/RadeonFeature/

edit:
The steam build runs at max graphics settings with vsync off and automatic quality conrtol off in 1920x1080 windowed mode. (at low graphics settings the framerate and gpu usage are slightly higher)
Last edited by M-vector on Tue, 1. Mar 16, 14:54, edited 1 time in total.

timon37
EGOSOFT
EGOSOFT
Posts: 485
Joined: Fri, 14. Dec 12, 11:02
x4

Post by timon37 » Tue, 16. Feb 16, 15:03

Uhh that looks painful:(
satanselbow wrote:crashes out after movie about 2nd wave attack in quickstart/new game :(
When is that exactly? You don't mean right after the first movie right? So I'm assuming you've got a savegame and it's reproducible from it?
If so then upload that savegame and paste a link (or send to my email).
If you have a savegame shortly before, which requires just a few steps to get to the crash that may also be useful (sometimes a crash is much later than when the real bug occurs).

Ohh and one more thing to try. Instead of ./X3R_main do:
./testandlaunch X3R_main

I'm not sure if X3 had the rpath set and that script sets LD_LIBRARY_PATH.

satanselbow
Posts: 3
Joined: Wed, 3. Feb 16, 23:29
x4

Post by satanselbow » Wed, 17. Feb 16, 11:14

timon37 wrote:
When is that exactly?
Start a Quickstart game -> meet squadron by north gate -> follow into next sector -> defeat enemies -> follow squadron -> movie plays where one of squad is destroyed -> movie end -> turn to engage enemy -> fire off a couple of shots -> CRASH!

Reliable as clockwork

I haven't got far enough in to warrant a savegame - although I could dock and create one just to see if crash still appears :idea:
timon37 wrote:
Ohh and one more thing to try. Instead of ./X3R_main do:
./testandlaunch X3R_main

I'm not sure if X3 had the rpath set and that script sets LD_LIBRARY_PATH.
"testandlaunch" was not supplied with the GOG version I am running so I created it as per this thread and the crash remains - the other test units mentioned in that thread are likewise absent from my install

Last few lines from "testandlaunch ./X3R_main" crash output:

Code: Select all

Warning!  Some triangles have zero area!
----
J3D_LoadCut2: Loaded embedded body 901400003
J3D_LoadCut2: Loaded embedded body 901400004
J3D_LoadCut2: Loaded embedded body 901400005
J3D_LoadCut2: Loaded embedded body 901300000
J3D_LoadCut2: Loaded embedded body 901300001
J3D_LoadCut2: Loaded embedded body 901300003
----
Warning!  Some triangles have zero area!
----
----
Warning!  Some triangles have zero area!
----
----
Warning!  Some triangles have zero area!
----
ST_UnloadCut() cut 2224 start
ST_LoadCut() cut 2225 loaded
ST_UnloadCut() cut 2225 start
ST_UnloadCut() starting unload cut 2225, numinst=14
J3D_FreeCut() freeing cut 2225
movloadmovie success: reply=1 (1 / 463034)
movloadmovie success: reply=1 (1 / 537495)
ST_LoadCut() cut 6239 loaded
ST_StartFromIndex(6239, 1) found starttime 0, endtime 33333
Sent CutEvent t=0 fadein 1000
Switching to Camera Camera01
Switching to Camera Camera02
Switching to Camera Camera03
Switching to Camera Camera04
Sent CutEvent t=32333 fadeout 1000
ST_UnloadCut() cut 6239 start
ST_UnloadCut() starting unload cut 6239, numinst=32
J3D_FreeCut() freeing cut 6239
======================================
#-17852(4223)[00e403]2050.IsClass Undefined function 0(0).GetID called!
======================================
./testandlaunch: line 6: 18229 Segmentation fault      (core dumped) ./$1

Cheers,
Mark.

Post Reply

Return to “X³: Terran Conflict / Albion Prelude / Farnham's Legacy - Technical Support”