[Tracker] Tracker search problem - GLib-CRITICAL **: g_thread_join: assertion `thread' faile



Hello everybody,

  I created a stress test for an API developed by me using tracker. A method in this API is used to search the tracker database by a keyword using a sparql query. The thing is that when I call this method approximatively 370 times it crashes. 
  The returned error is the following one:

Running search after 'mp3' keyword for the 367 time
[Callback.msg] Searchop status is now STATUS_BUSY...
Search op thread create failed: Error creating thread: Resource temporarily unavailable
TEST FAILED-> NOK

TEST FAILED
Running search after 'mp3' keyword for the 368 time
Waiting for the other search thread to finish... 

(<unknown>:8704): GLib-CRITICAL **: g_thread_join: assertion `thread' failed
[Callback.msg] Searchop status is now STATUS_BUSY...
Search op thread create failed: Error creating thread: Resource temporarily unavailable
TEST FAILED-> NOK

  The test always crashes around this number ~370 times.
  The search operations is asynchronous and I do create some threads but I do not thing the problem is with the thread or a memory leak.
  I just want to task if you know that tracker methods like tracker_sparql_connection_query() could generate exceptions like this ones. Take in mind that I do free the connection and the cursor so there are no memory leaks regarding this part of code.

Have a nice day!
 
  


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]