Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ofelia issues with pd-0.52 under OSX and Windows #65

Open
60-hz opened this issue Nov 12, 2021 · 10 comments
Open

Ofelia issues with pd-0.52 under OSX and Windows #65

60-hz opened this issue Nov 12, 2021 · 10 comments

Comments

@60-hz
Copy link

60-hz commented Nov 12, 2021

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
Copy link
Author

60-hz commented Nov 12, 2021

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

@60-hz
Copy link
Author

60-hz commented Jan 16, 2022

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

@cuinjune
Copy link
Owner

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

@60-hz
Copy link
Author

60-hz commented Jan 19, 2022

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?
pure-data/pure-data@b2edbe1#diff-c553bf0ebdbea997157784f0b7e24ad87d61aac6e71dea783cfcf60b9771d052

But I don't know how it could interact with ofelia window...

@cuinjune
Copy link
Owner

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.

@60-hz
Copy link
Author

60-hz commented Jan 19, 2022

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

@abreubacelar
Copy link

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

@60-hz
Copy link
Author

60-hz commented Feb 25, 2022

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
Copy link
Author

60-hz commented Jun 8, 2022

@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

@abreubacelar
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants