Jump to content
Sign in to follow this  
John Fields

Can libraries cause CTDs?

Recommended Posts

Hi,

Yesterday I tried repeatedly to fly around Liverpool, but I had CTDs every flight, no matter what scenery mods (aircraft, scenery, airports...) I had installed in the Community folder. So I uninstalled everything, except libraries that some airports need, because I thought they were irrellevant if there were no scenery or airports selected (I use MSFS Addon Linker).

As the CTDs continue anyway, I decided to turn off every library. And voilà! No more CTDs!

Then, I installed some addons (both commercial and freeware) and since then I had not even a single CTD in every flight!

I wanted to post this new topic yesterday to bring to your attention, but avsim.com was down.

What do you think of that?

Thank you. 

Edited by John Fields

Share this post


Link to post
Share on other sites

Good question, as I had exactly the same thought: as long as the library is not used by any addon, it should not lead to CTD, no? But who knows, so far I am happy that none of my 25 libraries seem to provoke any CTD. But then, I did not really test this thoroughly, just some short hops here and there. 

In any case it would probably make sense to have only those addons active (for time being) that already have the SU5 compatibility tag over at flightsim.to and regularly check for updates over there...

  • Like 1

Greetings, Chris

Intel i5-13600K, 2x16GB 3200MHz CL14 RAM, MSI RTX 4080 Gaming X, Windows 11 Home, MSFS

Share this post


Link to post
Share on other sites
19 minutes ago, AnkH said:

Good question, as I had exactly the same thought: as long as the library is not used by any addon, it should not lead to CTD, no? But who knows, so far I am happy that none of my 25 libraries seem to provoke any CTD. But then, I did not really test this thoroughly, just some short hops here and there. 

In any case it would probably make sense to have only those addons active (for time being) that already have the SU5 compatibility tag over at flightsim.to and regularly check for updates over there...

Yes, i wonder if it is possible to have libraries active with no addon related that caused CTD.

Anyway, this morning I flew with no libraries active and no CTDs!

But, if you have to renew every scenery, airport and library each time you have an update... then..Oh, my God! I have thousands of addons!

Cheers. 

Share this post


Link to post
Share on other sites

I'm curious: What kind of libraries are you talking about? Scenery libraries, texture libraries, things like FSUIPC? Were they placed in the Community folder (well, I mean, using the Addon Linker)? 

I just use a rather basic set of add-ons, so I never came across the need to install a library for anything.

Edited by pstrub

My simming system: AMD Ryzen 5800X3D, 32GB RAM, RTX 4070 Ti Super 16GB, LG 38" 3840x1600

Share this post


Link to post
Share on other sites

Libraries are a collection of objects, compiled as whatevername-modellibs.bgl

*Every* bgl in you community or official folder Is read by msfs at loading time. Therefore, a bad bgl could crash your system. This Is also the main reason everyone advice to "empy" the community folder, It Is only to avoid crash at startup, It has nothing to do with update.

The guys at Asobo are working hard to keep backwards compatibility, but this behaviour leads to performance problems.

Everytime they dump some Legacy code an old addon would fail

The addons causing problems are i would Say 90% using Legacy code or old tecniques, most of them are a port from previous sims.

 

Hope this helps/clarify the issue

 

 

  • Like 3

Share this post


Link to post
Share on other sites
23 minutes ago, mamu82 said:

Libraries are a collection of objects, compiled as whatevername-modellibs.bgl

 

Thanks, now it makes sense! Of course I heard about bgl files, but I didn't know they are used as libraries outside specific scenery add-ons. When I read "library", I usually think .dll or .so (roughly the Linux equivalent of dll) 😉

