Menu

#168 Can't call method "set_cursor"

v1.0 (example)
closed-fixed
nobody
None
5
2013-06-21
2013-06-13
Maverick
No

Hi,

I've update my pack to pac-4.5.2.2-2.x86_64 on Fedora 19, and now it can't start:

Can't call method "set_cursor" on an undefined value at /opt/pac/lib/PACMain.pm line 2655.

Anyone experiencing this problem? Any fix?

Discussion

  • Fabio Rossi

    Fabio Rossi - 2013-06-16

    I confirm this on my system too

     
  • David Torrejón Vaquerizas

    Hi all!

    Could you please replace lines #2655 & #2656 from /opt/pac/lib/PACMain.pm??

    Original code:

      $$self{_GUI}{main} -> window -> set_cursor( Gtk2::Gdk::Cursor -> new( 'watch' ) );
        $$self{_GUI}{main} -> set_sensitive( 0 );
    

    New code:

    if ( defined $$self{_GUI} && defined $$self{_GUI}{main} && defined $$self{_GUI}{main} -> window ) {
    $$self{_GUI}{main} -> window -> set_cursor( Gtk2::Gdk::Cursor -> new( 'watch' ) );
    $$self{_GUI}{main} -> set_sensitive( 0 );
    }

    and also line #2714 & 2715:

    Original code:

      $$self{_GUI}{main} -> window -> set_cursor( Gtk2::Gdk::Cursor -> new( 'left-ptr' ) );
        $$self{_GUI}{main} -> set_sensitive( 1 );
    

    New code:

    if ( defined $$self{_GUI} && defined $$self{_GUI}{main} && defined $$self{_GUI}{main} -> window ) {
    $$self{_GUI}{main} -> window -> set_cursor( Gtk2::Gdk::Cursor -> new( 'left-ptr' ) );
    $$self{_GUI}{main} -> set_sensitive( 1 );
    }

    Please, let me know if works now.

    • David.
     
  • Fabio Rossi

    Fabio Rossi - 2013-06-17

    I have tested your changes, attached patch. Now I get the following error:

    unhandled exception in callback:
    Can't call method "show" on an undefined value at /opt/pac/lib/PACTerminal.pm line 642.
    *** ignoring at /opt/lib/PACMain.pm line 251.

     
  • David Torrejón Vaquerizas

    weird... :(

    Do you have any connection setup to auto start on PAC startup? any other PAC "special" configuration? (autohide, etc.)

     
  • Fabio Rossi

    Fabio Rossi - 2013-06-17

    I have enabled "Start a shell upon PAC startup" and it starts iconified, morever "Start PAC with last size" is also enabled.

     
  • David Torrejón Vaquerizas

    Hi all!!

    Ok, I found the problem!
    Please, stay tuned for next PAC release! (and sorry for the inconvenience!)

    • David.
     
  • David Torrejón Vaquerizas

    Hi!

    Please, try latest PAC 4.5.2.3 and tell me if it worked.

    • David.
     
  • Maverick

    Maverick - 2013-06-20

    It's ok now.

    Thankx.

     
  • David Torrejón Vaquerizas

    • status: open --> closed-fixed
     

Log in to post a comment.