Board index FlightGear Support Compiling

Image loading failed error

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

Image loading failed error

Postby Harald » Sat Jul 02, 2016 9:52 am

Simgear and FG were compiled from a fresh pull (Win 10 32 bits compilation), all other dependencies are coming from Jenkins.

For some reason no bitmap/textures can be load.

Code: Select all
general:3:F:\SvnFG\fgdata\flightgear-fgmeta\flightgear\src\Main\main.cxx:432:CrashRpt enabled
general:3:F:\SvnFG\fgdata\flightgear-fgmeta\flightgear\src\Main\main.cxx:457:FlightGear:  Version 2016.3.0
general:3:F:\SvnFG\fgdata\flightgear-fgmeta\flightgear\src\Main\main.cxx:458:Built with Microsoft Visual C++ version 1800
general:3:F:\SvnFG\fgdata\flightgear-fgmeta\flightgear\src\Main\main.cxx:460:Jenkins number/ID 0:none
general:5:F:\SvnFG\fgdata\flightgear-fgmeta\flightgear\src\Main\options.cxx:1957:config file not found:Path "Scenery"
general:5:F:\SvnFG\fgdata\flightgear-fgmeta\flightgear\src\Main\options.cxx:1957:config file not found:Path "Designer.old/Alsasource/SceneryCustom/Alsace"
general:3:F:\SvnFG\fgdata\flightgear-fgmeta\flightgear\src\Main\options.cxx:2570:set from command-line argument: fg_root = Path "F:/SvnFG/fgdata/flightgear-fgdata"
input:3:F:\SvnFG\fgdata\flightgear-fgmeta\flightgear\src\Main\fg_init.cxx:469:Reading global preferences
input:3:F:\SvnFG\fgdata\flightgear-fgmeta\flightgear\src\Main\fg_init.cxx:471:Finished Reading global preferences
general:3:F:\SvnFG\fgdata\flightgear-fgmeta\flightgear\src\Main\fg_init.cxx:1141:init package root at:Path "C:/Users/Cyra/Documents/FlightGear/Aircraft"
input:3:F:\SvnFG\fgdata\flightgear-fgmeta\flightgear\src\Main\options.cxx:2050:aircraft = c150
general:3:F:\SvnFG\fgdata\flightgear-fgmeta\flightgear\src\Main\fg_init.cxx:255:Loading aircraft -set file from:Path "F:/dvlp/c150/fg-aircraft/c150/c150-set.xml"
general:3:F:\SvnFG\fgdata\flightgear-fgmeta\flightgear\src\Main\locale.cxx:138:Found language resource for: fr_FR
general:3:F:\SvnFG\fgdata\flightgear-fgmeta\flightgear\src\Main\locale.cxx:219:Reading localized strings for 'en' from Path "F:/SvnFG/fgdata/flightgear-fgdata/Translations/en/sys.xml"
general:3:F:\SvnFG\fgdata\flightgear-fgmeta\flightgear\src\Main\locale.cxx:219:Reading localized strings for 'fr' from Path "F:/SvnFG/fgdata/flightgear-fgdata/Translations/fr/sys.xml"
general:3:F:\SvnFG\fgdata\flightgear-fgmeta\flightgear\src\Main\locale.cxx:219:Reading localized strings for 'en' from Path "F:/SvnFG/fgdata/flightgear-fgdata/Translations/en/atc.xml"
general:3:F:\SvnFG\fgdata\flightgear-fgmeta\flightgear\src\Main\locale.cxx:219:Reading localized strings for 'fr' from Path "F:/SvnFG/fgdata/flightgear-fgdata/Translations/en/atc.xml"
general:3:F:\SvnFG\fgdata\flightgear-fgmeta\flightgear\src\Main\options.cxx:2338:   option:fg-root = F:/SvnFG/fgdata/flightgear-fgdata
general:3:F:\SvnFG\fgdata\flightgear-fgmeta\flightgear\src\Main\options.cxx:2338:   option:fg-scenery = F:/FlightGear/terrasync2;F:/FlightGear
general:3:F:\SvnFG\fgdata\flightgear-fgmeta\flightgear\src\Main\globals.cxx:358:skipping duplicate add of scenery path:Path "F:/FlightGear/terrasync2"
general:3:F:\SvnFG\fgdata\flightgear-fgmeta\flightgear\src\Main\options.cxx:2338:   option:terrasync-dir = F:\FlightGear\terrasync2
general:3:F:\SvnFG\fgdata\flightgear-fgmeta\flightgear\src\Main\options.cxx:2338:   option:fg-aircraft = F:/dvlp/c150/fg-aircraft;C:/Users/Cyra/Documents/FlightGear/Aircraft/org.flightgear.official/Aircraft
general:3:F:\SvnFG\fgdata\flightgear-fgmeta\flightgear\src\Main\options.cxx:2338:   option:airport = SOCA
general:3:F:\SvnFG\fgdata\flightgear-fgmeta\flightgear\src\Main\options.cxx:2338:   option:aircraft = c150
general:3:F:\SvnFG\fgdata\flightgear-fgmeta\flightgear\src\Main\options.cxx:2338:   option:config = C:/Users/Cyra/AppData/Roaming/flightgear.org/Export/ufo-model-export.xml
general:3:F:\SvnFG\fgdata\flightgear-fgmeta\flightgear\src\Main\options.cxx:2338:   option:enable-random-objects =
general:3:F:\SvnFG\fgdata\flightgear-fgmeta\flightgear\src\Main\options.cxx:2338:   option:enable-auto-coordination =
general:3:F:\SvnFG\fgdata\flightgear-fgmeta\flightgear\src\Main\options.cxx:2338:   option:enable-ai-models =
general:3:F:\SvnFG\fgdata\flightgear-fgmeta\flightgear\src\Main\options.cxx:2338:   option:disable-ai-traffic =
general:3:F:\SvnFG\fgdata\flightgear-fgmeta\flightgear\src\Main\options.cxx:2338:   option:disable-real-weather-fetch =
general:3:F:\SvnFG\fgdata\flightgear-fgmeta\flightgear\src\Main\options.cxx:2338:   option:enable-clouds3d =
general:3:F:\SvnFG\fgdata\flightgear-fgmeta\flightgear\src\Main\options.cxx:2338:   option:prop = /sim/frame-rate-throttle-hz=40
general:3:F:\SvnFG\fgdata\flightgear-fgmeta\flightgear\src\Main\options.cxx:2338:   option:prop = /sim/menubar/autovisibility/enabled=1
general:3:F:\SvnFG\fgdata\flightgear-fgmeta\flightgear\src\Main\options.cxx:902:Setting geometry to 1920x1200

