reloadware / reloadium

Hot Reloading and Profiling for Python
https://reloadium.io
Apache License 2.0
2.74k stars 56 forks source link

Reloadium experienced a fatal error and has to quit. #150

Closed ericmock closed 1 year ago

ericmock commented 1 year ago

Very similar to: https://github.com/reloadware/reloadium/issues/76#issue-1472779069

Except: using Python 3.10 on Manjaro with a local project and the cakeshop.py "calculate" example.

dkrystki commented 1 year ago

@ericmock Could you provide more info?

Describe the bug*

A clear and concise description of what the bug is.

To Reproduce

Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior

A clear and concise description of what you expected to happen.

Screenshots

If applicable, add screenshots to help explain your problem.

Desktop or remote (please complete the following information):**

Additional context

Add any other context about the problem here.

dkrystki commented 1 year ago

Also could you run it again with environmental variable set to RW_DEBUG=True?

ericmock commented 1 year ago

The debug information ended with: RecursionError: maximum recursion depth exceeded in comparison

This is version 1.1.1

Unselected 'Add working directory to reloadable path' and got the same issue.

The line:

  File "shibokensupport/signature/loader.py", line 61, in feature_imported
  File "shibokensupport/feature.py", line 137, in feature_imported
  File "shibokensupport/feature.py", line 148, in _mod_uses_pyside
  File "/usr/lib/python3.10/inspect.py", line 1139, in getsource
    lines, lnum = getsourcelines(object)
  File "/usr/lib/python3.10/inspect.py", line 1121, in getsourcelines
    lines, lnum = findsource(object)
  File "/usr/lib/python3.10/inspect.py", line 954, in findsource
    lines = linecache.getlines(file, module.__dict__)
  File "/usr/lib/python3.10/site-packages/apipkg/_module.py", line 133, in __dict__
    self.__makeattr(name)
  File "/usr/lib/python3.10/site-packages/apipkg/_syncronized.py", line 16, in synchronized_wrapper_function
    return wrapped_function(*args, **kwargs)
  File "/usr/lib/python3.10/site-packages/apipkg/_module.py", line 110, in __makeattr
    result = importobj(modpath, attrname)
  File "/usr/lib/python3.10/site-packages/apipkg/_importing.py", line 33, in importobj
    module = __import__(modpath, None, None, ["__doc__"])
  File "/usr/lib/python3.10/site-packages/py/__metainfo.py", line 1, in <module>
    import py

occur repeatedly in the debug output.

dkrystki commented 1 year ago

@ericmock I can't reproduce this. Is it the whole traceback?

Also could you share the code around line 148 in feature.py?

ericmock commented 1 year ago

Restarting PyCharm (again?) seems to have fixed the issue.