Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Assimp 5.3 importer error: No suitable reader found (Linux64, Pioneer built from Master repo) #5832

Closed
Mrhnhrm opened this issue May 4, 2024 · 3 comments

Comments

@Mrhnhrm
Copy link

Mrhnhrm commented May 4, 2024

Hi, and thanks for taking a look.
Running Gentoo Linux 64 here. Building Pioneer from today's Master repo snapshot (because I am really desperate for the fix to the game-breaking bug #5804 ). All dependencies are provided as my distro's standard system-wide packages. Pioneer is built according to the provided instructions.

Interestingly enough, the binary 2024-03-14 release ran just fine with the all the same libraries (at least as fine as can be with the aforementioned game-breaking bug).

Observed behaviour

The game crashes while loading with these messages:

Info: Loading [67%]: SpaceStation::Init started
Info: models/stations/ground_station/starport_lo.dae:
Assimp 5.3 importer error: No suitable reader found for the file format of file "models/stations/ground_station/starport_lo.dae".
Info: Could not find model: ground_station
Info: couldn't initialize station type 'stations/ground_station.json' because the corresponding model ('ground_station') could not be found.
Fatal: Error while loading Space Station data (check stdout/output.txt).

Expected behaviour

The game should at least load far enough to get to the main menu.

Steps to reproduce

  1. Download the zip of today's Master repo and unpack.
  2. Execute ./bootstrap && make -C build -j8
  3. Execute ./build/pioneer

My pioneer version (and OS):

Today's Master snapshot. Gentoo Linux 64 bit.

output.txt

Thanks for paying attention.

@sturnclaw
Copy link
Member

This is because Gentoo ships a patched version of libassimp to work around a security issue/bug. Unfortunately, that patch completely disables the Collada importer - required to load .dae files - meaning the game absolutely cannot function at all and we cannot do anything about it. See the upstream discussion here: gentoo/gentoo#29231.

The underlying bug is fixed in libassimp 5.4, which I encourage you to update to.

@undrwater
Copy link

I'm running into this issue on gentoo as well, but I have version 5.4.2 of assimp. This is a git build.

Here are the messages I'm receiving:

$ pioneer
Info: ver 20240710 (4ef9b91ba) on: Linux
Info: System Name: Linux
Host Name: apollo
Release(Kernel) Version: 6.10.4-gentoo
Kernel Build Timestamp: #3 SMP PREEMPT_DYNAMIC Wed Aug 14 14:17:27 PDT 2024
Machine Arch: x86_64
Domain Name: (none)
Info: Loaded mods:
Info: --------------------
Info: SDL Version (build) 2.30.3
Info: SDL Version (dynamic) 2.30.3
Info: SDL Versions match
Info: SDL_image Version (build): 2.8.2
Info: SDL_image Version (dynamic): 2.8.2
Info: SDL_image Versions match
Info: Assimp Version: 5.4.0
Info: FreeType Version: 2.13.3
Info: GLEW dynamic version: 2.0.0
Info: --------------------
Info: 
Info: SDL video driver used: x11
Info: Initialized OpenGL 3.1, with extensions, renderer
Info: Created shader vtxColor (address=0x55f1031c7f10)
Info: Initializing joystick subsystem.
Info: Loaded PiGui fonts from disk:
Info: font console:0
Info:   - Inpionata.ttf 1
Info:   - DejaVuSansMono.ttf 1.2
Info:   - wqy-microhei.ttc 1
Info:   - icons/icons.svg 16x19
Info: font icons:0
Info:   - PionilliumText22L-Medium.ttf 1
Info:   - icons/icons.svg 16x19
Info: font orbiteer:0
Info:   - Orbiteer-Bold.ttf 1
Info:   - DejaVuSans.ttf 1.2
Info:   - wqy-microhei.ttc 1
Info:   - icons/icons.svg 16x19
Info: font pionillium:0
Info:   - PionilliumText22L-Medium.ttf 1
Info:   - DejaVuSans.ttf 0.9285714
Info:   - wqy-microhei.ttc 1
Info:   - icons/icons.svg 16x19
Info: Created shader ui (address=0x55f10320b530)
Info: Created shader gen_gas_giant_colour (address=0x55f1031753d0)
Warning: Commodity rubbish has invalid producing economy ALL
Info: Loaded economy info: 3 economies, 31 commodities (10 consumable)
Info: started 15 worker threads in 0.25ms
Info: 