general:3:F:\SvnFG\fgdata\flightgear-fgmeta\flightgear\src\Main\options.cxx:2338:   option:geometry = 1920x1200
general:3:F:\SvnFG\fgdata\flightgear-fgmeta\flightgear\src\Main\options.cxx:2338:   option:bpp = 32
general:3:F:\SvnFG\fgdata\flightgear-fgmeta\flightgear\src\Main\options.cxx:2338:   option:fov = 59
general:3:F:\SvnFG\fgdata\flightgear-fgmeta\flightgear\src\Main\options.cxx:2338:   option:texture-filtering = 8
general:3:F:\SvnFG\fgdata\flightgear-fgmeta\flightgear\src\Main\options.cxx:2338:   option:prop = /sim/rendering/multi-sample-buffers=1
general:3:F:\SvnFG\fgdata\flightgear-fgmeta\flightgear\src\Main\options.cxx:2338:   option:prop = /sim/rendering/multi-samples=4
general:3:F:\SvnFG\fgdata\flightgear-fgmeta\flightgear\src\Main\options.cxx:2338:   option:timeofday = morning
general:3:F:\SvnFG\fgdata\flightgear-fgmeta\flightgear\src\Main\options.cxx:2338:   option:disable-terrasync =
general:3:F:\SvnFG\fgdata\flightgear-fgmeta\flightgear\src\Main\options.cxx:2338:   option:httpd = 5500
general:3:F:\SvnFG\fgdata\flightgear-fgmeta\flightgear\src\Main\options.cxx:2338:   option:disable-fgcom =
general:3:F:\SvnFG\fgdata\flightgear-fgmeta\flightgear\src\Main\options.cxx:670:Channel string = socket,bi,5,192.168.0.21,9000,tcp
general:3:F:\SvnFG\fgdata\flightgear-fgmeta\flightgear\src\Main\options.cxx:2338:   option:telnet = socket,bi,5,192.168.0.21,9000,tcp
general:3:F:\SvnFG\fgdata\flightgear-fgmeta\flightgear\src\Main\options.cxx:2338:   option:prop = /source=Models-ts
general:3:F:\SvnFG\fgdata\flightgear-fgmeta\flightgear\src\Main\options.cxx:2338:   option:prop = /sim/aircraft/state=zzzzz
general:3:F:\SvnFG\fgdata\flightgear-fgmeta\flightgear\src\Main\options.cxx:2338:   option:log-level = warn
general:3:F:\SvnFG\fgdata\flightgear-fgmeta\flightgear\src\Main\options.cxx:2361:Using default download dir: Path "C:/Users/Cyra/Documents/FlightGear"
general:3:F:\SvnFG\fgdata\flightgear-fgmeta\flightgear\src\Main\options.cxx:2385:Using explicit TerraSync dir: Path "F:/FlightGear/terrasync2"
astro:3:F:\SvnFG\fgdata\flightgear-fgmeta\simgear\simgear\scene\sky\cloud.cxx:343:initializing cloud layers
io:4:F:\SvnFG\fgdata\flightgear-fgmeta\simgear\simgear\scene\model\ModelRegistry.cxx:201:Image loading failed:
io:4:F:\SvnFG\fgdata\flightgear-fgmeta\simgear\simgear\scene\model\ModelRegistry.cxx:201:Image loading failed:
io:4:F:\SvnFG\fgdata\flightgear-fgmeta\simgear\simgear\scene\model\ModelRegistry.cxx:201:Image loading failed:
io:4:F:\SvnFG\fgdata\flightgear-fgmeta\simgear\simgear\scene\model\ModelRegistry.cxx:201:Image loading failed:
io:4:F:\SvnFG\fgdata\flightgear-fgmeta\simgear\simgear\scene\model\ModelRegistry.cxx:201:Image loading failed:
io:4:F:\SvnFG\fgdata\flightgear-fgmeta\simgear\simgear\scene\model\ModelRegistry.cxx:201:Image loading failed:
general:5:F:\SvnFG\fgdata\flightgear-fgmeta\flightgear\src\Main\main.cxx:531:Enabling ATI viewport hack

