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

gtkmm-plplot known issues #1

Open
tschoonj opened this issue Aug 23, 2019 · 2 comments
Open

gtkmm-plplot known issues #1

tschoonj opened this issue Aug 23, 2019 · 2 comments

Comments

@tschoonj
Copy link

Hi!

I am the author of gtkmm-plplot and stumbled onto your repository just now.

I would just like to comment on the Known issues you reported on the README.md page:

At least in macOS Mojave, the main GUI window needs to called in the main thread. So, using multithreading requires the threads to not to be joined. Users need to stick to other measures to make sure that the program does not prematurely end once a single thread exits.

This is a constraint imposed by Gtk and has nothing to do with Gtkmm-PLplot. If you would like to update the GUI from a different thread, you will need to call gdk_threads_add_idle. This is true on all operating systems, not just macOS.

The app crashes randomly when the mouse is being moved over the drawing canvas area.

This is a bug and should be fixed: does it occur with the example in this repo?

Best,

Tom

@kanishkegb
Copy link
Member

Hello Tom,

Thank you for looking into those issues. I do not have access to a Linux/Mac computer right now, I will definitely test it as soon as possible.

And yes, this occurs with the example in the repo. Specifically this happens only in the example where the plot is continuously updated. I also found out that if I keep adding the plots, instead of removing the current plot and re-drawing the next plot, this does not happen. I was assuming if the mouse hover happens in between the removal and re-drawing, the canvas goes to an undefined behavior. I tried to catch the mouse hover event to solve this, but I did not get that to work.

By the way, thank you so much for developing and maintaining the gtkmm-plplot. It is a great tool and really appreciate the effort you put into that! I have a small suggestion though, please consider adding dependency installation details to the Readme. I think it will save a lot of time of the people like me, who are new to C++ plotting.

Thank you again,
Kani

@tschoonj
Copy link
Author

Thanks Kani, I will look into this next week.

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

2 participants