Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#545 PCManFM crashes on a rightclick

closed-invalid
nobody
None
7
2012-06-05
2012-05-27
Sworddragon
No

I'm using the current trunk of pcmanfm and libfm and if I try to make a right click on an empty place pcmanfm crashes. I can't even open menus like Edit -> Preferences. It seems it crashes (or makes noting) on all actions that opens a sort of a context menu or a subwindow.

In the attachment is a very detailed log from Valgrind. The log contains just the actions to start PCManFM and to right click on an empty place.

Edit: The file is to big to upload. I used now 7z to compress the log. The archive has no password (if a password prompt appears enter an empty string).

Discussion

1 2 > >> (Page 1 of 2)
  • Sworddragon
    Sworddragon
    2012-05-27

     
    Attachments
  • PCMan
    PCMan
    2012-05-27

    I fixed many bugs last night. Can you test if the bug still exists in the latest git code?
    Besides, to debug memory problems with valgrind, it's nice to do this before debugging.
    export G_SLICE=always-malloc
    So all memory allocation will be done via malloc. Otherwise memory blocks allocated using glice allocator of glib cannot be caught.

     
  • Sworddragon
    Sworddragon
    2012-05-27

    I have tested this with the commits which are currently 7 hours old. I will make later a new log with Valgrind.

     
    • priority: 5 --> 7
     
  • Ticket #3461430 is about the same and I cannot reproduce it. That's kinda odd.

     
  • Sworddragon
    Sworddragon
    2012-05-28

    I have now compiled the newest version in the git repository and logged the stderr of the libfm compilation. But I can't compile PCManFM anymore because of this error: "configure: error: Package requirements (libfm >= 0.1.99 libfm-gtk >= 0.1.99) were not met".

     
  • Sworddragon
    Sworddragon
    2012-05-28

     
    Attachments
  • PCMan
    PCMan
    2012-05-28

    You need to install the latest libfm from git. It's versioned 0.1.99.
    There are some API/ABI changes. If you use the wrong version of lib, the program won't compile and everything will crash.
    If you have installed the latest libfm, then the configure script of pcmanfm might try to use the older one installed on your system and that's why it does not compile.
    I think it's the problem. Maybe removing the old libfm on your system and replace it with the git one should work.

    Thanks.

     
  • Sworddragon
    Sworddragon
    2012-05-28

    I have uninstalled all previous versions with make uninstall. libfm-dev from Ubuntu isn't installed too. I thought a make install would install all files from libfm in a place where the compilation of PCmanFM can find them automatically. If not I don't know how to tell PCManFM how to use the correct files (and where they are).

    Maybe PCManFM should even check on runtime if it can load the correct version of libfm.

     
  • Check libraries in /usr/lib*/libfm* and /usr/local/lib*/libfm*, and headers in /usr/include/libfm and /usr/local/include/libfm - delete any if you find them, also check before deleting with 'dpkg -l | grep libfm' if there are any packages still left.

     
1 2 > >> (Page 1 of 2)