#324 pglgui should tell the user more prominently that "Another process is still running..."

PeerGuardian_Linux
closed
freemind
None
5
2014-06-13
2013-03-30
Giorgos
No

Hi! :-)

Clicking the "Start" button doesn't always enabling pg.
Sometimes, it just printing the message "Starting Peerguardian..." at the bottom of the window, but nothing else.
Then I have to click again the "Start" button and everything is working properly (brings up the pwd box and enabling pg).

Right-clicking the tray button -> Start, is always working.
My system is Kubuntu 12.10 x64 (KDE 4.9.5).
PGL v.2.2.2 (from ppa).
Thanks!!! :-)

Discussion

  • Giorgos
    Giorgos
    2013-04-07

    Hi! :-)

    Here are 2 logs.
    1) Clicking "Start" -> nothing actually happens -> Log1.
    2) Reclicking "Start" -> indeed starts this time -> Log2.

    I can't see though any related information there.
    Only for the lists update related actions.

    That's for now and have a nice week! :-)

     
    Attachments
  • jre-phoenix
    jre-phoenix
    2013-04-26

    Ok, the pglcmd logs confirm what you say. Can you start "pglgui" from a terminal and then check its output there?

    For me everything works fine. Still I got some strange output when I clicked on update, when pgl was already running:

    ** Warning: bool hasPermissions(const QString&) Could not read from file "/etc/test_file" 
    ** Debug: Executing commands: 
     ("/usr/bin/gksu "/usr/bin/pglcmd update"") 
    
    ** Debug: void ProcessT::executeCommand(const QString&, const QProcess::ProcessChannelMode&, bool) "/usr/bin/gksu "/usr/bin/pglcmd start""
    

    The first line can be ignored.
    The second line is what I expected. And if it doesn't appear for you, then something is really going wrong.
    But I don't understand why the 3rd line appears.

    I assume with your problems you will get this line

    ** Warning: Another process is still running...
    

    If this is the case, then pglgui is working as expected. We just should try to let pglgui show this fact to the user.

    Please report back.

     
    Last edit: jre-phoenix 2013-04-28
  • jre-phoenix
    jre-phoenix
    2013-04-26

    • status: open --> pending
    • assigned_to: jre-phoenix
     
  • Giorgos
    Giorgos
    2013-04-30

    Debug: void ProcessT::executeCommand(const QString&, const QProcess::ProcessChannelMode&, bool) ""
    Warning: Another process is still running...
    ** Warning: QProcess: Destroyed while process is still running.

    Indeed! :-)
    "Another process is still running" when failing to enable.
    I agree that pgl has to inform the user for it.

    Sorry for the delay! :-(
    I upgraded to the 13.04 and I had many serious problems with Raring.
    Actually, I'm still having. Raring is not really working for me.

     
  • jre-phoenix
    jre-phoenix
    2013-04-30

    • summary: PGL sometimes starts, with the 2nd try. --> pglgui should tell the user more prominently that "Another process is still running..."
    • status: pending --> accepted
    • assigned_to: jre-phoenix --> Carlos
     
  • jre-phoenix
    jre-phoenix
    2013-05-03

    The mouse pointer indicating "busy status" (like on start up of pglgui) would be a nice solution IMO.
    I'd rather not block the whole interface, just make this soft notice of pgld/pglcmd being busy.

    btw, I guess the relevant code is in super_user.cpp:

        if ( m_ProcT->isRunning() )
        {
            qWarning() << "Another process is still running...";
            return;
        }
    
     
  • jre-phoenix
    jre-phoenix
    2014-06-13

    This is fixed since pgl 2.2.3 (commit 2013-05-29 by freemind) by showing an error window "Another process is still running..."

     
  • jre-phoenix
    jre-phoenix
    2014-06-13

    • status: accepted --> closed