[arch-general] libpng warning - qt application
I know this is hardly a new problem, and I know how to fix a 'broken' png file. The problem is finding that file. Here's the case; i recently started using a application ppqt[1], which shows this warning on startup. Displaying PNGs is a major part of this application and that doesn't work atm. To investigate, i did an strace, but that didn't turn out to be very helpful; the only png's mentioned are icons that are /not/ found. Does anybody here have some advice on how to find out which file could be the culprit in this? Or how to troubleshoot better? [1] https://github.com/tallforasmurf/PPQT mvg, Guus
Could be something embedded in the resources, have you looked through those? J. Leclanche On Mon, May 26, 2014 at 11:57 PM, Guus Snijders <gsnijders@gmail.com> wrote:
I know this is hardly a new problem, and I know how to fix a 'broken' png file. The problem is finding that file.
Here's the case; i recently started using a application ppqt[1], which shows this warning on startup. Displaying PNGs is a major part of this application and that doesn't work atm. To investigate, i did an strace, but that didn't turn out to be very helpful; the only png's mentioned are icons that are /not/ found.
Does anybody here have some advice on how to find out which file could be the culprit in this? Or how to troubleshoot better?
[1] https://github.com/tallforasmurf/PPQT
mvg, Guus
[Python/QT application troubleshooting, libpng warning] 2014-05-27 16:32 GMT+02:00 Jerome Leclanche <adys.wh@gmail.com>:
Could be something embedded in the resources, have you looked through those?
Thanks for your response. I should have mentioned that in the first message. I did check the files belonging to the application; no PNG's there. A little more testing showed that the warning was generated by a webviewer that is part of this program. After a lot of testing, it turned out that the problem of not showing the PNGs i wanted, was unrelated to this warning, it was caused by the specific project that i tried to edit with this program. When i tried another project (same program), the neccesary PNG's show up nicely. The warning is still there, but is apparently not important. I'm still curious to know how one can find out which files are opened by any program during startup; strace mainly showed which files could not be found. mvg, Guus
On 27/05/2014 17:43, Guus Snijders wrote:
I'm still curious to know how one can find out which files are opened by any program during startup; strace mainly showed which files could not be found.
Did you make sure to trace children too? 'strace -f -e trace=open myapp' should do it. -- Timothée Ravier
2014-05-27 22:33 GMT+02:00 Timothée Ravier <siosm99@gmail.com>:
On 27/05/2014 17:43, Guus Snijders wrote:
I'm still curious to know how one can find out which files are opened by any program during startup; strace mainly showed which files could not be found.
Did you make sure to trace children too?
'strace -f -e trace=open myapp' should do it.
Ahh, I missed the -f option. Thank you. Trying it, it didn't show the specific file that failed, but did give some more pointers to look for. I found out that this message appears when a "QWebview" is started (python module: pqHelp.py). This appears to be an HTML viewer which uses exactly one icon (reload). In the strace logfile there was one mention of opening /usr/share/icons/hicolor/index.theme. This file appears to just list all available icons. As a last shot in the dark, i decided to run identify on all files with "reload" in the name, but the output is similar for all files. I guess I'd best leave it with that. It was a fun experiment, but alas not entirely succesful. I got the application working for what I want to use it for and will have to live with the warning message. No biggie. mvg, Guus
On Tue, May 27, 2014 at 5:43 PM, Guus Snijders <gsnijders@gmail.com> wrote:
[Python/QT application troubleshooting, libpng warning]
A little more testing showed that the warning was generated by a webviewer that is part of this program. After a lot of testing, it turned out that the problem of not showing the PNGs i wanted, was unrelated to this warning, it was caused by the specific project that i tried to edit with this program. When i tried another project (same program), the neccesary PNG's show up nicely. The warning is still there, but is apparently not important.
What warning? This one? libpng warning: iCCP: Not recognizing known sRGB profile that has been edited cheers! mar77i
Op 28 mei 2014 09:29 schreef "Martti Kühne" <mysatyre@gmail.com> het volgende:
On Tue, May 27, 2014 at 5:43 PM, Guus Snijders <gsnijders@gmail.com>
wrote:
[Python/QT application troubleshooting, libpng warning]
A little more testing showed that the warning was generated by a webviewer that is part of this program. After a lot of testing, it turned out that the problem of not showing the PNGs i wanted, was unrelated to this warning, it was caused by the specific project that i tried to edit with this program. When i tried another project (same program), the neccesary PNG's show up nicely. The warning is still there, but is apparently not important.
What warning? This one?
libpng warning: iCCP: Not recognizing known sRGB profile that has been edited
Yes, indeed. mvg, Guus
participants (4)
-
Guus Snijders
-
Jerome Leclanche
-
Martti Kühne
-
Timothée Ravier