Graphical corruption on (X)Ubuntu 12.10, but not Fedora 17?

Forum for discussing various mods for the VS-engine based upon Privateer. (Please play nice now, and extinguish all flaming materials.
Sincerely, The Management)
Post Reply
ermo
Mercenary
Mercenary
Posts: 104
Joined: Tue Oct 30, 2012 7:46 pm

Graphical corruption on (X)Ubuntu 12.10, but not Fedora 17?

Post by ermo »

Hey,

So, I've tested the exact same PU revision (r505) on the same VS trunk engine version (r13482 as of this writing) and as mentioned elsewhere ... on XUbuntu, anything that isn't a DDS or a PNG in RGBA format makes the VS engine go kookoo with the PU assets (but not with the native VS assets, strangely enough). On Fedora OTOH, there isn't a hint of trouble. From a cursory analysis, the only difference is that XUbuntu 12.10 uses libpng1.2, whereas Fedora 17 uses libpng1.5.

I figure that there's a higher probability that people who want to build VS will be using Ubuntu than Fedora, so this thread is intended to be the tracker issue for this rather strange phenomenon, which nonetheless is bound to have a logical explanation. I hope. :mrgreen:
Last edited by ermo on Sun Jan 20, 2013 4:55 pm, edited 1 time in total.
Privateer: Wing Commander Universe -- the continuation of chuck_starchaser's Privateer: Parallel Universe mod.
ermo
Mercenary
Mercenary
Posts: 104
Joined: Tue Oct 30, 2012 7:46 pm

Re: Graphical corruption on (X)Ubuntu 12.10, but not Fedora

Post by ermo »

Did some version investigation on my XUbuntu box:

Code: Select all

# dpkg-query -l '<pattern>'
# apt-cache search <pattern>
# apt-cache show <package>

-- libpng Ubuntu:
un  libpng-dev          <none>                        (ingen tilgængelig beskrivelse)
ii  libpng12-0:amd64    1.2.49-1ubuntu amd64          PNG library - runtime
un  libpng12-0-dev      <none>                        (ingen tilgængelig beskrivelse)
ii  libpng12-dev        1.2.49-1ubuntu amd64          PNG library - development
un  libpng2             <none>                        (ingen tilgængelig beskrivelse)
un  libpng2-dev         <none>                        (ingen tilgængelig beskrivelse)
un  libpng3-dev         <none>                        (ingen tilgængelig beskrivelse)

