Widget crash anyone ?



  • Crash report begins.  Anonymous machine information:

    amd64
    11.0-RELEASE-p6
    FreeBSD 11.0-RELEASE-p6 #67 69cfe67ee69(RELENG_2_4): Tue Jan 17 18:35:56 CST 2017    root@buildbot2.netgate.com:/builder/ce/tmp/obj/builder/ce/tmp/FreeBSD-src/sys/pfSense

    Crash report details:

    PHP Errors:
    [18-Jan-2017 01:26:13 America/Toronto] PHP Warning:  Invalid argument supplied for foreach() in /usr/local/www/widgets/widgets/interface_statistics.widget.php on line 137
    [18-Jan-2017 01:26:13 America/Toronto] PHP Stack trace:
    [18-Jan-2017 01:26:13 America/Toronto] PHP  1. {main}() /usr/local/www/index.php:0
    [18-Jan-2017 01:26:13 America/Toronto] PHP  2. include_once() /usr/local/www/index.php:401
    [18-Jan-2017 01:26:14 America/Toronto] PHP Warning:  Invalid argument supplied for foreach() in /usr/local/www/widgets/widgets/interface_statistics.widget.php on line 137
    [18-Jan-2017 01:26:14 America/Toronto] PHP Stack trace:
    [18-Jan-2017 01:26:14 America/Toronto] PHP  1. {main}() /usr/local/www/index.php:0
    [18-Jan-2017 01:26:14 America/Toronto] PHP  2. include_once() /usr/local/www/index.php:401
    [18-Jan-2017 01:26:16 America/Toronto] PHP Warning:  Invalid argument supplied for foreach() in /usr/local/www/widgets/widgets/interface_statistics.widget.php on line 137
    [18-Jan-2017 01:26:16 America/Toronto] PHP Stack trace:
    [18-Jan-2017 01:26:16 America/Toronto] PHP  1. {main}() /usr/local/www/index.php:0
    [18-Jan-2017 01:26:16 America/Toronto] PHP  2. include_once() /usr/local/www/index.php:401
    [18-Jan-2017 01:32:55 America/Toronto] PHP Warning:  Invalid argument supplied for foreach() in /usr/local/www/widgets/widgets/interface_statistics.widget.php on line 137
    [18-Jan-2017 01:32:55 America/Toronto] PHP Stack trace:
    [18-Jan-2017 01:32:55 America/Toronto] PHP  1. {main}() /usr/local/www/index.php:0
    [18-Jan-2017 01:32:55 America/Toronto] PHP  2. include_once() /usr/local/www/index.php:401
    [18-Jan-2017 01:34:22 America/Toronto] PHP Warning:  Invalid argument supplied for foreach() in /usr/local/www/widgets/widgets/interface_statistics.widget.php on line 137
    [18-Jan-2017 01:34:22 America/Toronto] PHP Stack trace:
    [18-Jan-2017 01:34:22 America/Toronto] PHP  1. {main}() /usr/local/www/index.php:0
    [18-Jan-2017 01:34:22 America/Toronto] PHP  2. include_once() /usr/local/www/index.php:401
    [18-Jan-2017 11:14:38 America/Toronto] PHP Warning:  Invalid argument supplied for foreach() in /usr/local/www/widgets/widgets/interface_statistics.widget.php on line 137
    [18-Jan-2017 11:14:38 America/Toronto] PHP Stack trace:
    [18-Jan-2017 11:14:38 America/Toronto] PHP  1. {main}() /usr/local/www/index.php:0
    [18-Jan-2017 11:14:38 America/Toronto] PHP  2. include_once() /usr/local/www/index.php:401

    No FreeBSD crash data found.

    Anyone else having this ?



  • Never seen that before.  Did you have an interface that suddenly died?  Anything in the System log just before that crash?



  • It happened after an upgrade to the latest snapshot. before that, I was running something from Jan 9 ( i think ).



  • @singerie:

    It happened after an upgrade to the latest snapshot. before that, I was running something from Jan 9 ( i think ).

    FWIW, +1 on this.  I've seen this multiple times, usually when returning to the dashboard from another part of the GUI.



  • Actually, I think I've got a different PHP error…

    [17-Jan-2017 14:53:51 America/Chicago] PHP Warning:  Invalid argument supplied for foreach() in /usr/local/www/widgets/widgets/interface_statistics.widget.php on line 137
    [17-Jan-2017 14:53:51 America/Chicago] PHP Stack trace:
    [17-Jan-2017 14:53:51 America/Chicago] PHP  1. {main}() /usr/local/www/index.php:0
    [17-Jan-2017 14:53:51 America/Chicago] PHP  2. include_once() /usr/local/www/index.php:406
    [17-Jan-2017 15:05:55 America/Chicago] PHP Warning:  Invalid argument supplied for foreach() in /usr/local/www/widgets/widgets/interface_statistics.widget.php on line 137
    [17-Jan-2017 15:05:55 America/Chicago] PHP Stack trace:
    [17-Jan-2017 15:05:55 America/Chicago] PHP  1. {main}() /usr/local/www/index.php:0
    [17-Jan-2017 15:05:55 America/Chicago] PHP  2. include_once() /usr/local/www/index.php:406
    [17-Jan-2017 15:23:42 America/Chicago] PHP Warning:  Invalid argument supplied for foreach() in /usr/local/www/widgets/widgets/interface_statistics.widget.php on line 137
    [17-Jan-2017 15:23:42 America/Chicago] PHP Stack trace:
    [17-Jan-2017 15:23:42 America/Chicago] PHP  1. {main}() /usr/local/www/index.php:0
    [17-Jan-2017 15:23:42 America/Chicago] PHP  2. include_once() /usr/local/www/index.php:406
    [17-Jan-2017 16:02:23 America/Chicago] PHP Warning:  Invalid argument supplied for foreach() in /usr/local/www/widgets/widgets/interface_statistics.widget.php on line 137
    [17-Jan-2017 16:02:23 America/Chicago] PHP Stack trace:
    [17-Jan-2017 16:02:23 America/Chicago] PHP  1. {main}() /usr/local/www/index.php:0
    [17-Jan-2017 16:02:23 America/Chicago] PHP  2. include_once() /usr/local/www/index.php:406
    [17-Jan-2017 16:23:58 America/Chicago] PHP Warning:  Invalid argument supplied for foreach() in /usr/local/www/widgets/widgets/interface_statistics.widget.php on line 137
    [17-Jan-2017 16:23:58 America/Chicago] PHP Stack trace:
    [17-Jan-2017 16:23:58 America/Chicago] PHP  1. {main}() /usr/local/www/index.php:0
    [17-Jan-2017 16:23:58 America/Chicago] PHP  2. include_once() /usr/local/www/index.php:406



  • I reported the bug to redmine.

    https://redmine.pfsense.org/issues/7134




  • Banned

    @Phil.Scarr:

    @singerie:

    I reported the bug to redmine.

    https://redmine.pfsense.org/issues/7134

    Ditto.

    https://redmine.pfsense.org/issues/7135

    Congrats on duplicate bug.  ::)



  • @doktornotor:

    @Phil.Scarr:

    @singerie:

    I reported the bug to redmine.

    https://redmine.pfsense.org/issues/7134

    Ditto.

    https://redmine.pfsense.org/issues/7135

    Congrats on duplicate bug.  ::)

    ::)  Crap… Good point.  Closing it and will follow the other one.


  • Banned

    It's already fixed, gitsync or wait for next snapshot.



  • I still get the issue if I have just the Interface Statistics widget open (and not the Interfaces widget).
    "Final solution" proposed in https://github.com/pfsense/pfsense/pull/3396
    and see notes on the issue at https://redmine.pfsense.org/issues/7134

    (original bug introduced by me - my bad! but it highlights how it would be nice to have some automated test environment that can set up/tear down an environment for each test and automagically try a lot of combinations to make sure they work together and apart)



  • @phil.davis:

    I still get the issue if I have just the Interface Statistics widget open (and not the Interfaces widget).
    "Final solution" proposed in https://github.com/pfsense/pfsense/pull/3396
    and see notes on the issue at https://redmine.pfsense.org/issues/7134

    (original bug introduced by me - my bad! but it highlights how it would be nice to have some automated test environment that can set up/tear down an environment for each test and automagically try a lot of combinations to make sure they work together and apart)

    Hmm, I use the following tagline on one forum I use:

    Artificial Intelligence is no match for Natural Stupidity.

    Not referring to your bad, it's just that someone will still manage to break it.


Log in to reply