Ofelia
Ofelia copied to clipboard
Ofelia issues with pd-0.52 under OSX and Windows
When creating a new ofWindow, all pd gui is frozen. When destroying the ofelia window, the gui is working again.
Tested with pd-0.52-0 test from miller website (Tk 8.6.10) and a compiled version with Tk 8.6.12 OSX 10.15.4
Same behavior happened in windows10 and pd-0.52-0 (Tk 8.6.10)
Ok, turning Audio on before creating ofWindow, makes it responsive. But puredata will freeze as soon as audio is turned off.
@cuinjune, any news on this issue? ofelia is not really usable in new pd version because of this problem. And I wish you an Happy new year 2022 :) I hope to be able to continue to use ofelia because I use it during my puredata workshops.
@60-hz Hi, I worked on building the Ofelia external for macOS (using the latest OF) last week but I couldn't fix the GUI freezing issue yet. Let me know if you have any ideas to fix it.
Great to hear that you are still working on it. I am sorry my skill is limited to PureData right now... But what I can say is that it might not be related to audio, because ofelia window's creation is working well when I make a simple create/destroy process in pd, even if the gui freeze:
It should be related to a recent modification in pd source code related to canvas, maybe a change like this? https://github.com/pure-data/pure-data/commit/b2edbe17eb33a120e422dd37cd05f74047aac926#diff-c553bf0ebdbea997157784f0b7e24ad87d61aac6e71dea783cfcf60b9771d052
But I don't know how it could interact with ofelia window...
Thanks, I think it's a problem with macOS because ofelia 4.0 (which used to work fine) also doesn't work now. I will try to fix it again this weekend. I think I might need to create ofelia window on a different thread.
I tested and the behavior is the same under Windows and MacOS with ofelia 4.0 since pd-0.52
i can confirm the gui freezes also on ubuntu with this patch
and worse, if i try the example from 3dPrimitives/main.pd, the patch opens, start to draw and animate, then suddenly it stops from updating and i can't destroy the window, if i try to close it the system asks to kill the window, and then pd is killed together with the window
if i just close the patch, the window stays alive and only closes when i close pd
I think I might need to create ofelia window on a different thread.
I think thats a god idea because when I reduce the framerate in ofelia, all pd gui patch is also slowing.
@cuinjune @abreubacelar I just want to notify you that Ofelia works well with pd-0.52-2 both on windows 10 and MacOs Monterey (Macbook M1 with Rosetta compatibility checked)
Only small issue on MacOs seems to be those redlines when a window is created: ofAppGLFWWindow: 65544: Cocoa: Failed to find service port for display ofAppGLFWWindow: 65544: Cocoa: Failed to find service port for display
@60-hz this is good news!! i just tested ofWindowTEST.pd.zip and also 3dPrimitives/main.pd on ubuntu, pd 0.52-2 and the problems are gone. And no red lines!