Board index FlightGear Support

Crash with discrete GPU

All general support: help on flying, installation, hardware, getting online etc. There are lots of users and developers to help you out.
Forum rules
In order to help you, we need to know a lot of information. Make sure to include answers to at least the following questions in your initial post.

- what OS (Windows Xp/Vista, Mac etc.) are you running?
- what FlightGear version do you use?
- what graphics card do you have?
- does the problem occur with any aircraft, at any airport?
- where did you download your aircraft/scenery from?
- is there any output printed to the console (black window)?
- copy&paste your commandline (tick the "Show commandline box on the last page of FGRun or the "Others" section on the Mac launcher).

Please report any bugs not specific to an aircraft on the issue tracker.
To run FlightGear on old computers with bad OpenGL support, please take a look at this wiki article.

Note: If you did not get a reponse, even after 7 days, you may want to check out the FlightGear mailing lists to ask your question there.

Crash with discrete GPU

Postby lissalissa » Mon Jul 04, 2022 7:15 pm

Hello friends,
I am attempting to run flightgear on my Fedora 36 system with an nvidia 1650 TI GPU. The last time I tried to use flightgear was about a week ago, at which time there were no issues. Now, when I right-click on Flightgear and click run with discrete GPU, the icon briefly pops up in my dock and then crashes and exits. If I run flightgear using my integrated GPU, this does not occur.
I'm not sure how to run with my discrete GPU via command line so I'm not sure if there are specific errors popping up.
Any help troubleshooting would be much appreciated.
lissalissa
 
Posts: 53
Joined: Sat Sep 12, 2015 3:42 pm
Location: Boston, MA, United States
Version: 2020.3.12
OS: Ubuntu 21.10

Re: Crash with discrete GPU

Postby lissalissa » Mon Jul 04, 2022 7:21 pm

Update:
I'm able to glean this error from the terminal now: QSocketNotifier: Can only be used with threads started with QThread
But that same error comes up when I run with the integrated GPU only without the crash, so this doesn't seem to be the fatal error.
lissalissa
 
Posts: 53
Joined: Sat Sep 12, 2015 3:42 pm
Location: Boston, MA, United States
Version: 2020.3.12
OS: Ubuntu 21.10

Re: Crash with discrete GPU

Postby lissalissa » Mon Jul 04, 2022 10:28 pm

Further troubleshooting information:
If I run fgfs with a discrete gpu from terminal, no issues. The crash only occurs with the --launcher flag.
lissalissa
 
Posts: 53
Joined: Sat Sep 12, 2015 3:42 pm
Location: Boston, MA, United States
Version: 2020.3.12
OS: Ubuntu 21.10

Re: Crash with discrete GPU

Postby erik » Tue Jul 05, 2022 8:25 am

In the launcher under Settings, and Additional settings at the bottom, there is an option "See the final set of arguments that will be used."
Could you copy that and use it at the command line to see if that causes the crash too?

Or do you not even get to the point where you can hit "Fly"?

Erik
Current: Parachutist, Paraglider, Pterosaur, Pilatus PC-9M and variants, ERCO Ercoupe, Fokker Dr.1, Fokker 50, Fokker 100
Less active: Cessna T-37, T-38, Santa Claus. Previous: General Dynamics F-16. Worked on: Wright Flyer
erik
 
Posts: 2248
Joined: Thu Nov 01, 2007 2:41 pm

Re: Crash with discrete GPU

Postby lissalissa » Tue Jul 05, 2022 10:53 am

It crashes before the launcher even appears.
lissalissa
 
Posts: 53
Joined: Sat Sep 12, 2015 3:42 pm
Location: Boston, MA, United States
Version: 2020.3.12
OS: Ubuntu 21.10

Re: Crash with discrete GPU

Postby wkitty42 » Tue Jul 05, 2022 11:23 am

self-built FG or downloaded from somewhere? if downloaded, where, exactly, did you get it? it sounds like it was built without Qt or you don't have the (proper?) Qt libs installed...
"You get more air close to the ground," said Angalo. "I read that in a book. You get lots of air low down, and not much when you go up."
"Why not?" said Gurder.
"Dunno. It's frightened of heights, I guess."
User avatar
wkitty42
 
Posts: 9165
Joined: Fri Feb 20, 2015 4:46 pm
Location: central NC, USA
Callsign: wk42
Version: git next
OS: Kubuntu 22.04

Re: Crash with discrete GPU

Postby lissalissa » Tue Jul 05, 2022 1:51 pm

Installed from the fedora rpm repository. Ran fine a few days ago. Runs fine currently on integrated GPU. Runs fine if I try to launch fgfs without the --launcher option. I think this started after a kernel update, but that may be a coincidence. My GPU is working fine for other applications.
lissalissa
 
Posts: 53
Joined: Sat Sep 12, 2015 3:42 pm
Location: Boston, MA, United States
Version: 2020.3.12
OS: Ubuntu 21.10

Re: Crash with discrete GPU

Postby TheEagle » Tue Jul 05, 2022 5:56 pm

Run "gdb --args fgfs --launcher". You'll be taken to a custom command line interface. There just type "run" and after it crashed type "bt all" (or was it "bt full" …) then press "c". You should get a list of backtrace items - please copy that and paste it here inbetween
Code: Select all
 and
tags. That might give us a clue what it is crashing on.
Cessna 210 (Wiki)
My other aircraft: my wiki profile !
Other: FGTools (GitHub)
World tour: View on SkyVector
Please consider donating $1 / €1 to help me finance a new camera !
User avatar
TheEagle
 
Posts: 3433
Joined: Sat May 01, 2021 3:27 pm
Location: France
Pronouns: You, he
Callsign: F-EAGLE
IRC name: none
Version: Git next
OS: Ubuntu Studio 22.04

Re: Crash with discrete GPU

Postby lissalissa » Tue Jul 05, 2022 6:09 pm

The back trace gives me:
Code: Select all
no stack


But earlier, gdb spits out:
Code: Select all
gui        The Wayland connection experienced a fatal error: Protocol error
lissalissa
 
Posts: 53
Joined: Sat Sep 12, 2015 3:42 pm
Location: Boston, MA, United States
Version: 2020.3.12
OS: Ubuntu 21.10

Re: Crash with discrete GPU

Postby lissalissa » Tue Jul 05, 2022 6:18 pm

Further testing based on that error confirms that this is only reproducible on Wayland. When I run an X session the crash does not occur. So this is a wayland issue. Not sure where to go from here other than to use X. I don't really have a strong reason to stick to Wayland.
lissalissa
 
Posts: 53
Joined: Sat Sep 12, 2015 3:42 pm
Location: Boston, MA, United States
Version: 2020.3.12
OS: Ubuntu 21.10

Re: Crash with discrete GPU

Postby TheEagle » Tue Jul 05, 2022 6:24 pm

That's already something ! :) Please run FG like this:
Code: Select all
WAYLAND_DEBUG=1 fgfs --launcher

and post what it spits out.
Cessna 210 (Wiki)
My other aircraft: my wiki profile !
Other: FGTools (GitHub)
World tour: View on SkyVector
Please consider donating $1 / €1 to help me finance a new camera !
User avatar
TheEagle
 
Posts: 3433
Joined: Sat May 01, 2021 3:27 pm
Location: France
Pronouns: You, he
Callsign: F-EAGLE
IRC name: none
Version: Git next
OS: Ubuntu Studio 22.04

Re: Crash with discrete GPU

Postby lissalissa » Tue Jul 05, 2022 6:26 pm

Aha!
The relevant bit it spits out is:
Code: Select all
wl_display@1.error(nil, 7, "failed to import supplied dmabufs: Arguments are inconsistent (for example, a valid context requires buffers not supplied by a ")

I can provide the full output if that's helpful somehow.
lissalissa
 
Posts: 53
Joined: Sat Sep 12, 2015 3:42 pm
Location: Boston, MA, United States
Version: 2020.3.12
OS: Ubuntu 21.10

Re: Crash with discrete GPU

Postby TheEagle » Tue Jul 05, 2022 6:46 pm

Well, I'm not a Wayland specialist nor a wayland user myself, so I guess we should wait and see if anyone else can reproduce this and then file a bug for the maintainers of the Wayland server - I don't think that this bug is caused by FG itself.
Cessna 210 (Wiki)
My other aircraft: my wiki profile !
Other: FGTools (GitHub)
World tour: View on SkyVector
Please consider donating $1 / €1 to help me finance a new camera !
User avatar
TheEagle
 
Posts: 3433
Joined: Sat May 01, 2021 3:27 pm
Location: France
Pronouns: You, he
Callsign: F-EAGLE
IRC name: none
Version: Git next
OS: Ubuntu Studio 22.04

Re: Crash with discrete GPU

Postby erik » Wed Jul 06, 2022 8:16 am

NVidia and Wayland is a complex situation. So this sounds like either a bug in Qt, Wayland or the NVidia driver.
Sadly nothing we can do anything about.

Erik
Current: Parachutist, Paraglider, Pterosaur, Pilatus PC-9M and variants, ERCO Ercoupe, Fokker Dr.1, Fokker 50, Fokker 100
Less active: Cessna T-37, T-38, Santa Claus. Previous: General Dynamics F-16. Worked on: Wright Flyer
erik
 
Posts: 2248
Joined: Thu Nov 01, 2007 2:41 pm


Return to Support

Who is online

Users browsing this forum: No registered users and 9 guests