Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
tachsin opened this issue Nov 25, 2021 · 4 comments
Open

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

tachsin opened this issue Nov 25, 2021 · 4 comments

Comments

@tachsin
Copy link

tachsin commented Nov 25, 2021

//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
Copy link

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

@tachsin
Copy link
Author

tachsin commented Apr 7, 2022

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

@AriadneZhao
Copy link

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

@JonathanMaes
Copy link
Contributor

I can reproduce this error on mumax3.10 (Windows) with an input script from the mailing list. It seemingly does not occur on mumax3.11 anymore, nor on mumax3.10 built with Go 1.22. Perhaps this issue occurs with mumax³ compiled with older Go versions?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants