Closed HilbertCurve closed 2 years ago
This would help when debugging the audio engine, because when an OpenAL error is received, it's detected in only one function, which would mean the highest frame in the stack would be that function and not where the programmer would want to debug. This is especially apparent in pull request #88
yes, I know this error and I fixed it on a seperate branch, its basically just a missing null-ckeck.
I could offer making a hotfix directly or making a pull request for the other branch I already fixed it on.
Hotfix manually added in commit https://github.com/azurite-engine/Azurite/commit/9aca15d7644ed9b20e2492805ef880818030fa48
When the engine crashes, the logger only shows first stack frame of the crash, not any stack frames related to it. The logger also seems to throw an error of its own while printing out the stack frame.
Steps to reproduce
Set logging level to
Log.ALL
:Log.setLogLevel(Log.ALL);
Put any error-generating function into the update method of the scene. I used this one:Suggested behavior
An error message that shows the full stack frame, or some metric/setting that would enable that behavior
Current behavior
As described above, it only shows the first stack frame, and then some crash message related to the logger failing.
Error logs