Board index FlightGear Support Compiling

Is flightgear 3.4 compatible with mesa 11 ?

Building FlightGear from source, and in the need for help?

Is flightgear 3.4 compatible with mesa 11 ?

Postby Curtis » Thu Oct 01, 2015 2:15 pm

Hello

I use archlinux 64 bits, flightgear 3.4, ( CPU : intel pentium dual core 3.3 Ghz, 4 Gb ram, graphic card : radeon HD4650 Pcie ),

flightgear worked well 2 mounths ago, but since a recent upgrade of some system packages ( mesa 11.0.2-1, kernel 4.2.1, xorg-server 1.17.2-4, gcc-multilib 5.2.0-2 ) it doesn't work, I don't know exactly which package is the culprit,

flightgear doesn't work, it crash few seconds after the display of the splash screen,

the error message in the console is :

Illegal instruction (core dumped)

I have a radeon HD4650 Pci with open source driver ( radeon ), maybe the bug doesn't occur with a nvidia graphic card,

I tried to use gdb but the backtrace doesn't help :

Code: Select all
(gdb) bt full
#0  0x00007ffff7dfd5eb in ?? ()
No symbol table info available.
#1  0x0000000001d92c20 in ?? ()
No symbol table info available.
#2  0x00007fffe5d4d740 in ?? ()
No symbol table info available.
#3  0x0000000000000007 in ?? ()
No symbol table info available.
#4  0x0000000000000000 in ?? ()
No symbol table info available.

Program received signal SIGILL, Illegal instruction.
[Switching to Thread 0x7fffe5d4f700 (LWP 2522)]
0x00007ffff7dfd5eb in ?? ()

[Thread 0x7fffeb18c700 (LWP 2528) exited]
[Thread 0x7fffdc1fe700 (LWP 2527) exited]
[Thread 0x7fffe5d4f700 (LWP 2522) exited]
[Thread 0x7fffe6755700 (LWP 2521) exited]
[Thread 0x7ffff7ee5800 (LWP 2513) exited]

Program terminated with signal SIGILL, Illegal instruction.
The program no longer exists.


I will try to recompile flightgear with the new version of gcc 5.2 but I suspect a more deep problem related to openGL ( mesa 11 ), maybe some openGL instructions in flightgear source code are not valid with the recent version of mesa or xorg
Curtis
 
Posts: 152
Joined: Wed Jun 17, 2009 4:09 pm
OS: archlinux 64 bits

Re: Is flightgear 3.4 compatible with mesa 11 ?

Postby Curtis » Thu Oct 01, 2015 4:22 pm

I tried to rebuild flightgear with gcc 5.2 and the bug is still here
Curtis
 
Posts: 152
Joined: Wed Jun 17, 2009 4:09 pm
OS: archlinux 64 bits

Re: Is flightgear 3.4 compatible with mesa 11 ?

Postby FlugHund » Thu Oct 01, 2015 4:43 pm

Dunno if that helps you in any way but I am building working versions of FG 3.6 and git/next with gcc-4.9.2 on Devuan/Jessie amd64.

(FTR: Mesa: 10.3.2, Xorg 1.16.4)
User avatar
FlugHund
 
Posts: 568
Joined: Thu Mar 01, 2007 4:27 pm
Location: Inside ground effect
Callsign: D-HUND
IRC name: D-HUND / debdog
Version: next
OS: Devuan

Re: Is flightgear 3.4 compatible with mesa 11 ?

Postby ludomotico » Thu Oct 01, 2015 4:54 pm

I'm using an upgraded archlinux, gcc 5.2.0, the last GIT version of simgear/flightgear and the nvidia driver. I don't see this error. If there is really a problem with drivers, it seems it is specific to mesa.

Just in case: have you rebooted the PC after upgrading the kernel?
User avatar
ludomotico
 
Posts: 1269
Joined: Tue Apr 24, 2012 2:01 pm
Version: nightly
OS: Windows 10

Re: Is flightgear 3.4 compatible with mesa 11 ?

Postby Curtis » Thu Oct 01, 2015 5:51 pm

yes I rebooted my PC,

I get a more usefull backtrace with " thread apply all bt full" :

https://bugs.archlinux.org/task/46508?getfile=13405

FlugHund wrote in Thu Oct 01, 2015 4:43 pm:Dunno if that helps you in any way but I am building working versions of FG 3.6 and git/next with gcc-4.9.2 on Devuan/Jessie amd64.

