mojo compile is non-deterministic ? (video)
I only call
mojo run main.mojo
again and again, and
- it breaks
- it gives a result
- it gives another result
I can't see where the randomness is coming from, it is certainly not intended3 Replies
must be getting some undefined behavior somewhere, probably accessing uninitialized memory
Unfortunately, this is a sign of UB lurking somewhere in your code. Quick glance at your code and you're doing unsafe stuff. Suggest minimize unsafe pointer as much as possible.
thanks guys!
@Ehsan M. Kermani what should i use to hold images?