question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Exception in thread DatabasePainter.

See original GitHub issue

Hi all, I get the following exception when I try to load a overage file:

[Lighthouse] Successfully loaded 1 coverage file(s)...
Exception in thread DatabasePainter:
Traceback (most recent call last):
  File "/usr/lib/python2.7/threading.py", line 801, in __bootstrap_inner
    self.run()
  File "/usr/lib/python2.7/threading.py", line 754, in run
    self.__target(*self.__args, **self.__kwargs)
  File "/home/robert/repo/ida-7.2/plugins/lighthouse/painting/painter.py", line 400, in _async_database_painter
    result = self._paint_database()
  File "/home/robert/repo/ida-7.2/plugins/lighthouse/painting/painter.py", line 295, in _paint_database
    if not self._priority_paint():
  File "/home/robert/repo/ida-7.2/plugins/lighthouse/painting/ida_painter.py", line 413, in _priority_paint
    cursor_address = idaapi.get_screen_ea()
  File "/home/robert/repo/ida-7.2/python/ida_kernwin.py", line 2251, in get_screen_ea
    return _ida_kernwin.get_screen_ea(*args)
RuntimeError: Function can be called from the main thread only

The “Coverage Overview” windows is successfully filled with the correct data, however, the disassembly output and the graph view are not painted.

IDA Version: Version 7.2.181105 Linux x86_64 (32-bit address size)

Regards,

Robert

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
RobertBuhrencommented, Dec 3, 2018

Btw, I’m using a nice little python script to convert Qemu trace files into drcov trace files that can be read by lighthouse. Maybe this is of interest for some of the lighthouse users.

You can find it here: https://github.com/RobertBuhren/qemutrace2drcov

Thanks to @domenukk for the initial version of this script.

1reaction
Manouchehricommented, Dec 10, 2018

8d60f77 fixed it for me, thanks!

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to catch an Exception from a thread - java - Stack Overflow
At some moment, I throw a runtime exception from the thread, but I can't catch the exception thrown from the thread in the...
Read more >
Exceptions in Managed Threads | Microsoft Learn
An AppDomainUnloadedException is thrown in a thread because the application domain in which the thread is executing is being unloaded. The ...
Read more >
Java Program to Use Exceptions with Thread - GeeksforGeeks
Exceptions are the events that occur due to the programmer error or machine error which causes a disturbance in the normal flow of...
Read more >
Unhandled exceptions terminate the thread (not the process)
When an unhandled exception terminates the thread, Pthread cancellation cleanup handlers and Pthread data destructors do not run and the thread is terminated ......
Read more >
Thread.UncaughtExceptionHandler (Java Platform SE 7 )
When a thread is about to terminate due to an uncaught exception the Java ... handler's uncaughtException method, passing the thread and the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found