Skip to content
This repository was archived by the owner on Nov 1, 2022. It is now read-only.
This repository was archived by the owner on Nov 1, 2022. It is now read-only.

AssertionError when running with -s option #24

@sp-schoen

Description

@sp-schoen

The memory analyzer works well for me, except when I want to use the -s and -ss Options. Then I get the following error (debug output):

$ memory_analyzer run -s 2 --debug 25
Analyzing pid 25
Setting up GDB for pid 25
/usr/local/bin/python-dbg: No such file or directory.
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
0x00007f82a33c47b7 in epoll_wait (epfd=3, events=events@entry=0x562570a4d570, maxevents=1023, timeout=timeout@entry=1000) at ../sysdeps/unix/sysv/linux/epoll_wait.c:30
30      ../sysdeps/unix/sysv/linux/epoll_wait.c: No such file or directory.
+set directories /usr/local/lib/python3.7/site-packages/memory_analyzer/
+py sys.path.append("/usr/local/lib/python3.7/site-packages/memory_analyzer/")
++file_command /tmp/tmp02am_ttg/rendered_template-25.py.out
GIL $1
+++call (void) PyRun_SimpleString("with open('/tmp/tmp02am_ttg/rendered_template-25.py.out') as f: exec(f.read())")
[Detaching after fork from child process 161]
+++call (void) PyGILState_Release($1)
[Inferior 1 (process 25) detached]
Gathering data...
ERROR: AssertionError occurred during analysis: do not call blocking functions from the mainloop
ERROR: Failed with do not call blocking functions from the mainloop
^C
Aborted!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions