After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 674250 - thread problem with sqlite i executing event
thread problem with sqlite i executing event
Status: RESOLVED FIXED
Product: chronojump
Classification: Other
Component: chronojump
0.9.x
Other All
: Normal normal
: ---
Assigned To: Xavier de Blas
Xavier de Blas
Depends on:
Blocks:
 
 
Reported: 2012-04-17 12:24 UTC by Xavier de Blas
Modified: 2015-06-16 12:59 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Xavier de Blas 2012-04-17 12:24:05 UTC
protected virtual void onTimer( )

calls updateGraph();

but this can also call 

PrepareJumpSimpleGraph
PrepareJumpReactiveGraph

that both call Sqlite

better that they updateGraph() puts a flag, and then Prepare methods are done by the other thread or when onTimer ends (by main thread)
Comment 1 Xavier de Blas 2012-04-17 12:25:02 UTC
Have png 674250.png in my Desktop with snapshot of stacktrace
Comment 2 Xavier de Blas 2012-07-01 12:01:32 UTC
The best will be to leave the sqlite connection opened when event starts and close it when ended, finished or cancelled.