Board index FlightGear Development Scenery

Terragear error

Questions and discussion about enhancing and populating the FlightGear world.

Terragear error

Postby dom_vc10 » Tue Aug 09, 2022 8:36 am

Hi

When I run tg-construct I am getting this error when including roads in my build however the files open fine in QGIS I don't see what the issue could be. Anyone else experienced this?

terminate called after throwing an instance of 'std::logic_error'
what(): basic_string::_M_construct null not valid
Aborted (core dumped)
dom_vc10
 
Posts: 339
Joined: Mon Jul 27, 2020 8:33 am
Location: CZ - LKTB
Version: nightly
OS: Linux Mint 20.2

Re: Terragear error

Postby TheEagle » Tue Aug 09, 2022 8:48 am

I think I once got this error too, but I don't remember why and how i resolved it … Just to check, where did you get your TerraGear from ? In any case, you can do gdb --args tg-construct <arguments>, then in the interpreter that comes up type run and see what you get - if it crashes again, use bt full to get the complete backtrace and post it here if you cant make sense of it ! :)
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: 3411
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: Terragear error

Postby dom_vc10 » Tue Aug 09, 2022 9:18 am

I used the download and install script from the wiki. That was a long time ago I have built many tiles before. I didn't clip the roads shp file before splitting it. Never normally find an issue with that but will try and see again in 14 hours or so :lol: It's probably some small issue
dom_vc10
 
Posts: 339
Joined: Mon Jul 27, 2020 8:33 am
Location: CZ - LKTB
Version: nightly
OS: Linux Mint 20.2

Re: Terragear error

Postby TheEagle » Tue Aug 09, 2022 9:25 am

I think it would make more sense to try running TG through gdb first, because that might tell us where exactly the error comes from.
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: 3411
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: Terragear error

Postby dom_vc10 » Tue Aug 09, 2022 9:33 am

I can try.

So I run what you wrote "gdb --args tg-construct <arguments>" For the arguments I am putting the full arguments I used for tg construct? Will it run the full construct or it's just a check. First time I have been introduced to this :-)
dom_vc10
 
Posts: 339
Joined: Mon Jul 27, 2020 8:33 am
Location: CZ - LKTB
Version: nightly
OS: Linux Mint 20.2

Re: Terragear error

Postby TheEagle » Tue Aug 09, 2022 10:52 am

Yeah, just the normal tg-construct args you'd normally use, but you'll want to build just one tile (the one it's failing on, if it works for other tiles). If you execute a program in gdb it'll do the exact same things it does when you run it without gdb - but gdb will monitor all the function calls and so on and provide you with a backtrace in case of a crash (though that's just one thing of many others gdb can do as well).
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: 3411
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: Terragear error

Postby dom_vc10 » Tue Aug 09, 2022 9:09 pm

I tried the tile it's stuck on and I am doing something wrong..
It just sits on this

For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from tg-construct...
(gdb)

My input was
gdb --args tg-construct --priorities=/home/dom/install/terragear/bin/default_priorities.txt --work-dir=./work --output-dir=./output/Terrain --min-lon=0 --max-lon=1 --min-lat=50 --max-lat=51 --threads=4 AirportArea SRTM-3 AirportObj Default Sand Urban DryCrop Grassland DeciduousBroadCover Heath Industrial ShrubGrassCover Orchard Greenspace Rock Reservoir Town SubUrban Scrub Lake River Littoral Cliffs Stream Canal Road
dom_vc10
 
Posts: 339
Joined: Mon Jul 27, 2020 8:33 am
Location: CZ - LKTB
Version: nightly
OS: Linux Mint 20.2

Re: Terragear error

Postby polly » Tue Aug 09, 2022 9:41 pm

Excuse my butting in, I've been looking for a front end for gdb debugger, my eyesight can't handle
ddd any more. I found 'gdbgui' install: 'pip install gdbgui' : it manages gdb by serving a webpage locally to your browser so you get to adjust font sizes etc just as any web page. It has the usual 'tape deck' pause - play etc and is very intuitive. There's also an app 'seer' with similar modern interface.
User avatar
polly
 
Posts: 956
Joined: Thu Nov 04, 2010 3:45 pm

Re: Terragear error

Postby TheEagle » Tue Aug 09, 2022 11:08 pm

After executing gdb --args … you need to execute "run" in the gdb console (without the quotes) ! :) When it crashed, execute "bt full" in the gdb console (again without quotes) and press Enter until the backtrace stops. Then copy'n'paste the complete backtrace.
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: 3411
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: Terragear error

Postby dom_vc10 » Wed Aug 10, 2022 2:32 pm

thanks. Trying it
dom_vc10
 
Posts: 339
Joined: Mon Jul 27, 2020 8:33 am
Location: CZ - LKTB
Version: nightly
OS: Linux Mint 20.2

Re: Terragear error

Postby dom_vc10 » Wed Aug 10, 2022 3:04 pm

ok so now it finished successfully on the tile that it was stopping on!!
dom_vc10
 
Posts: 339
Joined: Mon Jul 27, 2020 8:33 am
Location: CZ - LKTB
Version: nightly
OS: Linux Mint 20.2

Re: Terragear error

Postby MariuszXC » Wed Aug 10, 2022 3:07 pm

Gotta love intermittent failures, right?
It may seem odd, but can you try to build the same tile now, with the same exact command, but without gdb?
INOP
MariuszXC
 
Posts: 1061
Joined: Tue May 18, 2021 5:38 pm
Location: Europe
Callsign: SP-MRM
Version: 2020.4
OS: Ubuntu 16.04

Re: Terragear error

Postby dom_vc10 » Wed Aug 10, 2022 3:13 pm

Oh yeah!!

I actually ran it on my laptop as I wanted my "gaming" pc for something so maybe that is the connection and not the data?? however never had issues before on the big PC . Full build is now running on the laptop so lets see. If that breaks I will go through the steps again with gdb.
I will update, thanks for the interest.
dom_vc10
 
Posts: 339
Joined: Mon Jul 27, 2020 8:33 am
Location: CZ - LKTB
Version: nightly
OS: Linux Mint 20.2

Re: Terragear error

Postby dom_vc10 » Thu Aug 11, 2022 10:23 am

MariuszXC wrote in Wed Aug 10, 2022 3:07 pm:Gotta love intermittent failures, right?
It may seem odd, but can you try to build the same tile now, with the same exact command, but without gdb?


So went back to the PC that I experienced the issue with. Running with gdb - th etile built fine ran again without gdb worked fine... So who knows. Currently the full build is underway on my laptop as this was just one problematic tile so I am keeping my fingers crossed. I am starting to dislike bigger builds :lol:
dom_vc10
 
Posts: 339
Joined: Mon Jul 27, 2020 8:33 am
Location: CZ - LKTB
Version: nightly
OS: Linux Mint 20.2

Re: Terragear error

Postby MariuszXC » Thu Aug 11, 2022 11:52 am

dom_vc10 wrote in Thu Aug 11, 2022 10:23 am:Running with gdb - the tile built fine ran again without gdb worked fine...


So there is no pattern indeed. Oh well, it was worth a shot.
One more thing you might try is to run memcheck overnight, as many passes as you can and have time for, with multithreading enabled if your version of memcheck supports it.
INOP
MariuszXC
 
Posts: 1061
Joined: Tue May 18, 2021 5:38 pm
Location: Europe
Callsign: SP-MRM
Version: 2020.4
OS: Ubuntu 16.04

Next

Return to Scenery

Who is online

Users browsing this forum: No registered users and 6 guests