-- libjpeg Ubuntu:
un  libjpeg-dev         <none>                        (ingen tilgængelig beskrivelse)
ii  libjpeg-progs       8c-2ubuntu7    amd64          Programs for manipulating JPEG files (depen
ii  libjpeg-turbo-progs 1.2.1-0ubuntu2 amd64          Programs for manipulating JPEG files
ii  libjpeg-turbo8:amd6 1.2.1-0ubuntu2 amd64          IJG JPEG compliant runtime library.
ii  libjpeg-turbo8-dev: 1.2.1-0ubuntu2 amd64          Development files for the IJG JPEG library
un  libjpeg62-dev       <none>                        (ingen tilgængelig beskrivelse)
un  libjpeg7-dev        <none>                        (ingen tilgængelig beskrivelse)
ii  libjpeg8:amd64      8c-2ubuntu7    amd64          Independent JPEG Group's JPEG runtime libra
un  libjpeg8-dev        <none>                        (ingen tilgængelig beskrivelse)

-- mesa Ubuntu:
ii  libgl1-mesa-dev     9.0-0ubuntu1   amd64          free implementation of the OpenGL API -- GL
ii  libgl1-mesa-dri:amd 9.0-0ubuntu1   amd64          free implementation of the OpenGL API -- DR
un  libgl1-mesa-dri-dev <none>                        (ingen tilgængelig beskrivelse)
un  libgl1-mesa-dri-exp <none>                        (ingen tilgængelig beskrivelse)
ii  libgl1-mesa-glx:amd 9.0-0ubuntu1   amd64          free implementation of the OpenGL API -- GL
un  libgl1-mesa-glx-no- <none>                        (ingen tilgængelig beskrivelse)
un  libgl1-mesa-swx11-d <none>                        (ingen tilgængelig beskrivelse)
ii  libglapi-mesa:amd64 9.0-0ubuntu1   amd64          free implementation of the GL API -- shared
ii  libglu1-mesa:amd64  9.0.0-0ubuntu1 amd64          Mesa OpenGL utility library (GLU)
ii  libglu1-mesa-dev    9.0.0-0ubuntu1 amd64          Mesa OpenGL utility library -- development 
ii  mesa-common-dev     9.0-0ubuntu1   amd64          Developer documentation for Mesa
un  mesa-glide2-dev     <none>                        (ingen tilgængelig beskrivelse)
un  mesa-utils          <none>                        (ingen tilgængelig beskrivelse)
un  mesag-dev           <none>                        (ingen tilgængelig beskrivelse)
un  mesag3              <none>                        (ingen tilgængelig beskrivelse)
un  mesag3+ggi-dev      <none>                        (ingen tilgængelig beskrivelse)
un  xlibmesa-dev        <none>                        (ingen tilgængelig beskrivelse)
un  xlibmesa-dri        <none>                        (ingen tilgængelig beskrivelse)
un  xlibmesa-gl-dev     <none>                        (ingen tilgængelig beskrivelse)
un  xlibmesa-glu-dev    <none>                        (ingen tilgængelig beskrivelse)
un  xlibmesa3           <none>                        (ingen tilgængelig beskrivelse)
un  xlibosmesa-dev      <none>                        (ingen tilgængelig beskrivelse)

-- libdrm Ubuntu
ii  libdrm-dev          2.4.39-0ubuntu amd64          Userspace interface to kernel DRM services 
ii  libdrm-intel1:amd64 2.4.39-0ubuntu amd64          Userspace interface to intel-specific kerne
un  libdrm-nouveau1     <none>                        (ingen tilgængelig beskrivelse)
ii  libdrm-nouveau1a:am 2.4.39-0ubuntu amd64          Userspace interface to nouveau-specific ker
ii  libdrm-nouveau2:amd 2.4.39-0ubuntu amd64          Userspace interface to nouveau-specific ker
ii  libdrm-radeon1:amd6 2.4.39-0ubuntu amd64          Userspace interface to radeon-specific kern
ii  libdrm2:amd64       2.4.39-0ubuntu amd64          Userspace interface to kernel DRM services 

-- libdri2 Ubuntu
Package: libdri2-1
Priority: optional
Section: libs
Installed-Size: 50
Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
Architecture: amd64
Source: libdri2
Version: 1.0.0~git20120510+26fee2e-0ubuntu1
Depends: libc6 (>= 2.2.5), libx11-6 (>= 2:1.4.99.1), libxext6
Pre-Depends: multiarch-support
Filename: pool/main/libd/libdri2/libdri2-1_1.0.0~git20120510+26fee2e-0ubuntu1_amd64.deb

-- libx* Ubuntu
ii  libx11-6:amd64      2:1.5.0-1      amd64          X11 client-side library
ii  libx11-data         2:1.5.0-1      all            X11 client-side library
ii  libx11-dev:amd64    2:1.5.0-1      amd64          X11 client-side library (development header
ii  libx11-doc          2:1.5.0-1      all            X11 client-side library (development docume
ii  libx11-xcb-dev      2:1.5.0-1      amd64          Xlib/XCB interface library (development hea
ii  libx11-xcb1:amd64   2:1.5.0-1      amd64          Xlib/XCB interface library
ii  libx264-123:amd64   2:0.123.2189+g amd64          x264 video coding library
ii  libx86-1:amd64      1.1+ds1-10     amd64          x86 real-mode library
ii  libxapian22         1.2.12-1       amd64          Search engine library
ii  libxatracker1:amd64 9.0-0ubuntu1   amd64          X acceleration library -- runtime
ii  libxau-dev:amd64    1:1.0.7-1      amd64          X11 authorisation library (development head
ii  libxau6:amd64       1:1.0.7-1      amd64          X11 authorisation library
ii  libxaw7:amd64       2:1.0.10-2     amd64          X11 Athena Widget library
un  libxcb-doc          <none>                        (ingen tilgængelig beskrivelse)
ii  libxcb-dri2-0:amd64 1.8.1-1ubuntu1 amd64          X C Binding, dri2 extension
ii  libxcb-glx0:amd64   1.8.1-1ubuntu1 amd64          X C Binding, glx extension
ii  libxcb-glx0-dev:amd 1.8.1-1ubuntu1 amd64          X C Binding, glx extension, development fil
ii  libxcb-render0:amd6 1.8.1-1ubuntu1 amd64          X C Binding, render extension
ii  libxcb-render0-dev: 1.8.1-1ubuntu1 amd64          X C Binding, render extension, development 
ii  libxcb-shape0:amd64 1.8.1-1ubuntu1 amd64          X C Binding, shape extension
ii  libxcb-shm0:amd64   1.8.1-1ubuntu1 amd64          X C Binding, shm extension
ii  libxcb-shm0-dev:amd 1.8.1-1ubuntu1 amd64          X C Binding, shm extension, development fil
ii  libxcb-util0:amd64  0.3.8-2build1  amd64          utility libraries for X C Binding -- atom, 
un  libxcb-xlib0        <none>                        (ingen tilgængelig beskrivelse)
un  libxcb0-dev         <none>                        (ingen tilgængelig beskrivelse)
ii  libxcb1:amd64       1.8.1-1ubuntu1 amd64          X C Binding
ii  libxcb1-dev:amd64   1.8.1-1ubuntu1 amd64          X C Binding, development files
ii  libxcomposite-dev   1:0.4.3-2build amd64          X11 Composite extension library (developmen
ii  libxcomposite1:amd6 1:0.4.3-2build amd64          X11 Composite extension library
ii  libxcursor-dev:amd6 1:1.1.13-1     amd64          X cursor management library (development fi
ii  libxcursor1:amd64   1:1.1.13-1     amd64          X cursor management library
ii  libxdamage-dev      1:1.1.3-2build amd64          X11 damaged region extension library (devel
ii  libxdamage1:amd64   1:1.1.3-2build amd64          X11 damaged region extension library
ii  libxdmcp-dev:amd64  1:1.1.1-1      amd64          X11 authorisation library (development head
ii  libxdmcp6:amd64     1:1.1.1-1      amd64          X11 Display Manager Control Protocol librar
ii  libxext-dev:amd64   2:1.3.1-2      amd64          X11 miscellaneous extensions library (devel
un  libxext-doc         <none>                        (ingen tilgængelig beskrivelse)
ii  libxext6:amd64      2:1.3.1-2      amd64          X11 miscellaneous extension library
ii  libxfce4ui-1-0      4.10.0-1       amd64          widget library for Xfce
ii  libxfce4ui-utils    4.10.0-1       amd64          Utility files for libxfce4ui
ii  libxfce4util-bin    4.10.0-1       amd64          tools for libxfce4util
ii  libxfce4util-common 4.10.0-1       all            common files for libxfce4util
un  libxfce4util4       <none>                        (ingen tilgængelig beskrivelse)
ii  libxfce4util6       4.10.0-1       amd64          Utility functions library for Xfce4
ii  libxfcegui4-4       4.10.0-1       amd64          Basic GUI C functions for Xfce4
ii  libxfconf-0-2       4.10.0-1       amd64          Client library for Xfce4 configure interfac
ii  libxfixes-dev       1:5.0-4ubuntu5 amd64          X11 miscellaneous 'fixes' extension library
ii  libxfixes3:amd64    1:5.0-4ubuntu5 amd64          X11 miscellaneous 'fixes' extension library
ii  libxfont1           1:1.4.5-2      amd64          X11 font rasterisation library
ii  libxft-dev          2.3.1-1        amd64          FreeType-based font drawing library for X (
ii  libxft2:amd64       2.3.1-1        amd64          FreeType-based font drawing library for X
un  libxft2-dev         <none>                        (ingen tilgængelig beskrivelse)
ii  libxi-dev           2:1.6.1-1      amd64          X11 Input extension library (development he
ii  libxi6:amd64        2:1.6.1-1      amd64          X11 Input extension library
ii  libxinerama-dev:amd 2:1.1.2-1      amd64          X11 Xinerama extension library (development
ii  libxinerama1:amd64  2:1.1.2-1      amd64          X11 Xinerama extension library
ii  libxkbfile1:amd64   1:1.0.8-1      amd64          X11 keyboard file manipulation library
ii  libxklavier16       5.2.1-1ubuntu2 amd64          X Keyboard Extension high-level API
un  libxml-parser-lite- <none>                        (ingen tilgængelig beskrivelse)
ii  libxml-parser-perl  2.41-1build2   amd64          Perl module for parsing XML files
un  libxml-simple-perl  <none>                        (ingen tilgængelig beskrivelse)
ii  libxml-twig-perl    1:3.39-1ubuntu all            Perl module for processing huge XML documen
ii  libxml-xpath-perl   1.13-7         all            Perl module for processing XPath
un  libxml-xpathengine- <none>                        (ingen tilgængelig beskrivelse)
ii  libxml2:amd64       2.8.0+dfsg1-5u amd64          GNOME XML library
ii  libxml2-utils       2.8.0+dfsg1-5u amd64          XML utilities
un  libxmlrpc-c3        <none>                        (ingen tilgængelig beskrivelse)
un  libxmlrpc-c3-0      <none>                        (ingen tilgængelig beskrivelse)
ii  libxmlrpc-core-c3   1.16.33-3.1ubu amd64          lightweight RPC library based on XML and HT
un  libxmlrpc-core-c3-0 <none>                        (ingen tilgængelig beskrivelse)
ii  libxmu-dev:amd64    2:1.1.1-1      amd64          X11 miscellaneous utility library (developm
ii  libxmu-headers      2:1.1.1-1      all            X11 miscellaneous utility library headers
ii  libxmu6:amd64       2:1.1.1-1      amd64          X11 miscellaneous utility library
ii  libxmuu1:amd64      2:1.1.1-1      amd64          X11 miscellaneous micro-utility library
ii  libxp6:amd64        1:1.0.1-2build amd64          X Printing Extension (Xprint) client librar
ii  libxpm4:amd64       1:3.5.10-1     amd64          X11 pixmap library
ii  libxrandr-dev       2:1.4.0-1      amd64          X11 RandR extension library (development he
ii  libxrandr2:amd64    2:1.4.0-1      amd64          X11 RandR extension library
ii  libxrender-dev:amd6 1:0.9.7-1      amd64          X Rendering Extension client library (devel
ii  libxrender1:amd64   1:0.9.7-1      amd64          X Rendering Extension client library
ii  libxres1:amd64      2:1.0.6-1      amd64          X11 Resource extension library
un  libxsloader-perl    <none>                        (ingen tilgængelig beskrivelse)
ii  libxslt1.1:amd64    1.1.26-14      amd64          XSLT 1.0 processing library - runtime libra
ii  libxss1:amd64       1:1.2.2-1      amd64          X11 Screen Saver extension library
ii  libxt-dev:amd64     1:1.1.3-1      amd64          X11 toolkit intrinsics library (development
un  libxt-doc           <none>                        (ingen tilgængelig beskrivelse)
ii  libxt6:amd64        1:1.1.3-1      amd64          X11 toolkit intrinsics library
un  libxtst-dev         <none>                        (ingen tilgængelig beskrivelse)
ii  libxtst6:amd64      2:1.2.1-1      amd64          X11 Testing -- Record extension library
un  libxul0d            <none>                        (ingen tilgængelig beskrivelse)
ii  libxv1:amd64        2:1.0.7-1      amd64          X11 Video extension library
ii  libxvidcore4:amd64  2:1.3.2-9      amd64          Open source MPEG-4 video codec (library)
ii  libxvmc1            2:1.0.7-1ubunt amd64          X11 Video extension library
ii  libxxf86dga1:amd64  2:1.1.3-2      amd64          X11 Direct Graphics Access extension librar
ii  libxxf86vm-dev      1:1.1.2-1      amd64          X11 XFree86 video mode extension library (d
ii  libxxf86vm1:amd64   1:1.1.2-1      amd64          X11 XFree86 video mode extension library

-- xserver-xorg* Ubuntu:
ii  xserver-xorg        1:7.7+1ubuntu4 amd64          X.Org X server
ii  xserver-xorg-core   2:1.13.0-0ubun amd64          Xorg X server - core server
un  xserver-xorg-core-n <none>                        (ingen tilgængelig beskrivelse)
un  xserver-xorg-driver <none>                        (ingen tilgængelig beskrivelse)
un  xserver-xorg-driver <none>                        (ingen tilgængelig beskrivelse)
un  xserver-xorg-input  <none>                        (ingen tilgængelig beskrivelse)
un  xserver-xorg-input- <none>                        (ingen tilgængelig beskrivelse)
un  xserver-xorg-input- <none>                        (ingen tilgængelig beskrivelse)
un  xserver-xorg-input- <none>                        (ingen tilgængelig beskrivelse)
un  xserver-xorg-input- <none>                        (ingen tilgængelig beskrivelse)
ii  xserver-xorg-input- 1:7.7+1ubuntu4 amd64          X.Org X server -- input driver metapackage
ii  xserver-xorg-input- 1:2.7.3-0ubunt amd64          X.Org X server -- evdev input driver
un  xserver-xorg-input- <none>                        (ingen tilgængelig beskrivelse)
ii  xserver-xorg-input- 1:1.7.2-2build amd64          X.Org X server -- mouse input driver
ii  xserver-xorg-input- 1.6.2-1ubuntu5 amd64          Synaptics TouchPad driver for X.Org server
un  xserver-xorg-input- <none>                        (ingen tilgængelig beskrivelse)
ii  xserver-xorg-input- 1:12.9.0-0ubun amd64          X.Org X server -- VMMouse input driver to u
ii  xserver-xorg-input- 1:0.17.0-0ubun amd64          X.Org X server -- Wacom input driver
un  xserver-xorg-video  <none>                        (ingen tilgængelig beskrivelse)
un  xserver-xorg-video- <none>                        (ingen tilgængelig beskrivelse)
un  xserver-xorg-video- <none>                        (ingen tilgængelig beskrivelse)
un  xserver-xorg-video- <none>                        (ingen tilgængelig beskrivelse)
un  xserver-xorg-video- <none>                        (ingen tilgængelig beskrivelse)
un  xserver-xorg-video- <none>                        (ingen tilgængelig beskrivelse)
un  xserver-xorg-video- <none>                        (ingen tilgængelig beskrivelse)
un  xserver-xorg-video- <none>                        (ingen tilgængelig beskrivelse)
ii  xserver-xorg-video- 1:7.7+1ubuntu4 amd64          X.Org X server -- output driver metapackage
ii  xserver-xorg-video- 1:6.99.99~git2 amd64          X.Org X server -- AMD/ATI display driver wr
ii  xserver-xorg-video- 1:1.5.1-0ubunt amd64          X.Org X server -- Cirrus display driver
un  xserver-xorg-video- <none>                        (ingen tilgængelig beskrivelse)
ii  xserver-xorg-video- 1:0.4.3-0ubunt amd64          X.Org X server -- fbdev display driver
un  xserver-xorg-video- <none>                        (ingen tilgængelig beskrivelse)
un  xserver-xorg-video- <none>                        (ingen tilgængelig beskrivelse)
ii  xserver-xorg-video- 2:2.20.9-0ubun amd64          X.Org X server -- Intel i8xx, i9xx display 
ii  xserver-xorg-video- 6.9.3-0ubuntu1 amd64          X.Org X server -- ATI Mach64 display driver
ii  xserver-xorg-video- 1:1.6.2-0ubunt amd64          X.Org X server -- MGA display driver
ii  xserver-xorg-video- 0.5.0-0ubuntu1 amd64          X.Org X server -- Generic modesetting drive
ii  xserver-xorg-video- 1:1.2.7-0ubunt amd64          X.Org X server -- Neomagic display driver
ii  xserver-xorg-video- 1:1.0.2-0ubunt amd64          X.Org X server -- Nouveau display driver
un  xserver-xorg-video- <none>                        (ingen tilgængelig beskrivelse)
ii  xserver-xorg-video- 1:0.3.1-0ubunt amd64          X.Org X server -- VIA display driver
ii  xserver-xorg-video- 0.1.0-0ubuntu1 amd64          X.Org X server -- QXL display driver
ii  xserver-xorg-video- 6.9.1-0ubuntu1 amd64          X.Org X server -- ATI r128 display driver
ii  xserver-xorg-video- 1:6.99.99~git2 amd64          X.Org X server -- AMD/ATI Radeon display dr
ii  xserver-xorg-video- 1:0.6.5-0ubunt amd64          X.Org X server -- legacy S3 display driver
ii  xserver-xorg-video- 1:2.3.6-0ubunt amd64          X.Org X server -- Savage display driver
ii  xserver-xorg-video- 1:1.7.7-0ubunt amd64          X.Org X server -- SiliconMotion display dri
ii  xserver-xorg-video- 1:0.10.7-0ubun amd64          X.Org X server -- SiS display driver
ii  xserver-xorg-video- 1:0.9.6-0ubunt amd64          X.Org X server -- SiS USB display driver
un  xserver-xorg-video- <none>                        (ingen tilgængelig beskrivelse)
ii  xserver-xorg-video- 1:1.4.5-0ubunt amd64          X.Org X server -- tdfx display driver
ii  xserver-xorg-video- 1:1.3.6-0ubunt amd64          X.Org X server -- Trident display driver
un  xserver-xorg-video- <none>                        (ingen tilgængelig beskrivelse)
ii  xserver-xorg-video- 1:2.3.2-0ubunt amd64          X.Org X server -- VESA display driver
un  xserver-xorg-video- <none>                        (ingen tilgængelig beskrivelse)
ii  xserver-xorg-video- 1:12.0.2+git.e amd64          X.Org X server -- VMware display driver

-- xorg* Ubuntu:
ii  xorg                1:7.7+1ubuntu4 amd64          X.Org X Window System
un  xorg-docs           <none>                        (ingen tilgængelig beskrivelse)
ii  xorg-docs-core      1:1.6-1ubuntu2 all            Core documentation for the X.org X Window S
un  xorg-driver-input   <none>                        (ingen tilgængelig beskrivelse)
un  xorg-driver-synapti <none>                        (ingen tilgængelig beskrivelse)
un  xorg-driver-video   <none>                        (ingen tilgængelig beskrivelse)
un  xorg-input-abi-18   <none>                        (ingen tilgængelig beskrivelse)
ii  xorg-sgml-doctools  1:1.10-1       all            Common tools for building X.Org SGML docume
un  xorg-video-abi-13   <none>                        (ingen tilgængelig beskrivelse)
Privateer: Wing Commander Universe -- the continuation of chuck_starchaser's Privateer: Parallel Universe mod.
klauss
Elite
Elite
Posts: 7243
Joined: Mon Apr 18, 2005 2:40 pm
Location: LS87, Buenos Aires, República Argentina

Re: Graphical corruption on (X)Ubuntu 12.10, but not Fedora

Post by klauss »

Do you have screenshots?
Oíd mortales, el grito sagrado...
Call me "Menes, lord of Cats"
Wing Commander Universe
ermo
Mercenary
Mercenary
Posts: 104
Joined: Tue Oct 30, 2012 7:46 pm

Re: Graphical corruption on (X)Ubuntu 12.10, but not Fedora

Post by ermo »

Gah. No. And I just installed fedora 18 on my dev box. Oops.

But I think I linked to an image in the wcjunction thread -- let me check if the image is still there...
Privateer: Wing Commander Universe -- the continuation of chuck_starchaser's Privateer: Parallel Universe mod.
ermo
Mercenary
Mercenary
Posts: 104
Joined: Tue Oct 30, 2012 7:46 pm

Re: Graphical corruption on (X)Ubuntu 12.10, but not Fedora

Post by ermo »

@klauss:

I re-installed XUbuntu 12.10 just to get some good screenshots of the issue for you.

While I was at it, I updated the build prerequisites for building with cmake -- this is what is needed to build VS on a pristine XUbuntu 12.10 install (I haven't updated the wiki yet, but I will if you agree that this looks ok):

Code: Select all

sudo apt-get install \
     build-essential cmake-curses-gui freeglut3-dev python-dev \
     lib{expat1,gl1-mesa,gtk2.0,jpeg-turbo8,ogg,openal,png12,sdl1.2,vorbis,xmu}-dev
priv_pu_loading.png
priv_pu_menu.png
priv_pu_troy_achilles_mining_base_bartender.png
flying_around.png
priv_pu_helen_troy_agricultural_bartender.png
You do not have the required permissions to view the files attached to this post.
Privateer: Wing Commander Universe -- the continuation of chuck_starchaser's Privateer: Parallel Universe mod.
klauss
Elite
Elite
Posts: 7243
Joined: Mon Apr 18, 2005 2:40 pm
Location: LS87, Buenos Aires, República Argentina

Re: Graphical corruption on (X)Ubuntu 12.10, but not Fedora

Post by klauss »

Feel free to add them to the wiki.

You know... those do look like libpng/jpg issues. Maybe it's some incompatibility with libjpeg-turbo. In any case, please, if you haven't, open a bug report, attach the screenshots to the bug tracker, so I don't forget. I do have an Ubuntu laptop somewhere. It's very old and I don't think it will run VS, but I should try. If it runs, I could maybe debug this.
Oíd mortales, el grito sagrado...
Call me "Menes, lord of Cats"
Wing Commander Universe
ermo
Mercenary
Mercenary
Posts: 104
Joined: Tue Oct 30, 2012 7:46 pm

Re: Graphical corruption on (X)Ubuntu 12.10, but not Fedora

Post by ermo »

klauss wrote:Feel free to add them to the wiki.

You know... those do look like libpng/jpg issues. Maybe it's some incompatibility with libjpeg-turbo. In any case, please, if you haven't, open a bug report, attach the screenshots to the bug tracker, so I don't forget. I do have an Ubuntu laptop somewhere. It's very old and I don't think it will run VS, but I should try. If it runs, I could maybe debug this.
Please be aware that Fedora 17 and 18 both use libjpeg-turbo just fine, though Fedora uses libpng1.5 vs. libpng1.2 on Ubuntu. So the only thing that differs is the libpng version AFAICT.

Now, I don't know if you do your own magic probing of the sprites before attempting to load them, but in many cases, the PU assets will be called .png and in reality be .jpg or the .png files will have no alpha channel; but if you convert the files in question to be RGBA .png, they will load just fine, even on Ubuntu.

How does the engine determine which format a given sprite is in? Does it just try to decode the sprite with each library and the first library that doesn't throw an error gets to do it?
Privateer: Wing Commander Universe -- the continuation of chuck_starchaser's Privateer: Parallel Universe mod.
klauss
Elite
Elite
Posts: 7243
Joined: Mon Apr 18, 2005 2:40 pm
Location: LS87, Buenos Aires, República Argentina

Re: Graphical corruption on (X)Ubuntu 12.10, but not Fedora

Post by klauss »

ermo wrote: Now, I don't know if you do your own magic probing of the sprites before attempting to load them, but in many cases, the PU assets will be called .png and in reality be .jpg or the .png files will have no alpha channel;
Yeah, there's maging probing involved.
ermo wrote:but if you convert the files in question to be RGBA .png, they will load just fine, even on Ubuntu.
Um... then maybe there's the issue. We had reached that conclusion before I guess. That's why there must be a tracker entry, so we can write down these :)
Oíd mortales, el grito sagrado...
Call me "Menes, lord of Cats"
Wing Commander Universe
ermo
Mercenary
Mercenary
Posts: 104
Joined: Tue Oct 30, 2012 7:46 pm

Re: Graphical corruption on (X)Ubuntu 12.10, but not Fedora

Post by ermo »

klauss wrote:
ermo wrote: Now, I don't know if you do your own magic probing of the sprites before attempting to load them, but in many cases, the PU assets will be called .png and in reality be .jpg or the .png files will have no alpha channel;
Yeah, there's maging probing involved.
ermo wrote:but if you convert the files in question to be RGBA .png, they will load just fine, even on Ubuntu.
Um... then maybe there's the issue. We had reached that conclusion before I guess. That's why there must be a tracker entry, so we can write down these :)
I've created the tracker entry here: https://sourceforge.net/tracker/?func=d ... tid=119507

Unfortunately, even when I crop the images, they are still so large that the SF issue tracker doesn't allow me to attach them. If you still want them there, it would probably be better if you crop and resize them to the minimum acceptable quality yourself? =)
Privateer: Wing Commander Universe -- the continuation of chuck_starchaser's Privateer: Parallel Universe mod.
klauss
Elite
Elite
Posts: 7243
Joined: Mon Apr 18, 2005 2:40 pm
Location: LS87, Buenos Aires, República Argentina

Re: Graphical corruption on (X)Ubuntu 12.10, but not Fedora

Post by klauss »

Well, as a last resort, you can post a link to the images here.
Oíd mortales, el grito sagrado...
Call me "Menes, lord of Cats"
Wing Commander Universe
ermo
Mercenary
Mercenary
Posts: 104
Joined: Tue Oct 30, 2012 7:46 pm

Re: Graphical corruption on (X)Ubuntu 12.10, but not Fedora

Post by ermo »

@klauss:

Could you perhaps help me understand how to make cmake use a locally installed (/usr/local) libpng1.5.x on Ubuntu, instead of the system libpng1.2?

I want to test the hypothesis that libpng1.2 is the culprit.
Privateer: Wing Commander Universe -- the continuation of chuck_starchaser's Privateer: Parallel Universe mod.
klauss
Elite
Elite
Posts: 7243
Joined: Mon Apr 18, 2005 2:40 pm
Location: LS87, Buenos Aires, República Argentina

Re: Graphical corruption on (X)Ubuntu 12.10, but not Fedora

Post by klauss »

After configuring visually (with ccmake), go to advanced mode, and edit the relevant variables holding the paths (look for libpng-related ones).
Oíd mortales, el grito sagrado...
Call me "Menes, lord of Cats"
Wing Commander Universe
ermo
Mercenary
Mercenary
Posts: 104
Joined: Tue Oct 30, 2012 7:46 pm

Re: Graphical corruption on (X)Ubuntu 12.10, but not Fedora

Post by ermo »

Blergh. I toggled on the advanced mode in ccmake and edited the variables like such:

Code: Select all

CMAKE_BUILD_TYPE                 Release
CMAKE_CXX_FLAGS_RELEASE          -mtune=native -march=native (... etc. etc. ...)
CMAKE_INSTALL_PREFIX             /usr/local
CPUAMD_k10                       OFF
CPUAMD_k8                        OFF
CPUAMD_k9                        OFF
CPUINTEL_core2                   OFF
CPUINTEL_native                  ON
CPUINTEL_nocona                  OFF
CPUINTEL_p4                      OFF
CPUINTEL_prescott                OFF
CPU_SMP                          2
DISABLE_CLIENT                   OFF
DISABLE_FFMPEG                   ON
DISABLE_SERVER                   OFF
EXECUTABLE_OUTPUT_PATH
USE_NET_THREAD_POSIX             OFF
USE_SYSTEM_BOOST                 OFF

( the below is from the advanced mode )

PNG_INCLUDE_DIRS                 /usr/local/include
PNG_LIBRARIES                    /usr/local/lib/libpng.so
I compiled libpng with CFLAGS=" -O2 -g -march=native" and installed it in under /usr/local/ and I'm sorry to report that it changed nothing. I also noticed that I got a segmentation fault on the first run, but not on subsequent runs (where the graphics are corrupted as shown above).

Now that I think about it, this has been a recurring pattern after building on Ubuntu, though not on fedora where the Priv_PU assets run well VS built with the exact same compiler options as above (except libpng) on the same hardware.
Last edited by ermo on Mon Jan 21, 2013 8:54 pm, edited 1 time in total.
Privateer: Wing Commander Universe -- the continuation of chuck_starchaser's Privateer: Parallel Universe mod.
klauss
Elite
Elite
Posts: 7243
Joined: Mon Apr 18, 2005 2:40 pm
Location: LS87, Buenos Aires, República Argentina

Re: Graphical corruption on (X)Ubuntu 12.10, but not Fedora

Post by klauss »

ermo wrote:Now that I think about it, this has been a recurring pattern after building on Ubuntu, though not on fedora where Priv_PU runs well with the exact same compiler options on the same hardware.
Fedora works well and without any graphical glitches?
Oíd mortales, el grito sagrado...
Call me "Menes, lord of Cats"
Wing Commander Universe
ermo
Mercenary
Mercenary
Posts: 104
Joined: Tue Oct 30, 2012 7:46 pm

Re: Graphical corruption on (X)Ubuntu 12.10, but not Fedora

Post by ermo »

klauss wrote:
ermo wrote:Now that I think about it, this has been a recurring pattern after building on Ubuntu, though not on fedora where Priv_PU runs well with the exact same compiler options on the same hardware.
Fedora works well and without any graphical glitches?
Yes, that's the weird thing about it (I've included this in my edit of the above post).
Privateer: Wing Commander Universe -- the continuation of chuck_starchaser's Privateer: Parallel Universe mod.
klauss
Elite
Elite
Posts: 7243
Joined: Mon Apr 18, 2005 2:40 pm
Location: LS87, Buenos Aires, República Argentina

Re: Graphical corruption on (X)Ubuntu 12.10, but not Fedora

Post by klauss »

That's really weird. I still think it's our bug, not Ubuntu's. Something in Fedora's (or openSUSE's for that matter) libpng is shielding us from that bug, but not Ubuntu's.
Oíd mortales, el grito sagrado...
Call me "Menes, lord of Cats"
Wing Commander Universe
ermo
Mercenary
Mercenary
Posts: 104
Joined: Tue Oct 30, 2012 7:46 pm

Re: Graphical corruption on (X)Ubuntu 12.10, but not Fedora

Post by ermo »

klauss wrote:That's really weird. I still think it's our bug, not Ubuntu's. Something in Fedora's (or openSUSE's for that matter) libpng is shielding us from that bug, but not Ubuntu's.
At this point, I'd be a lot more comfortable if you could at least reproduce my issue on Ubuntu. What if it turns out to be a bug specific to my particular hardware and Ubuntu? That'd be pretty crazy...

FWIW, I'm using a 256MB Radeon X1950 Pro AGP card with a C2D E5700@3.0GHz on an ASRock 4CoreDual-SATA2 R2.0 motherboard (which I bought because I wanted to reuse the gfx card). The only thing left is to try and reproduce the issue on XUbuntu 12.10 with a different GPU.

And why do you figure that the issue is libpng related? JPGs are affected as well AFAICT? What if it is the probing mechanism that fails on Ubuntu (if that even makes sense...)?

Do you want to get in touch via IM or IRC? I hang out in #vegastrike on freenode and you can PM me if you want my IM details. :)
Privateer: Wing Commander Universe -- the continuation of chuck_starchaser's Privateer: Parallel Universe mod.
klauss
Elite
Elite
Posts: 7243
Joined: Mon Apr 18, 2005 2:40 pm
Location: LS87, Buenos Aires, República Argentina

Re: Graphical corruption on (X)Ubuntu 12.10, but not Fedora

Post by klauss »

ermo wrote:And why do you figure that the issue is libpng related? JPGs are affected as well AFAICT? What if it is the probing mechanism that fails on Ubuntu (if that even makes sense...)?
Because I remember thinking that on a previous iteration over at wcjunction. Although the libpng thing was because that name popped up, I have no preference (libpng, libjpg, whatever).

I really doubt it's magic detection though, that would produce a hard crash, not corruption.

PS: I haven't used IRC in a long time, and my internet at home is spotty. But, if it works, and if pidgin works as a client, expect me to go online when I get home. Can't tell exactly when it will be though (around 4h from now maybe? - 2h more office work, 2h commute, guessing)
Oíd mortales, el grito sagrado...
Call me "Menes, lord of Cats"
Wing Commander Universe
ermo
Mercenary
Mercenary
Posts: 104
Joined: Tue Oct 30, 2012 7:46 pm

Re: Graphical corruption on (X)Ubuntu 12.10, but not Fedora

Post by ermo »

So, from what I can tell, when I turn on the filename debugging, the files that look wonky on my Ubuntu install are being processed by the correct libraries -- so .jpgs are processed by the JPEG library, .pngs are processed by the PNG library. So far so good.

Over at WCU, you mentioned "It's expecting alpha-packed pixels, and it gets alpha-less ones, somehow." How can we instrument this process? Don't we need a trace of what format the image in question is in and in what format the renderer sees it? Where in the pipeline do we need to insert vs_dprintf ( 3, ... ); statements?
Privateer: Wing Commander Universe -- the continuation of chuck_starchaser's Privateer: Parallel Universe mod.
klauss
Elite
Elite
Posts: 7243
Joined: Mon Apr 18, 2005 2:40 pm
Location: LS87, Buenos Aires, República Argentina

Re: Graphical corruption on (X)Ubuntu 12.10, but not Fedora

Post by klauss »

ermo wrote: Over at WCU, you mentioned "It's expecting alpha-packed pixels, and it gets alpha-less ones, somehow." How can we instrument this process? Don't we need a trace of what format the image in question is in and in what format the renderer sees it? Where in the pipeline do we need to insert vs_dprintf ( 3, ... ); statements?
Some info about that is already printed in --debug=3. At least resolution is. If format isn't there, perhaps adding it would be a good idea.
Oíd mortales, el grito sagrado...
Call me "Menes, lord of Cats"
Wing Commander Universe
Post Reply