-
Notifications
You must be signed in to change notification settings - Fork 267
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
Fails to graph with threaded calls #600
Comments
Yes, this can not work since rrdtool graph uses a persistent pango_font_map structure (for performance reasons) I guess you would have to lock access to this structure in a multi_threaded scenario ... If you want to create appropriate patches for rrd_graph.c ... I'll be glad to review them. |
So I'm looking into making this thread safe. But from reading the documentation, simply using a static https://developer.gnome.org/pango/stable/pango-Cairo-Rendering.html#pango-cairo-font-map-get-default
This is what is causing the assertions above. Using an older pango then this was no the case. I tried a solution where instead use this API call: https://developer.gnome.org/pango/stable/pango-Cairo-Rendering.html#pango-cairo-font-map-new Then I don't get the assertions. |
This seems to be related to #386 and https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=758868 .
When trying to graph in parallel (different threads) it ends up in an infinite loop generating the following output:
I have been running the following test program to reproduce the problem. Replacing the last line with
thr.run()
works as expected.Environment:
Dockerfile used for running with master:
Running the same on updated Arch Linux (RRDTool 1.4.9) gives the error (non-threaded works):
The text was updated successfully, but these errors were encountered: