Skip to content

Error messages, stack traces, Line Numbers... #10595

@SimonDanisch

Description

@SimonDanisch

I have the feeling all these three things get worse and worse.
I've actually caught myself ignoring the error messages and just right away look for any error in the code myself. So it seems that my subconscious has decided that it's not worth looking at the stack trace...
It's always hard to report the errors, because I almost never manage to create a minimal example (and normally don't want to waste more time, after searching for a bug without a debugger, without correct line numbers and without the correct error message).

My gut feeling reports me the following statistic:

  • 1% (latest build 20%!?) of the time Julia just silently errors out
  • 20% line numbers are out of range (running test.jl with 40 lines, error is in test.jl:98)
  • 30% A lot of weird unrelated stuff gets printed, like LoadError: LoadError: LoadError:, then one page of jload(something), jload(something), jload(something). This is from my memory, as I wasn't able to reproduce it right now.
  • 15% ... in anonymous without any further stack trace
  • 20% of depwarns are without any line numbers
  • 60% of normal errors seem to be reported correctly ( I know, the percentages don't fit at all).

Also there is this file https://gist.github.com/SimonDanisch/7e9694b05e00c79f716c#file-triangle-jl, which runs at commit 6d68792, but not with 2 days old master and not with 5587ca3.
It instead got me into a great Odyssey, where every single error was silent. I've fixed 2 so far, and now I don't want to further waste my time on this.
First was removed by turning Dict(:a => ..., :b => ..., ..., ...) into dict[:a] = ..., dict[:b] = ... in GLWindow/reactglfw.jl in createwindow.
The next I didn't really find, but it seemed that it was in createcontextinfo in GLAbstraction/src/GLInit.jl, so I just commented it out (I tried removing all deprecation warnings first).
The one I gave up on was at indexbuffer(GLuint[0,1,2]).
Related error was on 6d68792, where a call to TemplateProgram with the wrong arguments simply silently failed.

There is something really wrong here :D

I'm not sure if this happens because I aggregated a lot of weird code, or if it is a lot worse on windows, but it's getting really frustrating!
Probably related:

Metadata

Metadata

Assignees

Labels

error handlingHandling of exceptions by Julia or the usersystem:windowsAffects only Windows

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions