Closed cormullion closed 5 years ago
I can replicate the crash, but not sure what to do about it. Your convert
method should be defined with Base.convert(::Type{Point2D}, obj)
, not Base.convert(Point2D, obj)
. The latter defines convert(::Any, obj)
, which is weird to even think about. It might be worth reporting this as a Julia bug, in case the solution is to prevent such methods from even being defined.
Oops. 😊 Thanks, Tim.
Yeah, not much we can do here. Julia is pretty much broken after adding these methods.
I've got a problem with some code (I don't understand conversions very well...), and I thought I'd get Debugger to help me investigate the problem, but it had other ideas...
Code:
The normal error is this:
which I'm trying to investigate. I expect the answer is very simple, but I haven't found it yet...
With the debugger:
Here's the output after the first step:
Might be a stack overflow or similar?
Debugger v0.6.2, Julia v1.2.0