@Littlericket opened this Issue on May 21st 2021

The Matomo Cron Archiving is throwing us segmention fault errors upon sending a report. It doenst stop the cron from archiving (all data is still visible), but throws an error in the UI that the cron hasn't been run since X days. Haven't found any issue or something on the forums except the FAQ-Issue (https://matomo.org/faq/troubleshooting/faq_131/, https://github.com/matomo-org/matomo/issues/4507#issue-37355256) from 2014.

Before the segfault there are a few pChart notices in the log file

INFO [2021-05-21 05:40:06] 12226  Scheduler: executing task Piwik\Plugins\ScheduledReports\API.sendReport_17...
WARNING [2021-05-21 05:40:09] 12226  /var/www/matomo/vendor/szymach/c-pchart/src/Chart/Draw.php(1312): Warning - imagettftext(): Problem loading glyph - Matomo 4.2.1 - Please report this message in the Matomo forums: https://forum.matomo.org (please do a search first as it might have been reported already)
WARNING [2021-05-21 05:40:09] 12226  /var/www/matomo/vendor/szymach/c-pchart/src/Chart/Image.php(239): Warning - imagettfbbox(): Problem loading glyph - Matomo 4.2.1 - Please report this message in the Matomo forums: https://forum.matomo.org (please do a search first as it might have been reported already)
WARNING [2021-05-21 05:40:09] 12226  /var/www/matomo/vendor/szymach/c-pchart/src/Chart/Image.php(246): Notice - Trying to access array offset on value of type bool - Matomo 4.2.1 - Please report this message in the Matomo forums: https://forum.matomo.org (please do a search first as it might have been reported already)
WARNING [2021-05-21 05:40:09] 12226  /var/www/matomo/vendor/szymach/c-pchart/src/Chart/Image.php(246): Notice - Trying to access array offset on value of type bool - Matomo 4.2.1 - Please report this message in the Matomo forums: https://forum.matomo.org (please do a search first as it might have been reported already)
WARNING [2021-05-21 05:40:09] 12226  /var/www/matomo/vendor/szymach/c-pchart/src/Chart/Image.php(247): Notice - Trying to access array offset on value of type bool - Matomo 4.2.1 - Please report this message in the Matomo forums: https://forum.matomo.org (please do a search first as it might have been reported already)
WARNING [2021-05-21 05:40:09] 12226  /var/www/matomo/vendor/szymach/c-pchart/src/Chart/Image.php(247): Notice - Trying to access array offset on value of type bool - Matomo 4.2.1 - Please report this message in the Matomo forums: https://forum.matomo.org (please do a search first as it might have been reported already)
WARNING [2021-05-21 05:40:09] 12226  /var/www/matomo/vendor/szymach/c-pchart/src/Chart/Image.php(246): Notice - Trying to access array offset on value of type bool - Matomo 4.2.1 - Please report this message in the Matomo forums: https://forum.matomo.org (please do a search first as it might have been reported already)
WARNING [2021-05-21 05:40:09] 12226  /var/www/matomo/vendor/szymach/c-pchart/src/Chart/Image.php(246): Notice - Trying to access array offset on value of type bool - Matomo 4.2.1 - Please report this message in the Matomo forums: https://forum.matomo.org (please do a search first as it might have been reported already)
WARNING [2021-05-21 05:40:09] 12226  /var/www/matomo/vendor/szymach/c-pchart/src/Chart/Image.php(247): Notice - Trying to access array offset on value of type bool - Matomo 4.2.1 - Please report this message in the Matomo forums: https://forum.matomo.org (please do a search first as it might have been reported already)
WARNING [2021-05-21 05:40:09] 12226  /var/www/matomo/vendor/szymach/c-pchart/src/Chart/Image.php(247): Notice - Trying to access array offset on value of type bool - Matomo 4.2.1 - Please report this message in the Matomo forums: https://forum.matomo.org (please do a search first as it might have been reported already)
WARNING [2021-05-21 05:40:09] 12226  /var/www/matomo/vendor/szymach/c-pchart/src/Chart/Image.php(246): Notice - Trying to access array offset on value of type bool - Matomo 4.2.1 - Please report this message in the Matomo forums: https://forum.matomo.org (please do a search first as it might have been reported already)
WARNING [2021-05-21 05:40:09] 12226  /var/www/matomo/vendor/szymach/c-pchart/src/Chart/Image.php(246): Notice - Trying to access array offset on value of type bool - Matomo 4.2.1 - Please report this message in the Matomo forums: https://forum.matomo.org (please do a search first as it might have been reported already)
WARNING [2021-05-21 05:40:09] 12226  /var/www/matomo/vendor/szymach/c-pchart/src/Chart/Image.php(247): Notice - Trying to access array offset on value of type bool - Matomo 4.2.1 - Please report this message in the Matomo forums: https://forum.matomo.org (please do a search first as it might have been reported already)
WARNING [2021-05-21 05:40:09] 12226  /var/www/matomo/vendor/szymach/c-pchart/src/Chart/Image.php(247): Notice - Trying to access array offset on value of type bool - Matomo 4.2.1 - Please report this message in the Matomo forums: https://forum.matomo.org (please do a search first as it might have been reported already)
WARNING [2021-05-21 05:40:09] 12226  /var/www/matomo/vendor/szymach/c-pchart/src/Chart/Image.php(246): Notice - Trying to access array offset on value of type bool - Matomo 4.2.1 - Please report this message in the Matomo forums: https://forum.matomo.org (please do a search first as it might have been reported already)
WARNING [2021-05-21 05:40:09] 12226  /var/www/matomo/vendor/szymach/c-pchart/src/Chart/Image.php(246): Notice - Trying to access array offset on value of type bool - Matomo 4.2.1 - Please report this message in the Matomo forums: https://forum.matomo.org (please do a search first as it might have been reported already)
WARNING [2021-05-21 05:40:09] 12226  /var/www/matomo/vendor/szymach/c-pchart/src/Chart/Image.php(247): Notice - Trying to access array offset on value of type bool - Matomo 4.2.1 - Please report this message in the Matomo forums: https://forum.matomo.org (please do a search first as it might have been reported already)
WARNING [2021-05-21 05:40:09] 12226  /var/www/matomo/vendor/szymach/c-pchart/src/Chart/Image.php(247): Notice - Trying to access array offset on value of type bool - Matomo 4.2.1 - Please report this message in the Matomo forums: https://forum.matomo.org (please do a search first as it might have been reported already)
WARNING [2021-05-21 05:40:09] 12226  /var/www/matomo/vendor/szymach/c-pchart/src/Chart/Draw.php(1312): Warning - imagettftext(): Problem loading glyph - Matomo 4.2.1 - Please report this message in the Matomo forums: https://forum.matomo.org (please do a search first as it might have been reported already)
/bin/sh: line 1: 12226 Segmentation fault      (core dumped) /opt/remi/php74/root/usr/bin/php /var/www/matomo/console core:archive --no-ansi --no-interaction >> /var/log/piwik-archive.log 2>&1

Steps to Reproduce (for Bugs)

  1. Start the cron:archive command line

Your Environment

  • Matomo Version: 4.2.1
  • PHP Version: Remi 7.4.10
  • Server Operating System: CentOS 7 / RHEL 7
  • Additionally installed plugins: QueuedTracking 4.0.2
$ yum list installed|grep php
php74.x86_64               1.0-3.el7.remi      <a class='mention' href='https://github.com/remi'>@remi</a>-safe
php74-php-cli.x86_64       7.4.10-1.el7.remi   <a class='mention' href='https://github.com/remi'>@remi</a>-safe
php74-php-common.x86_64    7.4.10-1.el7.remi   <a class='mention' href='https://github.com/remi'>@remi</a>-safe
php74-php-fpm.x86_64       7.4.10-1.el7.remi   <a class='mention' href='https://github.com/remi'>@remi</a>-safe
php74-php-gd.x86_64        7.4.10-1.el7.remi   <a class='mention' href='https://github.com/remi'>@remi</a>-safe
php74-php-json.x86_64      7.4.10-1.el7.remi   <a class='mention' href='https://github.com/remi'>@remi</a>-safe
php74-php-mbstring.x86_64  7.4.10-1.el7.remi   <a class='mention' href='https://github.com/remi'>@remi</a>-safe
php74-php-mysqlnd.x86_64   7.4.10-1.el7.remi   <a class='mention' href='https://github.com/remi'>@remi</a>-safe
php74-php-opcache.x86_64   7.4.10-1.el7.remi   <a class='mention' href='https://github.com/remi'>@remi</a>-safe
php74-php-pdo.x86_64       7.4.10-1.el7.remi   <a class='mention' href='https://github.com/remi'>@remi</a>-safe
php74-php-pecl-igbinary.x86_64
php74-php-pecl-msgpack.x86_64
php74-php-pecl-redis5.x86_64
php74-php-xml.x86_64       7.4.10-1.el7.remi   <a class='mention' href='https://github.com/remi'>@remi</a>-safe
php74-runtime.x86_64       1.0-3.el7.remi      <a class='mention' href='https://github.com/remi'>@remi</a>-safe
@diosmosis commented on May 21st 2021 Member

Hi @Littlericket, can you provide the definition of the problematic report (id = 17)? Can you also check if it happens from the browser (when clicking the Download link)? And would you be able to check if removing a specific report causes the problem to go away?

Powered by GitHub Issue Mirror