Menu

Double-clicking tasktray icon causes a crash

Help
2004-11-28
2013-04-15
  • naoki iimura

    naoki iimura - 2004-11-28

    In Japanese forum, three users (include me) have reported a crash with double-clicing tasktray icon.
    We never have experienced the problem without using the tasktray icon.

    Environment:
    Windows XP Pro SP2
    Windows 2000 Pro SP4

    POPFile crashes with many kinds of errors. These are the examples:

    Modification of a read-only value attempted at c:/Program Files/POPFile/lib/HTML/Template.pm line 1802.

    HTML::Template->output() : fatal error in loop output : Not an ARRAY reference at c:/Program Files/POPFile/lib/HTML/Template.pm line 2535.
    at c:progra~1popfile/UI/HTML.pm line 737

    HTML::Template->output() : fatal error in loop output : HTML::Template->output() : fatal error in loop output : HTML::Template::output() : Unknown item in parse_stack : SCALAR at c:/Program Files/POPFile/lib/HTML/Template.pm line 2749
             HTML::Template::output('HTML::Template=HASH(0x18fc8e8)') called at c:/Program Files/POPFile/lib/HTML/Template.pm line 2961
             HTML::Template::LOOP::output('HTML::Template::LOOP=ARRAY(0x18ddd58)',140,1) called at c:/Program Files/POPFile/lib/HTML/Template.pm line 2656
             eval {...} called at c:/Program Files/POPFile/lib/HTML/Template.pm line 2656
             HTML::Template::output('HTML::Template=HASH(0x18ded10)') called at c:/Program Files/POPFile/lib/HTML/Template.pm line 2961
             HTML::Template::LOOP::output('HTML::Template::LOOP=ARRAY(0x18f0b8c)',208,1) called at c:/Program Files/POPFile/lib/HTML/Template.pm line 2656
             eval {...} called at c:/Program Files/POPFile/lib/HTML/Template.pm line 2656
             HTML::Template::output('HTML::Template=HASH(0x1926cac)') called at c:progra~1popfile/UI/HTML.pm line 737
             UI::HTML::http_ok('UI::HTML=HASH(0x107fb70)','IO::Socket::INET=GLOB(0x18b7eb4)','HTML::Template=HASH(0x1926cac)',0) called at c:progra~1popfile/UI/HTML.pm line 2495
             UI::HTML::history_page('UI::HTML=HASH(0x107fb70)','IO::Socket::INET=GLOB(0x18b7eb4)','HTML::Template=HASH(0x1926cac)') called at c:progra~1popfile/UI/HTML.pm line 610
             UI::HTML::url_handler__('UI::HTML=HASH(0x107fb70)','IO::Socket::INET=GLOB(0x18b7eb4)','/','GET','undef') called at c:progra~1popfile/UI/HTTP.pm line 227
             UI::HTTP::handle_url('UI::HTML=HASH(0x107fb70)','IO::Socket::INET=GLOB(0x18b7eb4)','undef','undef','undef') called at c:progra~1popfile/UI/HTTP.pm line 181
             UI::HTTP::service('UI::HTML=HASH(0x107fb70)') called at /PerlApp/POPFile/Loader.pm line 689
             POPFile::Loader::CORE_service('POPFile::Loader=HASH(0x37946c)',1) called at popfile-tray.pl line 88
             main::Timer called at perltray line 1243
             PerlTray::Timer(0) called at popfile-tray.pl line 0
             eval {...} called at popfile-tray.pl line 0
    at c:/Program Files/POPFile/lib/HTML/Template.pm line 2961
    at c:progra~1popfile/UI/HTML.pm line 737

    HTML::Template->output() : fatal error in loop output : HTML::Template->output() : fatal error in loop output : Can't use an undefined value as a SCALAR reference at c:/Program Files/POPFile/lib/HTML/Template.pm line 2533.
    at c:/Program Files/POPFile/lib/HTML/Template.pm line 2961
    at c:progra~1popfile/UI/HTML.pm line 737

    Use of uninitialized value in sprintf at c:progra~1popfile/UI/HTML.pm line 2464.
    Can't use an undefined value as an ARRAY reference at c:/Program Files/POPFile/lib/Date/Format.pm line 217.

    Use of uninitialized value in array element at c:progra~1popfile/UI/HTML.pm line 2445.
    Bizarre copy of ARRAY in aassign at c:progra~1popfile/UI/HTML.pm line 2500.

    Use of uninitialized value in string eq at c:progra~1popfile/UI/HTML.pm line 3008.
    Can't use an undefined value as a HASH reference at c:progra~1popfile/UI/HTML.pm line 3008.

    HTML::Template->output() : fatal error in loop output : HTML::Template->output() : fatal error in loop output : Can't use an undefined value as a SCALAR reference at c:/Program Files/POPFile/lib/HTML/Template.pm line 2533.
    at c:/Program Files/POPFile/lib/HTML/Template.pm line 2961
    at c:progra~1popfile/UI/HTML.pm line 737

    Can't use an undefined value as a HASH reference at C:/Program Files/POPFile/lib/HTML/Template.pm line 1996.

    HTML::Template->output() : fatal error in loop output : HTML::Template->output(): fatal error in loop output : Modification of a read-only value attempted at C:/Program Files/POPFile/lib/HTML/Template.pm line 2645.
    at C:/Program Files/POPFile/lib/HTML/Template.pm line 2961
    at C:PROGRA~1POPFile/UI/HTML.pm line 737

    Modification of a read-only value attempted at C:PROGRA~1POPFile/UI/HTML.pm line 2434.

    The most of the errors are occured inside or around HTML::Template
    module and you may reproduce this problem easily with double-double-clicking (or, double-clicking and then right-clicking)
    the tasktray icon.
    But I don't know how to solve this problem.

    Any ideas?

    Naoki

     
    • Texas Fett

      Texas Fett - 2004-11-28

      The trayicon is a known source of trouble for a lot of people in some circumstances.  POPFile will freeze for most people if mail is being downloaded while the tray icon is being used.  If it causes problems all you can do is turn it off.  Turning it off has proven to solve all kinds of odd problems.  The usual suggestion then is to add a shortcut to the Quick Launch section of the taskbar if the user needs a quick way to launch the UI.

      Here is more info in the wiki:
      http://popfile.sourceforge.net/cgi-bin/wiki.pl?TroubleShooting/Freeze

      The release notes of 0.22.0 had this warning:

      1. THE TRAYICON ON WINDOWS CAN CAUSE POPFILE TO FREEZE.  With certain setups if you attempt to view the trayicon's tooltip or hover your cursor over it
      while checking or downloading mail POPFile may freeze. The exact cause is still unknown but it may be related to some video drivers. If this problem affects you turn off the trayicon. A solution is being looked into.

       
      • naoki iimura

        naoki iimura - 2004-11-28

        Joseph,

        Thanks for fast response.

        Since I know the issue with the trayicon, but our problem orrurs when we double-click the icon (no problem with hovering over the icon).
        I don't know these two problems (mentioned in the release note, and our problem) are related.

        Naoki

         
        • naoki iimura

          naoki iimura - 2004-11-28

          This problem has not occured in POPFile 0.21.x.
          According to the error messages, I think this problem is retated with HTML::Template module (and of course the tasktray icon).

          Naoki

           
          • Texas Fett

            Texas Fett - 2004-11-28

            I wasn't sure what you meant in your first message.  Does POPFile die with all those messages at once or there is a different message each time.

            If its a different message each time I think it is just the trayicon.  I remember reporting odd error messages after freezes and that was always the answer.

            If not it could be something with the template module but I would have no clue what to look for.

             
            • naoki iimura

              naoki iimura - 2004-11-28

              POPFile dies with a different messages each time.

              Naoki

               
          • Brian Smith

            Brian Smith - 2004-11-28

            >> Modification of a read-only value attempted at (some random location in POPFILE) <<

            This error message seems to be good indication that the system tray icon was used. If I remember correctly the error location never makes any sense.

            If you are using the UI then the template system will be used a lot so I guess it is more likely to feature in these "random" error messages.

            Brian

             
            • naoki iimura

              naoki iimura - 2004-11-28

              Brian,

              I see. I agree with your opinion.

              Naoki

               
    • Manni

      Manni - 2004-11-28

      Checking the sources for some of these errors gives me the impression that Perl was totally confused when it generated them. Seems like it's high time for us to come up with our own code for the tray icon.

      Manni

       
      • Brian Smith

        Brian Smith - 2004-11-28

        >> Seems like it's high time for us to come up with our own code for the tray icon <<

        The Perl Development Kit has (at long last) been updated and John has said that 0.22.2 will be built with this new version.

        This might make the system tray icon behave better.

        Brian

         
        • Manni

          Manni - 2004-11-28

          That's good news, Brian. I'll keep my fingers crossed.

          A couple of weeks ago I started working on a little demo C++ program that could replace the tray icon. And I still think that a separate program would be better than something that is too tightly connected to POPFile and Perl.

          Manni

           
          • Brian Smith

            Brian Smith - 2004-11-28

            >> And I still think that a separate program would be better than something that is too tightly connected to POPFile and Perl. <<

            I agree with this even though I never use the system tray icon (I already have too many things in my system tray).

            But the system tray icon does have one feature that many users like - a backdoor way to shutdown POPFile which can work even if the UI has stopped responding (this backdoor bypasses the UI password protection).

            Brian

             
            • Texas Fett

              Texas Fett - 2004-11-28

              A seperate process sounds good, but it would have to be able to detect a PF crash.  Otherwise the icon could be sitting there for days while mail is not comming in because PF is dead.

              I found an OSS replacement for PDK. Last time I looked it didn't say it has a trayicon feature.

              http://par.perl.org/

              We may have to do a seperate process anyway because Windows trayicons often seem to be unstable.  Obviously some programs are not affected or are able to work around it.  But even our own seperate trayicon may have trouble, but at least it might not take POPFile down.  It still could if the XMLPRC connection it is communicating with PF is left open.

               

Log in to post a comment.