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
message=f"The Tribler core has unexpectedly finished with exit code {exit_code} and status: {exit_status}."
ifexit_code==1:
string_error="Application error"
else:
try:
string_error=os.strerror(exit_code)
exceptValueError:
# On platforms where strerror() returns NULL when given an unknown error number, ValueError is raised.
string_error='unknown error number'
message+=f'\n\nError message: {string_error}'
returnmessage
However, it seems not to work on Windows OS. As seen in #7855, the error code -1073741819 was transformed to Error message: Unknown error instead of something like Application Error 0xc0000005 (Access Violation).
The text was updated successfully, but these errors were encountered:
We use
os.strerror(exit_code)
to transform an error code into its string representation, as documented in https://docs.python.org/3/library/os.html#os.strerrortribler/src/tribler/gui/core_manager.py
Lines 278 to 289 in 1c6baad
However, it seems not to work on Windows OS. As seen in #7855, the error code
-1073741819
was transformed toError message: Unknown error
instead of something likeApplication Error 0xc0000005 (Access Violation)
.The text was updated successfully, but these errors were encountered: