mumax / 3

GPU-accelerated micromagnetic simulator
Other
447 stars 150 forks source link

panic: interface conversion: ast.Expr is nil, not *ast.FuncLit #299

Open tachsin opened 2 years ago

tachsin commented 2 years ago
//mumax 3.10 [windows_amd64 go1.11.6(gc) CUDA-11.0]
//GPU info: NVIDIA GeForce RTX 3060 Laptop GPU(6143MB), CUDA Driver 11.5, cc=8.6, using cc=80 PTX
//(c) Arne Vansteenkiste, Dynamat LAB, Ghent University, Belgium
//This is free software without any warranty. See license.txt
//********************************************************************//
//  If you use mumax in any work or publication,                      //
//  we kindly ask you to cite the references in references.bib        //
//********************************************************************//
//output directory: .\hey.out/
//********************************************************************//
//Please cite the following references, relevant for your simulation. //
//See bibtex file in output folder for justification.                 //
//********************************************************************//
//   * Vansteenkiste et al., AIP Adv. 4, 107133 (2014).
panic: interface conversion: ast.Expr is nil, not *ast.FuncLit [recovered]
        panic: interface conversion: ast.Expr is nil, not *ast.FuncLit

github.com/mumax/3/engine.CompileFile(0xc000020098, 0x8, 0xc000021360, 0xa, 0x0)
        C:/Users/jmulkers/GO/src/github.com/mumax/3/engine/script.go:16 +0xc2
main.runScript(0xc000020098, 0x8)
        C:/Users/jmulkers/GO/src/github.com/mumax/3/cmd/mumax3/main.go:109 +0x185
main.runFileAndServe(0xc000020098, 0x8)
        C:/Users/jmulkers/GO/src/github.com/mumax/3/cmd/mumax3/main.go:92 +0x6e
main.main()
        C:/Users/jmulkers/GO/src/github.com/mumax/3/cmd/mumax3/main.go:59 +0x10b

Having this error. I'm trying to run the latest build, using Windows 11, CUDA 11.5

AriadneZhao commented 2 years ago

Hi, have u solve this problem?i meet the same problem too

tachsin commented 2 years ago

not quite sure but I think I tried different CUDA versions and it solved the problem

AriadneZhao commented 2 years ago

I think there may be somethong wrong with my code. i run examples and it works.