(FTR: Mesa: 10.3.2, Xorg 1.16.4)


you must use with mesa 11.0.2, because I am quite sure that the problem begins with a more recent version of mesa ( 11.x )
Curtis
 
Posts: 152
Joined: Wed Jun 17, 2009 4:09 pm
OS: archlinux 64 bits

Re: Is flightgear 3.4 compatible with mesa 11 ?

Postby Hooray » Thu Oct 01, 2015 6:43 pm

A while ago, I actually built/tested and used fgfs 3.3 on a netbook with Intel GMA graphics using mesa, here's the corresponding screen shot:
Image

Note that this is using the so called "minimal startup profile" (as per the wiki instructions).

EDIT: Here's the same GPU/computer running fgfs 3.7 using the minimal startup profile on Lubuntu Linux 32 bit and Mesa 10:
Image

Obviously, this isn't using MESA 11 - so I would need to dig out the computer and install Mesa 11 there to check again ...
Last edited by Hooray on Thu Oct 01, 2015 6:48 pm, edited 3 times in total.
Please don't send support requests by PM, instead post your questions on the forum so that all users can contribute and benefit
Thanks & all the best,
Hooray
Help write next month's newsletter !
pui2canvas | MapStructure | Canvas Development | Programming resources
Hooray
 
Posts: 12707
Joined: Tue Mar 25, 2008 9:40 am
Pronouns: THOU

Re: Is flightgear 3.4 compatible with mesa 11 ?

Postby Curtis » Thu Oct 01, 2015 6:44 pm

I created a trace with apitrace :

https://sourceforge.net/p/flightgear/co ... sa11.trace

you can replay this file with apitrace if you are an openGL developper, with this trace file you will see the openGL calls when the bug occurs with my radeon HD4650 Pcie card and flightgear 3.4 with mesa 11,

I think the problem can occur with radeon cards who use the R600 driver from mesa 11

I created also a bug report in mesa website :

https://bugs.freedesktop.org/show_bug.cgi?id=92214

and also the same bugreport in flightgear website
Curtis
 
Posts: 152
Joined: Wed Jun 17, 2009 4:09 pm
OS: archlinux 64 bits

Re: Is flightgear 3.4 compatible with mesa 11 ?

Postby Hooray » Thu Oct 01, 2015 6:50 pm

please try the minimal startup profile next, to see if you can determine the location (code/shader) that triggers this.
Please don't send support requests by PM, instead post your questions on the forum so that all users can contribute and benefit
Thanks & all the best,
Hooray
Help write next month's newsletter !
pui2canvas | MapStructure | Canvas Development | Programming resources
Hooray
 
Posts: 12707
Joined: Tue Mar 25, 2008 9:40 am
Pronouns: THOU

Re: Is flightgear 3.4 compatible with mesa 11 ?

Postby Curtis » Thu Oct 01, 2015 7:25 pm

I tested with this profile and the crash is still here :
Code: Select all
--ignore-autosave
--airport=ksfo
--offset-distance=4000
--offset-azimuth=90
--altitude=500
--heading=0
--model-hz=60
--disable-random-objects
--prop:/sim/rendering/texture-compression=off
--prop:/sim/rendering/quality-level=0
--prop:/sim/rendering/shaders/quality-level=0
--disable-ai-traffic
--prop:/sim/ai/enabled=0
--aircraft=ufo
--disable-sound
--prop:/sim/rendering/random-vegetation=0
--prop:/sim/rendering/random-buildings=0
--disable-specular-highlight
--disable-ai-models
--disable-clouds
--disable-clouds3d
--fog-fastest
--visibility=5000
--disable-distance-attenuation
--disable-enhanced-lighting
--disable-real-weather-fetch
--prop:/sim/rendering/particles=0
--prop:/sim/rendering/multi-sample-buffers=1
--prop:/sim/rendering/multi-samples=2


maybe I should put a breakpoint in a strategic location in the source code of flightgear in order to see where the crash occurs
Curtis
 
Posts: 152
Joined: Wed Jun 17, 2009 4:09 pm
OS: archlinux 64 bits

Re: Is flightgear 3.4 compatible with mesa 11 ?

Postby bugman » Thu Oct 01, 2015 7:32 pm

