Skip to content

Minimizer nil pointer crash #358

@jplauzie

Description

@jplauzie

Hi,

When helping someone in the mumax forums , I also ran into a more serious issue (unrelated to #357 (comment)). Calling minimize() by hand in the GUI after relax() but before relax had finished relaxing (ie, interrupting relax) leads to a nil pointer error message:

Image

I've attached a script that reliably reproduces this issue here

mumaxcrash.txt

In order to reproduce this issue, I called minimize() in the GUI manually, approximately ~10-15 seconds after relax() started running. I haven't found a script that will reproduce the error without having to manually type in the minimize. If you call minimize in the script after relax() has completely finished, I do not get the error. However I was able to consistently reproduce this behavior 10/10 attempts.

I don't know if this timing is sensitive to GPU hardware (I am using a 1070 ti, so a newer card will finish relaxing faster), but for reference this is around step ~10,000 or so. It doesn't seem to be particularly sensitive to timing, if i call minimize() around step 5,000 or step 20,000 it still seems to crash. I've definitely called minimize partway through a relax before without issues many many times, so I'm not sure what about this particular script is sensitive. Using the break button before calling minimize seems to prevent this issue.

Cheers,
Josh L.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions