-
-
Notifications
You must be signed in to change notification settings - Fork 39
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
oregano_warning popup - missing check for correct thread #194
Comments
- add noise analysis (initial version: integrated noise only); - add user documentation for the simulation settings (DC, AC and Noise); - increase the minimum width of the simulation settings window in order to fit all the descriptions (labels); - fix units of measurements for several simulation settings (DC and AC, from incorrect units of "seconds"); - properly set Pango Text Attribute Markup Language in oregano_error(), oregano_warning() and oregano_question(); - add auxiliary functions to schedule calls to oregano_error(), oregano_warning() and oregano_question() using the GLib function g_idle_add_full() (thanks Bernhard for the tip, this is a local ngspice_analysis resolution for drahnr#194); - some style improvements here and there; - insert the proper GNU copyright notice in new files (proper copyright information and full name is still missing for user "Michi" !); - update authors, copyright information and contact details in the GUI; - version bump. Signed-off-by: Guido Trentalancia <[email protected]> --- AUTHORS | 1 data/xml/sim-settings.ui | 566 +++- docs/user-docs/Simulation-Settings-HOWTO.md | 30 src/dialogs.c | 66 src/dialogs.h | 5 src/engines/netlist-helper.c | 10 src/engines/netlist-helper.h | 2 src/engines/ngspice-analysis.c | 98 src/engines/ngspice-watcher.c | 23 src/engines/ngspice-watcher.h | 23 src/engines/ngspice.c | 23 src/load-schematic.c | 81 src/log-interface.h | 25 src/plot.c | 32 src/save-schematic.c | 31 src/sim-settings-gui.c | 401 ++- src/sim-settings-gui.h | 46 src/sim-settings.c | 95 src/sim-settings.h | 37 src/simulation.h | 3 src/tools/cancel-info.c | 23 src/tools/cancel-info.h | 23 src/tools/thread-pipe.c | 29 src/tools/thread-pipe.h | 23 test/test-files/test_engine_ngspice_watcher/basic/result/actual.txt | 1176 ---------- test/test-files/test_engine_ngspice_watcher/error/step_zero/result/actual.txt | 5 test/test_engine_ngspice.c | 23 test/test_thread_pipe.c | 23 test/test_update_connection_designators.c | 24 wscript | 2 30 files changed, 1394 insertions(+), 1555 deletions(-)
- add noise analysis (initial version: integrated noise only); - add user documentation for the simulation settings (DC, AC and Noise); - increase the minimum width of the simulation settings window in order to fit all the descriptions (labels); - fix units of measurements for several simulation settings (DC and AC, from incorrect units of "seconds"); - properly set Pango Text Attribute Markup Language in oregano_error(), oregano_warning() and oregano_question(); - add auxiliary functions to schedule calls to oregano_error(), oregano_warning() and oregano_question() using the GLib function g_idle_add_full() (thanks Bernhard for the tip, this is a local ngspice_analysis resolution for drahnr#194); - some style improvements here and there; - insert the proper GNU copyright notice in new files (proper copyright information and full name is still missing for user "Michi" !); - update authors, copyright information and contact details in the GUI; - version bump. Signed-off-by: Guido Trentalancia <[email protected]> --- AUTHORS | 1 data/xml/sim-settings.ui | 566 +++- docs/user-docs/Simulation-Settings-HOWTO.md | 30 src/dialogs.c | 66 src/dialogs.h | 5 src/engines/netlist-helper.c | 10 src/engines/netlist-helper.h | 2 src/engines/ngspice-analysis.c | 98 src/engines/ngspice-watcher.c | 23 src/engines/ngspice-watcher.h | 23 src/engines/ngspice.c | 23 src/load-schematic.c | 81 src/log-interface.h | 25 src/plot.c | 32 src/save-schematic.c | 31 src/sim-settings-gui.c | 401 ++- src/sim-settings-gui.h | 46 src/sim-settings.c | 95 src/sim-settings.h | 37 src/simulation.h | 3 src/tools/cancel-info.c | 23 src/tools/cancel-info.h | 23 src/tools/thread-pipe.c | 29 src/tools/thread-pipe.h | 23 test/test-files/test_engine_ngspice_watcher/basic/result/actual.txt | 1176 ---------- test/test-files/test_engine_ngspice_watcher/error/step_zero/result/actual.txt | 5 test/test_engine_ngspice.c | 23 test/test_thread_pipe.c | 23 test/test_update_connection_designators.c | 24 wscript | 2 30 files changed, 1394 insertions(+), 1555 deletions(-)
I suppose this issue has been closed with my commit: and your subsequent merge: Please let me know if there is anything else I can do. Also, for next time you merge, please include the full ChangeLog for the commit, so it is easier to track this sort of things (the issue resolution was stated in the original commit). |
No, this is a general problem. There needs to be a check for those warning/logging funcs if we are in the correct thread and deal with it if not. Otherwise this will happen again. |
I don't understand the problem. |
The two functions oregano_error() and oregano_warning() should only run in the main thread. As simple as that... |
drahnr#194 Reschedule interactive GUI messages internally without requiring the use of specialised scheduling functions.
Should hopefully be fixed here: |
I was more thinking of |
Make sure it is used right, and nobody will ever include X11 again as this obsolete post suggests: https://stackoverflow.com/questions/18647475/threading-problems-with-gtk/1865103
The text was updated successfully, but these errors were encountered: