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
The error occurred in export(), in Lib/profiling/sampling/stack_collector.py, line 56:
class CollapsedStackCollector(StackTraceCollector):
def export(self, filename):
...
for (call_tree, thread_id), count in self.stack_counter.items():
...
for file, line, func in call_tree:
...
part = f"{os.path.basename(file)}:{func}:{line}" # <========== HERE
...
The func variables seems to contain only junk data. I understand that we have:
The root cause is that the sampling profiler creates Unicode strings (function names) which contains invalid characters: characters bigger than _Py_MAX_UNICODE (0x10ffff).
Activity