linux trusty panda3d 1.9.2 issue during p3d execution : wx failed to choose a font

Bug #1579902 reported by Philippec
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Panda3D
Won't Fix
Undecided
Unassigned
panda3d (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

PC ubuntu trusty 14.04.4 LTS
Ubuntu panda3d1.9_1.9.2~trusty_amd64.deb.

1/ I package the program below : /usr/bin/packp3d -o /home/philippe/gameeditor-svn/code/test/wx/testWX.p3d -d /home/philippe/gameeditor-svn/code/test/wx -m testWX.py -r wx -r morepy -D

testWX.py:

import wx
from direct.showbase.ShowBase import ShowBase
class MyApp(ShowBase):
    def __init__(self):
        ShowBase.__init__(self)
        self.accept('a', self.oGui)

    def oGui(self):
        app = wx.App()
        window = wx.Frame(None, title = "wxPython Frame", size = (300,200))
        panel = wx.Panel(window)
        label = wx.StaticText(panel, label = "Hello World", pos = (100,50))
        window.Show(True)
        app.MainLoop()
app = MyApp()
app.run()

2/ I execute the p3d program : /usr/bin/panda3d /home/philippe/gameeditor-svn/code/test/wx/testWX.p3d.
When panda3d screen is displayed : I use the keyboard 'a' in order to display a wx window => the text "Hello World" is replaced by squares and I got the following error messages in the terminal windows:

....
Fontconfig error: "/etc/fonts/conf.d/10-scale-bitmap-fonts.conf", line 70: non-double matrix element
Fontconfig error: "/etc/fonts/conf.d/10-scale-bitmap-fonts.conf", line 70: non-double matrix element
Fontconfig warning: "/etc/fonts/conf.d/10-scale-bitmap-fonts.conf", line 78: saw unknown, expected number

(p3dpython:17132): Pango-CRITICAL **: No modules found:
No builtin or dynamically loaded modules were found.
PangoFc will not work correctly.
This probably means there was an error in the creation of:
  '/etc/pango/pango.modules'
You should create this file by running:
  pango-querymodules > '/etc/pango/pango.modules'

(p3dpython:17132): Pango-WARNING **: failed to choose a font, expect ugly output. engine-type='PangoRenderFc', script='latin'

Revision history for this message
Philippec (cainphilippe) wrote :

On the WX panel the text "hello world" is replaced by squares

Revision history for this message
Philippec (cainphilippe) wrote :

on windows the text is displayed properly

description: updated
description: updated
description: updated
Philippec (cainphilippe)
no longer affects: panda3d
Revision history for this message
rdb (rdb) wrote :

I suspect there's an important environment variable that is not being propagated by the Panda3D Runtime.

Please print out the environment variables inside the application (using os.environ) and the environment variables outside of the application for comparison.

Revision history for this message
Philippec (cainphilippe) wrote :
Download full text (9.9 KiB)

Hello rdb

In this post he python environment variables are printed in 2 cases : python and panda3D execution.

Below you will find the environment variables when it is launched with python, the display in wx is OK

.....$ python ./testWX.py

Known pipe types:
  glxGraphicsPipe
(all display modules loaded.)
*****************************************************
***************os.environ****************************
CLUTTER_IM_MODULE=xim
COLORTERM=gnome-terminal
COMPIZ_BIN_PATH=/usr/bin/
COMPIZ_CONFIG_PROFILE=ubuntu
DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-DcBJm6Okyy
DEFAULTS_PATH=/usr/share/gconf/ubuntu.default.path
DESKTOP_SESSION=ubuntu
DISPLAY=:0
GDMSESSION=ubuntu
GDM_LANG=en_US
GNOME_DESKTOP_SESSION_ID=this-is-deprecated
GNOME_KEYRING_CONTROL=/run/user/1000/keyring-Aymrpp
GNOME_KEYRING_PID=1975
GPG_AGENT_INFO=/run/user/1000/keyring-Aymrpp/gpg:0:1
GTK_IM_MODULE=ibus
GTK_MODULES=overlay-scrollbar:unity-gtk-module
HOME=/home/philippe
IM_CONFIG_PHASE=1
INSTANCE=
JOB=dbus
LANG=en_US.UTF-8
LANGUAGE=en_US
LC_ADDRESS=en_GB.UTF-8
LC_IDENTIFICATION=en_GB.UTF-8
LC_MEASUREMENT=en_GB.UTF-8
LC_MONETARY=en_GB.UTF-8
LC_NAME=en_GB.UTF-8
LC_NUMERIC=en_GB.UTF-8
LC_PAPER=en_GB.UTF-8
LC_TELEPHONE=en_GB.UTF-8
LC_TIME=en_GB.UTF-8
LESSCLOSE=/usr/bin/lesspipe %s %s
LESSOPEN=| /usr/bin/lesspipe %s
LOGNAME=philippe
LS_COLORS=rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.dz=01;31:*.gz=01;31:*.lz=01;31:*.xz=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.jpg=01;35:*.jpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.axv=01;35:*.anx=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.axa=00;36:*.oga=00;36:*.spx=00;36:*.xspf=00;36:
MANDATORY_PATH=/usr/share/gconf/ubuntu.mandatory.path
OLDPWD=/home/philippe
PAPERSIZE=a4
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games
PWD=/home/philippe/gameeditor-svn/code/test/wx
QT4_IM_MODULE=xim
QT_IM_MODULE=ibus
QT_QPA_PLATFORMTHEME=appmenu-qt5
SELINUX_INIT=YES
SESSION=ubuntu
SESSIONTYPE=gnome-session
SESSION_MANAGER=local/philippe-X751LJ:@/tmp/.ICE-unix/2109,unix/philippe-X751LJ:/tmp/.ICE-unix/2109
SHELL=/bin/bash
SHLVL=1
SSH_AUTH_SOCK=/run/user/1000/keyring-Aymrpp/ssh
TERM=xterm
TEXTDOMAIN=im-config
TEXTD...

rdb (rdb)
tags: added: packaging runtime
Revision history for this message
Philippec (cainphilippe) wrote :

Hello

with 1.9.3 I got a new eror when I execute the p3d program : /usr/bin/panda3d /home/philippe/gameeditor-svn/code/test/wx/testWX.p3d.

:AppRunner: Total Panda3D disk space used: 240 MB
:AppRunner: Configured max usage is: 2048 MB
ImportError on wx: /home/philippe/.panda3d/hosts/runtime.panda3d.org_0f5faf88846080ae/wx/cmu_1.9/linux_amd64/libresolv.so.2: symbol h_errno, version GLIBC_PRIVATE not defined in file libc.so.6 with link time reference
Traceback (most recent call last):
  File "/home/buildbot/slave/rtdist-linux-amd64/build/built/direct/showbase/Messenger.py", line 354, in __taskChainDispatch
  File "/home/buildbot/slave/rtdist-linux-amd64/build/built/direct/showbase/Messenger.py", line 412, in __dispatch
  File "/home/buildbot/slave/rtdist-linux-amd64/build/built/direct/p3d/AppRunner.py", line 716, in __startIfReady
  File "VFSImporter", line 148, in load_module
  File "/home/philippe/gameeditor-svn/code/test/wx/testWX.py", line 1, in <module>
    import wx
  File "VFSImporter", line 453, in load_module
ImportError: wx: /home/philippe/.panda3d/hosts/runtime.panda3d.org_0f5faf88846080ae/wx/cmu_1.9/linux_amd64/libresolv.so.2: symbol h_errno, version GLIBC_PRIVATE not defined in file libc.so.6 with link time reference
:task(error): Exception occurred in PythonTask Messenger-default
Traceback (most recent call last):
  File "/home/buildbot/slave/rtdist-linux-amd64/build/built/direct/p3d/AppRunner.py", line 596, in run
  File "/home/buildbot/slave/rtdist-linux-amd64/build/built/direct/task/Task.py", line 510, in run
  File "/home/buildbot/slave/rtdist-linux-amd64/build/built/direct/task/Task.py", line 467, in step
  File "/home/buildbot/slave/rtdist-linux-amd64/build/built/direct/showbase/Messenger.py", line 354, in __taskChainDispatch
  File "/home/buildbot/slave/rtdist-linux-amd64/build/built/direct/showbase/Messenger.py", line 412, in __dispatch
  File "/home/buildbot/slave/rtdist-linux-amd64/build/built/direct/p3d/AppRunner.py", line 716, in __startIfReady
  File "VFSImporter", line 148, in load_module
  File "/home/philippe/gameeditor-svn/code/test/wx/testWX.py", line 1, in <module>
    import wx
  File "VFSImporter", line 453, in load_module
ImportError: wx: /home/philippe/.panda3d/hosts/runtime.panda3d.org_0f5faf88846080ae/wx/cmu_1.9/linux_amd64/libresolv.so.2: symbol h_errno, version GLIBC_PRIVATE not defined in file libc.so.6 with link time reference
Successfully joined thread: 0
Failure on startup.

rdb (rdb)
Changed in panda3d (Ubuntu):
status: New → Invalid
tags: added: linux wx
Revision history for this message
rdb (rdb) wrote :

packp3d is no longer supported in 1.10 (in favour of the new setuptools-based deployment system), so I'm closing this. Please file an issue on GitHub if the issue still persists with deploy-ng.

Changed in panda3d:
status: New → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.