And of course MSFS has to touch them in some way (at least to know what's inside) when loading, so it's no surprise that they can cause crashes under certain circumstances. Although I'd assume the best practice wouldn't be to crash, but to ignore the file, write a message to the console, and continue loading, if there's any type of corruption inside a bgl file. But I get it, it's pretty hard to catch all possible errors when loading data files that don't conform with the specification.

Edited by pstrub
  • Like 1
  • Upvote 1

My simming system: AMD Ryzen 5800X3D, 32GB RAM, RTX 4070 Ti Super 16GB, LG 38" 3840x1600

Share this post


Link to post
Share on other sites
1 hour ago, pstrub said:

I'm curious: What kind of libraries are you talking about? Scenery libraries, texture libraries, things like FSUIPC? Were they placed in the Community folder (well, I mean, using the Addon Linker)? 

I just use a rather basic set of add-ons, so I never came across the need to install a library for anything.

Hi,

If you use a limited set of add-ons you possibly don't need libraries (or you need only very few of them).

I have a lot, a mean A LOT, of add-ons. No FSUIPC, but scenery like mesh, cities, landmarks and airports (big and small), almost every freeware. A big part of the freeware airports uses libraries. You selected the libraries and they serve several airports from the same author of the library in question or from another creator who also uses the same libraries. Once the airports and the libraries are installed, it is very difficult to know which libraries uses.

The fact of having to update the add-ons (not all of them, but many) every time there is an update is a headache for me because I'm never sure which airport or scenery (or, also aircraft mod) collides with the update.

However, lately, I limited to the minimum the amount of add-ons installed before each flight (thanks to the MSFS Add-on Linker), but still I have had tons of CTDs (maybe more than 50%) since update 1.18.13.0 (not fixed with the hotfixes 1.18.14.0 and 1.18.15.0). 

I have to say that I didn't have that problem before the big update. The CTDs were very rare.

Then, yesterday, I removed all the libraries. Perhaps one (or some) of them are incompatible with the update and giving me the CTD.

Edited by John Fields
  • Like 1

Share this post


Link to post
Share on other sites
1 hour ago, mamu82 said:

Libraries are a collection of objects, compiled as whatevername-modellibs.bgl

*Every* bgl in you community or official folder Is read by msfs at loading time. Therefore, a bad bgl could crash your system. This Is also the main reason everyone advice to "empy" the community folder, It Is only to avoid crash at startup, It has nothing to do with update.

The guys at Asobo are working hard to keep backwards compatibility, but this behaviour leads to performance problems.

Everytime they dump some Legacy code an old addon would fail

The addons causing problems are i would Say 90% using Legacy code or old tecniques, most of them are a port from previous sims.

 

Hope this helps/clarify the issue

 

 

Yes,

Very clarifying!

Thank you.

Share this post


Link to post
Share on other sites
5 minutes ago, John Fields said:

Hi,

If you use a limited set of add-ons you possibly don't need libraries (or you need only very few of them).

...

Then, yesterday, I removed all the libraries. Perhaps one (or some) of them are incompatible with the update and giving me the CTD.

Thanks for the explanations! Yes, in this context I think it's safe to assume that libraries can (in some cases) also cause CTDs. 

Edited by pstrub

My simming system: AMD Ryzen 5800X3D, 32GB RAM, RTX 4070 Ti Super 16GB, LG 38" 3840x1600

Share this post


Link to post
Share on other sites

I've noticed some of my airport sceneries that use object libraries don't seem to be as well populated as they were before SU5.  It's as if they are no longer able to read the object libraries any more.  I have however renames all of the object libraries to begin with "aa" so that if I move my UK scenery out and put my France or Austria scenery in, I always have them separated in the community folder. I really am going to have to start using addon linker.


Ryzen 5800X3D, Nvidia 3080 - 32 Gig DDR4 RAM, 1TB & 2 TB NVME drives - Windows 11 64 bit MSFS 2020 Premium Deluxe Edition Resolution 2560 x 1440 (32 inch curved monitor)

Share this post


Link to post
Share on other sites
3 hours ago, John Fields said:

Then, yesterday, I removed all the libraries. Perhaps one (or some) of them are incompatible with the update and giving me the CTD.

It would be good if you could add them again one by one and test for CTD to find the one causing the problem. If you do that please let us know which one it was.


Alvega

CPU: AMD 7800X3D | COOLER: Cooler Master MasterLiquid 240L Core ARGB | GPU: RTX 4070 TI Super 16GB OC | Mobo: ASUS TUF GAMING X670E-PLUS WIFI |
RAM: 32 GB Corsair Vengeance RGB DDR5 6000MHz PC5-48000 2x16GB CL36 | SSDs: WD Black SN770 2TB NVMe SSD (WIN11), WD Black SN850X SSD 2 TB M.2 2280 PCIe Gen4 NVMe (MSFS), Crucial MX500 2TB (Other stuff) | CASE: Forgeon Arcanite ARGB Mesh Tower ATX White | Power Supply: Forgeon Bolt PSU 850W 80+ Gold Full Modular White 

Share this post


Link to post
Share on other sites
14 minutes ago, cianpars said:

I've noticed some of my airport sceneries that use object libraries don't seem to be as well populated as they were before SU5.  It's as if they are no longer able to read the object libraries any more.  I have however renames all of the object libraries to begin with "aa" so that if I move my UK scenery out and put my France or Austria scenery in, I always have them separated in the community folder. I really am going to have to start using addon linker.

Hi,

I've got my libraries in separate folders. But, now I have turn off all of them.

I'm not sure the factor that causes CTDs, because I'm having CTDs right now with two or three add-ons only and no libraries at all. I can't figure out what's the cause.

I think it's a random issue that only ASOBO could fix it.

In the meantime... I don't know what to do!

 

 

Share this post


Link to post
Share on other sites
2 minutes ago, Alvega said:

It would be good if you could add them again one by one and test for CTD to find the one causing the problem. If you do that please let us know which one it was.

Yes, Alvega.

But right now I don't have any library selected and I having continuos CTDs.

Please, ASOBO, fix it!

 

Share this post


Link to post
Share on other sites
28 minutes ago, John Fields said:

Yes, Alvega.

But right now I don't have any library selected and I having continuos CTDs.

Please, ASOBO, fix it!

 

Hmm, then perhaps it wasn't any library causing the CTDs before. 

Hope you can solve those CTDs.


Alvega

CPU: AMD 7800X3D | COOLER: Cooler Master MasterLiquid 240L Core ARGB | GPU: RTX 4070 TI Super 16GB OC | Mobo: ASUS TUF GAMING X670E-PLUS WIFI |
RAM: 32 GB Corsair Vengeance RGB DDR5 6000MHz PC5-48000 2x16GB CL36 | SSDs: WD Black SN770 2TB NVMe SSD (WIN11), WD Black SN850X SSD 2 TB M.2 2280 PCIe Gen4 NVMe (MSFS), Crucial MX500 2TB (Other stuff) | CASE: Forgeon Arcanite ARGB Mesh Tower ATX White | Power Supply: Forgeon Bolt PSU 850W 80+ Gold Full Modular White 

Share this post


Link to post
Share on other sites
54 minutes ago, John Fields said:

Yes, Alvega.

But right now I don't have any library selected and I having continuos CTDs.

Please, ASOBO, fix it!

 

if your graphic card is overclocked, drop it back to default values.

This fixed my CTCs.

  • Like 1

Robin

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Tom Allensworth,
    Founder of AVSIM Online


  • Flight Simulation's Premier Resource!

    AVSIM is a free service to the flight simulation community. AVSIM is staffed completely by volunteers and all funds donated to AVSIM go directly back to supporting the community. Your donation here helps to pay our bandwidth costs, emergency funding, and other general costs that crop up from time to time. Thank you for your support!

    Click here for more information and to see all donations year to date.
×
×
  • Create New...