Error Message: "Could not create pixmap from ..."

Have found Bugs? You can post it here.
Post Reply
sam289
Posts: 15
Joined: Mon Nov 23, 2020 12:00 am

Got pokerth client running on Debian 10.

Get many annoying error messages in the console: "Could not create pixmap from /opt/pokerth/data/gfx/gui/table/danuxil/NULL".

I have searched all the source code. Just can't find the place where this error is produced.
The caller has write access to the directory and everything is 777.


Habe pokerth client auf Debian 10 zum Laufen bekommen.
Bekomme viele nervige Fehlermeldungen in die Konsole: "Could not create pixmap from /opt/pokerth/data/gfx/gui/table/danuxil/NULL"

Ich habe in allen Quelltexten gesucht. Kann einfach nicht die Stelle finden, wo dieser Fehler produziert wird.
Der Aufrufer hat Schreibzugriffsrecht auf das Verzeichnis und alles ist 777.
boehmi
Posts: 806
Joined: Wed Mar 17, 2021 12:24 pm
Been thanked: 33 times

sam289 wrote: Thu May 18, 2023 7:00 am Got pokerth client running on Debian 10.

Get many annoying error messages in the console: "Could not create pixmap from /opt/pokerth/data/gfx/gui/table/danuxil/NULL".
Who starts PokerTH from the console? :P Create a pokerth.desktop file in ~/.local/share/applications if there is no system wide file in /usr/share/applications with the following content

Code: Select all

[Desktop Entry]
Name=PokerTH
Name[bg]=PokerTH
Name[de]=PokerTH
Name[es]=PokerTH
Name[fr]=PokerTH
Name[it]=PokerTH
Name[nl]=PokerTH
Name[pl]=PokerTH
Name[pt_BR]=PokerTH
Name[pt_PT]=PokerTH
Name[ru]=PokerTH
Name[tr]=PokerTH
Name[uk]=PokerTH
GenericName=Poker Card Game
GenericName[bg]=Играта на покер
GenericName[de]=Pokerspiel
GenericName[es]=Juego de Poker
GenericName[fr]=Jeu de Poker
GenericName[it]=Gioco di Poker
GenericName[nl]=Pokerspel
GenericName[pl]=Gra w poker
GenericName[pt_BR]=Jogo do Poker
GenericName[pt_PT]=Jogo do Poker
GenericName[ru]=Игра в покер
GenericName[tr]=Poker Kart Oyunu
GenericName[uk]=Гра в покер
Comment=Texas hold'em game
Comment[bg]=Играта на Тексас Холдем
Comment[de]=Texas Hold'em Spiel
Comment[es]=Juego de Texas Hold'em
Comment[fr]=Jeu de Texas Hold'em
Comment[it]=Gioco di Poker alla Texano
Comment[nl]=Texas Hold'em-spel
Comment[pl]=Gra w teksański klincz
Comment[pt_BR]=Jogo do Texas Hol'dem
Comment[pt_PT]=Jogo do Texas Hol'dem
Comment[ru]=Игра в техасский холдем
Comment[tr]=Texas hold'em oyunu
Comment[uk]=Гра в техаський холдем
Exec=pokerth
Icon=pokerth
Terminal=false
Type=Application
X-DCOP-ServiceType=Multi
X-KDE-StartupNotify=true
Categories=Qt;Game;CardGame;
Adjust "Exec" and "Icon" if the executable is not in your path and the icon is not at the usual place.
sam289 wrote: Thu May 18, 2023 7:00 am I have searched all the source code. Just can't find the place where this error is produced.
I just started pokerth from the console and get the same "errors". The reason is that the file gfx/gui/table/danuxi1/danuxi1tablestyle.xml has some values set to "NULL" and therefore the pixmap cannot be created. But the game works without problems. If you really want to start pokerth from the console and the error bothers you, do it wih "pokerth 2>/dev/null" to divert the error to /dev/null
sam289 wrote: Thu May 18, 2023 7:00 am The caller has write access to the directory and everything is 777.
Setting permissions to 777 is almost always the wrong solution.
sam289
Posts: 15
Joined: Mon Nov 23, 2020 12:00 am

Thanks very much. :-)
I create a small transparent nopic.png and I put in danuxi1tablestyle.xml instead of NULL.
Now no errors. But the action call, raise ... is not visible anymore.
I switch back to default table theme.
I need the console to put same printf statements in code for debugging and learn how pokerth client works and then change code.

I create fold, check, call, raise, allin, winner pngs with transparency
and put in folder . So there is no NULL in the xml file. It works. YEAH :-)
Post Reply