error from cron job on cliupdate.php concerning libpng

by marteng69, Tuesday, November 27, 2018, 18:12 (1970 days ago)

Hello,

I am running selfoss on a shared host.
In the last few weeks I am getting several times a day a error message from the cron job that is executing cliupdate.php

The cron job looks like:
/xxx/xxx/php /usr/xxx/xxx/xxx/selfoss/cliupdate.php

The error message is like this:
libpng warning: Interlace handling should be turned on when using png_read_image

It does not happen every time the cron job is running.

Looking in the logs of the shared host does not show me any hint, what is the reason of this error.

I have also checked the php config of the shared host, but this seems all fine.

Do you have any hint, where I can search or what I can ask the support of my hosting provider to solve the error.

Kind regards
Martin

error from cron job on cliupdate.php concerning libpng

by jtojnar, Saturday, December 01, 2018, 00:45 (1967 days ago) @ marteng69

It is a bug in older versions of libpng according to https://bugzilla.redhat.com/show_bug.cgi?id=1121035

error from cron job on cliupdate.php concerning libpng

by marteng69, Saturday, December 01, 2018, 10:20 (1967 days ago) @ jtojnar

It is a bug in older versions of libpng according to https://bugzilla.redhat.com/show_bug.cgi?id=1121035

I found this too. The bug was closed because of insufficient data.
What is really irritating that the error message does not appear on every run of the cronjob.
Is it possible that during the cronjob the shared host runs out of memory and then the error occurs?

Also I have a new behaviour:
The error is now changing from the original error to a new one:
libpng warning: iCCP: known incorrect sRGB profile

Sometimes both errors occur at the same time, most of the times they are alternating

error from cron job on cliupdate.php concerning libpng

by jtojnar, Sunday, December 02, 2018, 12:36 (1965 days ago) @ marteng69
edited by jtojnar, Thursday, August 08, 2019, 13:34

I guess that it occurs when favicon/thumbnail for some feed is resized and libpng does not support it. I would still say it is either a bug in libpng or PHP.

Try adding the following code before $f3->run(); in index.php:

https://gist.github.com/jtojnar/cbf19757c01b7aaa47832d5baf26f3e3

error from cron job on cliupdate.php concerning libpng

by marteng69, Sunday, December 02, 2018, 17:53 (1965 days ago) @ jtojnar

I guess that it occurs when favicon/thumbnail for some feed is resized and libpng does not support it. I would still say it is either a bug in libpng or PHP.

Try adding the following code before $f3->run(); in index.php:

https://gist.github.com/jtojnar/cbf19757c01b7aaa47832d5baf26f3e3

I added the lines in the index.php.
Now I only get the debug messages as result.
What part of the debug messages do you need to investigate further?

error from cron job on cliupdate.php concerning libpng

by jtojnar, Sunday, December 02, 2018, 18:17 (1965 days ago) @ marteng69
edited by jtojnar, Sunday, December 02, 2018, 19:18

I would expect the libpng error to appear somewhere and you should be able to see what feed is causing it.

error from cron job on cliupdate.php concerning libpng

by marteng69, Tuesday, December 04, 2018, 08:44 (1964 days ago) @ jtojnar

I would expect the libpng error to appear somewhere and you should be able to see what feed is causing it.

Unfortunately there is no error message in the debugging data.

Some additional information when the error occurs:
The cronjob runs four times every hour, every 15 minutes. The first time during the day it occurs is after 8 o'clock in the morning. Then it re-occurs almost every 45 minutes up to 11 o'clock in the evening. During the night, the cronjob runs all the time (what I can see in the logfile of the cronjob) but the error does not occur.

error from cron job on cliupdate.php concerning libpng

by marteng69, Tuesday, December 11, 2018, 07:51 (1957 days ago) @ marteng69

Unfortunately there is no error message in the debugging data.

Yesterday I was able to find out, which feed is causing the error.
It is: https://www.aerzteblatt.de/service/rss

Everytime the feed is updated the error occurs.

Is there any way to avoid this error messages?

error from cron job on cliupdate.php concerning libpng

by jtojnar, Tuesday, December 11, 2018, 17:04 (1956 days ago) @ marteng69

How does the error manifest? Is it surronded by other log statements or just interspersed. Does it crash the PHP process? What PHP, libpng and distribution versions do you use?

error from cron job on cliupdate.php concerning libpng

by marteng69, Tuesday, December 11, 2018, 18:34 (1956 days ago) @ jtojnar

How does the error manifest?

Every time the cronjob with cliupdate.php is running and new entries in the rss feed I mentioned are fetched.

Is it surronded by other log statements or just interspersed.

No. I only get an E-Mail from the cronjob where the error is included

Does it crash the PHP process?

I don't know.
I am running selfoss on a shared host and I can not see what happens with the PHP-process.

What PHP, libpng and distribution versions do you use?

PHP 7.2.13
libpng 1.6.28
Debian with Kernel 4.9.xxx (shared host, no own server)

error from cron job on cliupdate.php concerning libpng

by marteng69, Wednesday, January 23, 2019, 15:55 (1913 days ago) @ marteng69

How does the error manifest?

Every time the cronjob with cliupdate.php is running and new entries in the rss feed I mentioned are fetched.

Were you able to reproduce the error?
Did you find a cause?

At the moment I get a lot of emails per day from the error messages from the cron demon.

error from cron job on cliupdate.php concerning libpng

by jtojnar, Wednesday, January 23, 2019, 19:28 (1913 days ago) @ marteng69

Unfortumately, I was not able to reproduce the issue.

error from cron job on cliupdate.php concerning libpng

by jtojnar, Friday, December 27, 2019, 21:08 (1575 days ago) @ marteng69

I just saw the error on selfoss master. It appears that it indeed has something to do with running out of memory

$ php cliupdate.php
libpng warning: iCCP: known incorrect sRGB profile
libpng warning: iCCP: known incorrect sRGB profile
libpng warning: iCCP: known incorrect sRGB profile
libpng warning: iCCP: known incorrect sRGB profile
libpng warning: iCCP: known incorrect sRGB profile
libpng warning: iCCP: known incorrect sRGB profile
Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 43975482 bytes)
[vendor/bcosca/fatfree-core/db/sql.php:230] 
An error occurredā¸ˇ
RSS Feed of thread
powered by my little forum