The new mesa 11.0 release is very, very fresh. Maybe it would be better if you wait until a few more bug fix releases come out. AMD is notorious for terrible drivers and driver bugs. It usually takes a few mesa bugfix releases to get everything right. Is there a reason you need to use such a cutting edge driver? The problem is very likely to be there than in FlightGear.

Regards,

Edward
bugman
Moderator
 
Posts: 1808
Joined: Thu Mar 19, 2015 10:01 am
Version: next

Re: Is flightgear 3.4 compatible with mesa 11 ?

Postby Hooray » Thu Oct 01, 2015 7:42 pm

it would be good to know if other OpenGL software/benchmarks work correctly for you or not.
Depending on what OpenGL profiler/debugger you are using, you should be able to see what, and where, GL code triggers this - even if it's indeed driver related.

For starters, you could also use any of the osg demos, and/or fgviewer.
Please don't send support requests by PM, instead post your questions on the forum so that all users can contribute and benefit
Thanks & all the best,
Hooray
Help write next month's newsletter !
pui2canvas | MapStructure | Canvas Development | Programming resources
Hooray
 
Posts: 12707
Joined: Tue Mar 25, 2008 9:40 am
Pronouns: THOU

Re: Is flightgear 3.4 compatible with mesa 11 ?

Postby Curtis » Thu Oct 01, 2015 7:48 pm

@bugman : I don't have the choice because I use archlinux who is a rolling release distro,

archlinux always has the most recent version of packages ( release version, that's why the mesa package in archlinux is the 11.0.2 version ),

I tried to downgrade the mesa package to the previous version ( 10.6.7 ) but it doesn't work because the other system packages ( xorg, x11, llvm libs, gcc ) are too recent, if I install mesa 10.6.7 openGL softwares crash with weird error message,

the only solution for me is to use mesa 11.0.2, with mesa 11.0.2 I have no problems with 3D games ( for example Xonotics, Nexuiz ), flightgear is the only game who triggers this bug with mesa 11.0.2,

here is a new backtrace with a debug version of mesa 11.0.2 :

https://bugs.freedesktop.org/attachment.cgi?id=118575
Curtis
 
Posts: 152
Joined: Wed Jun 17, 2009 4:09 pm
OS: archlinux 64 bits

Re: Is flightgear 3.4 compatible with mesa 11 ?

Postby Hooray » Thu Oct 01, 2015 7:50 pm

please try to run other OpenGL software/benchmarks using the same driver.
If those work, try the OSG examples next.
And then fgviewer.

(also, please disable other features that are unrelated to rendering/graphics, i.e. sound etc)
Please don't send support requests by PM, instead post your questions on the forum so that all users can contribute and benefit
Thanks & all the best,
Hooray
Help write next month's newsletter !
pui2canvas | MapStructure | Canvas Development | Programming resources
Hooray
 
Posts: 12707
Joined: Tue Mar 25, 2008 9:40 am
Pronouns: THOU

Re: Is flightgear 3.4 compatible with mesa 11 ?

Postby Curtis » Thu Oct 01, 2015 8:19 pm

I tried 3 games :

- Xonotics --> it's Ok
- Nexuiz --> it's Ok
- mame ( arcade emulator ) --> it's Ok

then I tried fgviewer with this command : "fgviewer --fg-root $FG_ROOT Scenery/Terrain/w130n30/w123n37/KSFO.btg.gz" and it works, I see the KSFO airport,

but if I try with this command : "fgfs --fg-root=$FG_ROOT --fgviewer Scenery/Terrain/w130n30/w123n37/KSFO.btg.gz" I get a segfault error : Segmentation fault (core dumped)

I will try the OSG examples
Curtis
 
Posts: 152
Joined: Wed Jun 17, 2009 4:09 pm
OS: archlinux 64 bits

Re: Is flightgear 3.4 compatible with mesa 11 ?

Postby Hooray » Thu Oct 01, 2015 8:54 pm

in that case, please try to provide a backtrace - and if it is in any rendering related code (e.g. your gpu drivers), try running an opengl debugger to see if you can pinpoint any problematic commands
Please don't send support requests by PM, instead post your questions on the forum so that all users can contribute and benefit
Thanks & all the best,
Hooray
Help write next month's newsletter !
pui2canvas | MapStructure | Canvas Development | Programming resources
Hooray
 
Posts: 12707
Joined: Tue Mar 25, 2008 9:40 am
Pronouns: THOU

Next

Return to Compiling

Who is online

Users browsing this forum: No registered users and 1 guest