Ofelia icon indicating copy to clipboard operation
Ofelia copied to clipboard

Ofelia issues with pd-0.52 under OSX and Windows

Open 60-hz opened this issue 2 years ago • 10 comments

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)

60-hz avatar Nov 12 '21 13:11 60-hz

Ok, turning Audio on before creating ofWindow, makes it responsive. But puredata will freeze as soon as audio is turned off.

60-hz avatar Nov 12 '21 19:11 60-hz

@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 avatar Jan 16 '22 14:01 60-hz

@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.

cuinjune avatar Jan 18 '22 15:01 cuinjune

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:

Capture ofWindowTEST.pd.zip

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...

60-hz avatar Jan 19 '22 09:01 60-hz

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.

cuinjune avatar Jan 19 '22 12:01 cuinjune

I tested and the behavior is the same under Windows and MacOS with ofelia 4.0 since pd-0.52

60-hz avatar Jan 19 '22 13:01 60-hz

i can confirm the gui freezes also on ubuntu with this patch

ofWindowTEST.pd.zip

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

abreubacelar avatar Jan 25 '22 13:01 abreubacelar

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.

60-hz avatar Feb 25 '22 16:02 60-hz

@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 avatar Jun 08 '22 09:06 60-hz

@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!

abreubacelar avatar Jun 08 '22 12:06 abreubacelar