mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-01-10 07:20:56 +00:00
e0b4cab2db
For reasons unknown, a previous homescreen layout can sometimes survive a GC cycle in main's unimport loop. Two homescreen layouts can't exist simultaneously, so creating a new one would fail. It _seems_ that after restarting the session, the homescreen object still exists but is not reachable anymore, so a second GC cycle properly disposes of it. So what we do is simply catch the possible MemoryError, invoke GC explicitly, and try again. |
||
---|---|---|
.. | ||
apps | ||
storage | ||
trezor | ||
_vulture_ignore.txt | ||
.gitignore | ||
all_modules.py | ||
all_modules.py.mako | ||
boot.py | ||
main.py | ||
session.py | ||
typing.py | ||
usb.py |