Closed bdorney closed 4 years ago
This issue should be fixed with Python 3: the orignial traceback is now included in the exception : https://bugs.python.org/issue13831
Since Python 2 compatibility is requested while (and after) moving to Python 3, we could add a function wrapper which appends the original traceback to the exception message (see example in the Python issue).
QOL debugging feature which won't be fixed in legacy.
Brief summary of issue
There are a few rare cases where
ana_scans.py
will fail to properly produce output. In each time this has been tracked to problems with the input files (e.g. they are bad).However the stack trace that is reported is always the python
multiprocessing
stack trace while the error message is the error message that is caught:Here the message of the
ValueError
is the error that is actually raised (see below). But the stacktrace is the one from the multiprocessing call ofmap_async
.Types of issue
Expected Behavior
It would be good if the stack trace matched the actual error and not the
multiprocessing
.Current Behavior
Described above.
Steps to Reproduce (for bugs)
In the particular example above the "real" stack trace was determined to be:
Possible Solution (for bugs)
In this particular case a new failure mode was observed; this time not all VFATs for one file had 100 events of triggers. So the fix would be straight forward for this case; but because the multiprocessing stack trace was spit back and not the "actual" of interest it took longer to debug; I think the strategy would be to keep this issue open and add problems+solutions as we go.
Context (for feature requests)
It's hard to debug failures without the relevant stack trace.
Your Environment