Odoo Help


This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.


how to resovle the Error: "RuntimeError: main thread is not in main loop";

on 8/23/16, 7:34 PM 140 views

.py codes:

 def plotfig(self,cr):
   tem='/tmp/%s.png' % cr['uid']

Now when user create a record and clicks button "plotfig", a figure will be shown on "Pic"; all seams ok untill now;

but if the user create another record and clicks button "plotfig" again, he/she will get warning: "RuntimeError: main thread is not in main loop"; sometime the warning is "Fatal Python error: GC object already tracked Aborted" / "Segmentation fault" and the Odoo server will shut down automaticly.

if I click "Ctrl+c" to stop Odoo server, I will also get warning: "RuntimeError: main thread is not in main loop";

I don;t know how to resolve these problems.

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)


Asked: 8/23/16, 7:34 PM
Seen: 140 times
Last updated: 8/24/16, 1:22 AM