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

DemoCards crashes on cleanup on Windows #160

Open
tlnagy opened this issue Jan 12, 2024 · 0 comments
Open

DemoCards crashes on cleanup on Windows #160

tlnagy opened this issue Jan 12, 2024 · 0 comments

Comments

@tlnagy
Copy link

tlnagy commented Jan 12, 2024

First of all thanks @johnnychen94 for the awesome DemoCards package, but I'm running into a bug specifically on Windows where DemoCards crashes in the cleanup callback

From the Windows CI logs for https://github.com/tlnagy/Nagy_2023_SwellMigration :

[ Info: Clean up DemoCards build dir: "..\figures"
ERROR: LoadError: IOError: rm("D:\\a\\Nagy_2023_SwellMigration\\Nagy_2023_SwellMigration\\site\\src\\figures\\Notebooks"): resource busy or locked (EBUSY)
Stacktrace:
 [1] uv_error
   @ Base .\libuv.jl:100 [inlined]
 [2] rm(path::String; force::Bool, recursive::Bool)
   @ Base.Filesystem .\file.jl:307
 [3] rm(path::String; force::Bool, recursive::Bool)
   @ Base.Filesystem .\file.jl:294
 [4] rm
   @ .\file.jl:273 [inlined]
 [5] (::DemoCards.var"#113#118"{String, String, String, String})()
   @ DemoCards C:\Users\runneradmin\.julia\packages\DemoCards\Oz6IE\src\generate.jl:209
 [6] top-level scope
   @ D:\a\Nagy_2023_SwellMigration\Nagy_2023_SwellMigration\site\make.jl:47
in expression starting at D:\a\Nagy_2023_SwellMigration\Nagy_2023_SwellMigration\site\make.jl:47
GKS: could not find font bold.ttf
Error: Process completed with exit code 1.

This appears to be triggered by these lines:

Base.Sys.iswindows() && GC.gc()
rm(absolute_root; force=true, recursive=true)

Perhaps the GC.gc() command isn't freeing up the resource any more?

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

1 participant