#588 Do not fresh when delete, create or rename file

1.2
closed-duplicate
nobody
6
2012-09-23
2012-08-24
Anonymous
No

Pcman version: 1.0.1
SO.: Debian squeeze 6.0
Setps to reproduce problem: open console, kill all pcmanprocess, lunch pcmanfm --no-desktop (this is to cacht error, but normaly, file monitor don´t refresh content, when you copy,delete or rename files )
error:
(pcmanfm:16161): DEBUG: error create file monitor
(pcmanfm:16161): DEBUG: file monitor cannot be created.

Discussion

  • Nerv55
    Nerv55
    2012-08-27

    Hi, I reported this bug, i like to known if you can fixed, i downloaded lasted pcman from git, and still the error is present.

     
    • labels: 2616493 --> isn't related to libfm or pcmanfm
    • priority: 5 --> 6
     
  • The diagnostics '(pcmanfm:16161): DEBUG: file monitor cannot be created.' clearly says it's problem of gio's FAM backend. Do you have a package 'gamin' installed and configured correctly?

     
  • Nerv55
    Nerv55
    2012-08-28

    Thanks for reply.
    I have gamin installed and works fine with previos version of pcman (0.9.7), also i installed FAM (due compatibility with some mail transport agent) and works, but with 1.0.1 or 0.9.10 dont work.
    I tested pcman 1.0.1 build against gamin from sit (with fam ABI compatibility pacht), and work only if you pres f5 after file operation, also i tested against FAM.
    in both test, i have installed FAM demon and GAMIN demon respectively.

     
  • You probably don't know but pcmanfm itself uses neither gamin nor fam but gio does so it may be some conflict in goi between gamin and fam. TBH, I don't see how 0.9.7 may work in the same configuration where 1.0 does not.
    OK, I'll make a fresh install of Debian squeeze and check it myself. Thank you.

     
  • Nerv55
    Nerv55
    2012-08-28

    Thanks for the reply, How can i see that?, I notice that libfm comes with some gio modules...

     
  • i see that bug are same as #3556049 as 3556049 ...

    please i reply similar situation related to gio modules..

     
  • Those gio modules of libfm are completely unused now and are just a stub for future extensions. As I said already I doubt it is related to libfm at all but still there is a chance to find a workaround, of course.

     
  • Nerv55
    Nerv55
    2012-08-29

    Thanks for reply;
    first you say, install gamin then you said libfm dont use gamin.
    second you said is a conflict with gio.
    third you said gio is for future use.
    fine. Now i will replace pcman with Konkero
    thanks for your time.
    you can close this issuse.

     
  • Thank you for the report. It seems I said it all unclear.
    Libfm doesn't use any FAM (such as Gamin) but it uses GIO monitoring interface instead.
    GIO uses gamin. And since you have two FAM services at once I suspect GIO failed to use either of them. That is what I meant by term "conflict".
    And about src/gio directory in the libfm sources I've said it's not used so don't look into it. The GIO which is used by pcmanfm is part of GLib, not some own one.
    I hope this time I described it good enough to be understood by you.

     
  • @lstranger forget about nerv15.. please focuse it in problem...

    u said that glib must have and gio-fam related module to monitoring, that relies on functionality over fam/gamin so?

    and that the libfm/gio modules must not be installed?

    so in my relationed report, i will recompile as:
    1) glib with a gio-fam included module
    2) libfm without own gio module
    3) install gamin and test
    4) install fam either gamin and test..

    so if this are correct and problem persist, so them theres some problem comunicate it with glib in libfm,

    I suggest u while I perform test , u must investigate how libfm was implment today the differents glib/gio API

    due i notice there was a notale difference between glib < 2.24 and glib > 2.26 vs the gvfs API,

    this its very important due theres no fun installing light software that relies in high requerimeints (high requeriments software then relies in high hadware requeriments u capcha it)

     
  • PCMan
    PCMan
    2012-08-30

    Your system must have something wrong.

    1. Remove the gio-fam module and gamin/fam. If you have Linux kernel > 2.6, you don't need it as gio can use inotify directly.

    2. It's possible that a bug exist in libfm so it cannot parse the path you passed in correctly. Hence the folder cannot be monitored. Try file monitoring again by browsing / and create a new file under /. If everything works, it's not the bug of pcmanfm. The path "/" requires no parsing or decoding and should always be accessible. It should always work. Otherwise, it's the bug of glib no matter what version you're using.

    3. Try other file managers, such as nautilus. If it works, then there must be something wrong with our code since they use gio to monitor the folders too. If nautilus does not work, then either your system or glib is broken but it's not the bug of pcmanfm.

    Let us know the test result, please.

     
  • I've made fresh install of debian squeeze and installed latest libfm+pcmanfm from git on it. Everything is fine. And no FAM daemon is installed at all so it seems glib communicates with linux kernel without any daemon (as PCMan noted already). Try to remove all FAM daemons then and check again. Thank you.

     
    • milestone: 3086046 --> 1.2
     
  • i some busy now.. gime 3 days and i'll report rsults test

     
  • i finish test..

    1) compiled gtk 2.18, glib 2.25.15+gio modules and then libfm+gio modules + pcmanfm , works

    2) compiles gtk 2.18, glib 2.25.15 none of gio modules and then libfm+gio modules + pcmanfm , dont refresh files

    3) compiled gtk 2.18, glib 2.25.15+gio modules and then libfm none of gio modules + pcmanfm , dont refresh files

    4) compiled gtk 2.18, glib 2.25.15, libfm none of thems without gio modules + pcmanfm , work ramdomly... reinstall FAM and works.. but install fam from another hot build and dont works..

    debug info are poor, i put enough pinrts in code.. noly prints.. and if no gio module found, sais "cannot connect" etc etc ..

     
  • Which gio modules you meant in (1)? It seems for me as incomplete glib install or misconfiguration in cases (2)...(4).
    Thank you.

     
    • status: open --> closed-duplicate
     
  • This is duplicate of #3556049 really.