Menu

#275 xfw window disappears after choosing recent files

v1.0_(example)
closed-fixed
nobody
None
5
2024-01-03
2023-05-05
No

Forwarded from: https://bugzilla.redhat.com/show_bug.cgi?id=2190356 , seems reproducible to me.

With xfe 1.45,

  • launch xfw (X File Write)
  • click "File"
  • choose a file from recent file history

Then xfw window itself disappears (although it does not seem to be "crashing").
gdb seems to be saying that xfw is waiting for something:

(gdb) bt
#0  0x00007f5ef3a48ade in __GI___select (nfds=4, readfds=0x7fffc3e2e600, writefds=0x7fffc3e2e580, exceptfds=0x7fffc3e2e500, timeout=0x0)
    at ../sysdeps/unix/sysv/linux/select.c:69
#1  0x00005617ac8f6dec in FX::FXApp::getNextEvent (this=0x5617ada50a50, ev=..., blocking=<optimized out>)
    at /usr/src/debug/xfe-1.45-3.fc38.x86_64/src/foxhacks.cpp:1766
#2  0x00007f5ef413e4aa in FX::FXApp::runOneEvent (this=this@entry=0x5617ada50a50, blocking=blocking@entry=true)
    at /usr/src/debug/fox-1.6.57-12.fc38.x86_64/src/FXApp.cpp:3134
#3  0x00007f5ef413e79d in FX::FXApp::run (this=this@entry=0x5617ada50a50) at /usr/src/debug/fox-1.6.57-12.fc38.x86_64/src/FXApp.cpp:3092
#4  0x00005617ac8ac31e in main (argc=<optimized out>, argv=<optimized out>) at /usr/src/debug/xfe-1.45-3.fc38.x86_64/src/XFileWrite.cpp:415

Discussion

  • Mamoru TASAKA

    Mamoru TASAKA - 2023-05-06

    Okay, looks like 1.44 was working. Comparing with 1.44 source code, the following seems to work.

    --- xfe-1.45/src/WriteWindow.cpp.window_delete  2022-12-23 20:05:50.000000000 +0900
    +++ xfe-1.45/src/WriteWindow.cpp    2023-05-06 16:30:24.903053616 +0900
    @@ -1532,8 +1532,6 @@ long WriteWindow::onCmdNew(FXObject*, FX
         window->create();
         window->raise();
         window->setFocus();
    -    
    -    delete window;
         return(1);
     }
    
    @@ -1623,8 +1621,6 @@ long WriteWindow::onCmdOpenRecent(FXObje
         }
         window->raise();
         window->setFocus();
    -    
    -    delete window;   
         return(1);
     }
    

    So, also "File -> New" is not working with 1.45. It should launch new window every time "File -> New" is chosen. With 1.45 nothing seems to be happening.

     
  • Roland Baudin

    Roland Baudin - 2024-01-03

    This is fixed in Xfe 1.46. Thanks!

     
  • Roland Baudin

    Roland Baudin - 2024-01-03
    • status: open --> closed-fixed
     

Log in to post a comment.