Engine startup took 224.78ms
Info: StartupScreen::Start()
Info: ShipType::Init()
Info: Lua::Init()
Info: Lua 5.2
Warning: No SVG data available to rasterize icon font icons/icons.svg
Info: Loading [00%]: Sound::Init started
Info: Loading [00%]: Sound::Init took 7.53ms
Info: Loading [08%]: Lua::InitModules() started
Info: Ship Def found: missile_guided
Info: Ship Def found: xylophis
Info: Ship Def found: wave
Info: Ship Def found: ac33
Info: Ship Def found: venturestar
Info: Ship Def found: missile_unguided
Info: Ship Def found: missile_naval
Info: Ship Def found: malabar
Info: Ship Def found: pumpkinseed_police
Info: Ship Def found: nerodia
Info: Ship Def found: storeria
Info: Ship Def found: vatakara
Info: Ship Def found: molaramsayi
Info: Ship Def found: varada
Info: Ship Def found: coronatrix_police
Info: Ship Def found: deneb
Info: Ship Def found: sinonatrix_police
Info: Ship Def found: sinonatrix
Info: Ship Def found: coronatrix
Info: Ship Def found: skipjack
Info: Ship Def found: lunarshuttle
Info: Ship Def found: natrix
Info: Ship Def found: kanara
Info: Ship Def found: lodos
Info: Ship Def found: missile_smart
Info: Ship Def found: dsminer
Info: Ship Def found: bowfin
Info: Ship Def found: pumpkinseed
Info: Ship Def found: molamola
Info: Ship Def found: kanara_civ
Info: Ship Def found: bluenose
Info: 31
Info: Loading [08%]: Lua::InitModules() took 31.49ms
Info: Loading [17%]: GalaxyGenerator::Init() started
Info: Creating new galaxy generator 'legacy' version 1
Info: Warning: 'mass' is 0.000000 for body 'Themisto'
Info: Warning: 'averageTemp' is 0 for body 'Uluru'
Info: Warning: 'averageTemp' is 0 for body 'Francesca'
Info: Warning: 'averageTemp' is 0 for body 'Penny'
Info: Warning: 'averageTemp' is 0 for body 'Beth'
Info: Warning: 'averageTemp' is 0 for body 'Kata Tjuta'
Info: Warning: 'averageTemp' is 0 for body 'Sagittarius A*'
Info: Warning: 'averageTemp' is 0 for body 'Terminus'
Info: Warning: 'mass' is 0.000000 for body 'Lucksmall'
Info: Number of factions added: 103
Info: StarSystemCache: misses: 0, slave hits: 0, master hits: 0
Info: SectorCache: misses: 101, slave hits: 0, master hits: 2
Info: Loading [17%]: GalaxyGenerator::Init() took 7.37ms
Info: Loading [25%]: FaceParts::Init() started
Info: Face Generation source images loaded.
Info: Loading [25%]: FaceParts::Init() took 0.80ms
Info: Loading [33%]: new ModelCache started
Info: Loading [33%]: new ModelCache took 0.00ms
Info: Loading [42%]: Shields::Init started
Info: Created shader shield (address=0x55f10512a9f0)
Info: Loading [42%]: Shields::Init took 0.35ms
Info: Loading [50%]: BaseSphere::Init started
Info: GenerateIndices: triangles count = 648, mid indexes = 1728, hi edges = 54
Info: Loading [50%]: BaseSphere::Init took 15.98ms
Info: Loading [58%]: CityOnPlanet::Init started
Info: Loading city definition file 'configs/buildings/default.json'
Info: Created shader multi (address=0x55f105177760)
Info: models/buildings/vlastan/Dome1LQ.obj:
Assimp 5.4 importer error: Unable to open file "models/buildings/vlastan/Dome1LQ.obj".
Info: Could not find model: Dome1
Fatal: Could not find placeholder model

@sturnclaw
Copy link
Member

The bug you're encountering is a completely different issue (as noted by loading a .obj file instead of .dae and the lack of a "no suitable reader found" in your logs). Please open it as a new issue if the issue persists.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants