You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
python-for-android always compiles installed libraries into bytecode, even if you're doing a "debug" build; so the asserts in the linked scripts were being removed.
Activity
clayote commentedon May 13, 2025
It seems to relate to the particulars of the items put into the queue. I tried replacing most of the data with empty lists and the issue went away.
clayote commentedon May 13, 2025
I cut down the script to 55 lines.
clayote commentedon May 13, 2025
53 now. I'll stop here.
I thought that big or numerous enqueued items made a difference, but it turns out that six empty lists and some tuples are enough.
clayote commentedon May 13, 2025
When I simplify the final loop like this
the bug appears.
But when I do it like this
it doesn't, and things are fine.
So it's got a bit to do with the intermediate variable
got.clayote commentedon May 13, 2025
This is the output on Android:
clayote commentedon May 13, 2025
More thoroughly logged version, and its output logs, at this gist
clayote commentedon May 13, 2025
This wasn't really a bug -- you're not supposed to use asserts like that. Thanks to @Cheaterman for figuring this out.
clayote commentedon May 13, 2025
python-for-android always compiles installed libraries into bytecode, even if you're doing a "debug" build; so the
asserts in the linked scripts were being removed.