FLTK logo

Re: [fltk.general] FLTK as an external dependency in Bazel?

FLTK matrix user chat room
(using Element browser app)   FLTK gitter user chat room   GitHub FLTK Project   FLTK News RSS Feed  
  FLTK Apps      FLTK Library      Forums      Links     Login 
 All Forums  |  Back to fltk.general  ]
 
Previous Message ]New Message | Reply ]Next Message ]

Re: FLTK as an external dependency in Bazel? "'Matthias Melcher' via fltk.general" Jan 30, 2023  
  Ok, even later to the game.

Sorry about the Fl::add_fd() issue. I had no idea about the side effects. I have now moved that call, so Fl::add_fd() will not be called until the user actually launches and external editor. This should no longer interfere.

When I read that launching FLUID from /tmp will lock up, I couldn't believe it. But I checked, and yes, it's true. I attached the debugger and it hangs in `void Fl_Cocoa_Screen_Driver::open_display_platform()`, calling `[NSApp run];`, 1728 in Fl_cocoa.mm. Since it wasn't able to open a window, it will hang here forever, waiting for messages from that not existing window.

So the issue must be when creating the window, maybe not having permission to do that. I tried other apps from the test directory, and they have the same issue! FLUID in command line mode in /tmp however runs fine for me.

Looking at the Console output (scary stuff...), it seems that apps get a "Darwin Role" assigned by the "RunningBoard" which determines if an app interactive, but launched from "/tmp", FLUID's role is "Set darwin role to: NonUserInteractive". This looks very suspiciously like one of those boxes that Pandorra keeps throwing at me, and I am somewhat reluctant to open it.

cp build/Xcode/bin/Debug/fluid.app/Contents/MacOS/fluid /tmp

cd /tmp

./fluid  (hangs)

./fluid -h   (works)

./fluid -u test.fl   (works)    


--
You received this message because you are subscribed to the Google Groups "fltk.general" group.
To unsubscribe from this group and stop receiving emails from it, send an email to fltkgeneral+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/fltkgeneral/b57dfa39-554b-4d27-9713-acb9e2a715d3n%40googlegroups.com.
Direct Link to Message ]
 
     
Previous Message ]New Message | Reply ]Next Message ]
 
 

Comments are owned by the poster. All other content is copyright 1998-2024 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to 'erco@seriss.com'.