...
Code: Select all
io:4:F:\SvnFG\fgdata\flightgear-fgmeta\simgear\simgear\scene\model\ModelRegistry.cxx:201:Image loading failed:Warning: reading "F:\dvlp\c150\fg-aircraft\c150\Models\Panel\Instruments\ai\knob.png" not supported.
opengl:5:F:\SvnFG\fgdata\flightgear-fgmeta\flightgear\src\Viewer\fg_os_osgviewer.cxx:203:osgDB ac3d reader: could not read texture "knob.png"

io:4:F:\SvnFG\fgdata\flightgear-fgmeta\simgear\simgear\scene\model\ModelRegistry.cxx:201:Image loading failed:Warning: reading "F:\dvlp\c150\fg-aircraft\c150\Models\Panel\Instruments\ai\AI1.png" not supported.
opengl:5:F:\SvnFG\fgdata\flightgear-fgmeta\flightgear\src\Viewer\fg_os_osgviewer.cxx:203:osgDB ac3d reader: could not read texture "AI1.png"

The last lines show that the ac3d loader library is found and can run but there is some problem with the png plugin.

Anybody saw this before ?

hj.
Harald
 
Posts: 179
Joined: Fri Mar 02, 2007 5:30 pm
Location: Strasbourg, France
Version: nightly
OS: Windows 10

Re: Image loading failed error

Postby Thorsten » Sat Jul 02, 2016 10:40 am

Had it once, the solution was to compile OSG with png support which creates the missing lib to read png. So it prompts the question where your OSG is coming from. It's likely not a native FG problem.
Thorsten
 
Posts: 12490
Joined: Mon Nov 02, 2009 9:33 am

Re: Image loading failed error

Postby Harald » Sun Jul 03, 2016 8:01 am

OSG (includes and libraries) comes from the 3rd party repository in Jenkins, it's version 3.4.0 now while it was 3.2.1 previously.
The problem is that there is no more a nightly version of FG for windows so I can not compare my build with the Jenkins one.

The png plugins is found because I can see that the dll is loaded and then unloaded for each attempt to load a texture.

hj.
Harald
 
Posts: 179
Joined: Fri Mar 02, 2007 5:30 pm
Location: Strasbourg, France
Version: nightly
OS: Windows 10

Re: Image loading failed error

Postby Hooray » Sun Jul 03, 2016 12:27 pm

To troubleshoot this, my suggestion would be trying to load/display one of the png splash screens in the base package using a Canvas dialog - if that works, it's unrelated to the png plugin, and possibly related to recent SGPath refactorings


http://wiki.flightgear.org/Canvas_Snipp ... ter_Images
Image

You will need to append that snippet to the boilerplate code from: http://wiki.flightgear.org/Canvas_Snipp ... GUI_Window

You can then copy/paste that into the Nasal Console:
http://wiki.flightgear.org/Nasal_Console
Image
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: Image loading failed error

Postby Alant » Sun Jul 03, 2016 3:18 pm

Everytime that I have been caught out by this it has been the osg png plugin - either missing or wrong version.
.
Check that you do not have another copy of OSG on your machine, and that the OSG path points to the OSG that you have from Jenkins..

It may help to put the OSG path near the top of your path environment variable.

I see that you are using 32 bit. If possible use 64 bit as FG needs lots of memory space.
Alant
 
Posts: 1223
Joined: Wed Jun 23, 2010 6:58 am
Location: Portugal
Callsign: Tarnish99
Version: latest Git
OS: Windows 10/11


Return to Compiling

Who is online

Users browsing this forum: No registered users and 3 guests