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

SnoopPrecompile crashes Sunny on Windows #316

Closed
kbarros opened this issue Dec 7, 2022 · 1 comment
Closed

SnoopPrecompile crashes Sunny on Windows #316

kbarros opened this issue Dec 7, 2022 · 1 comment

Comments

@kbarros
Copy link

kbarros commented Dec 7, 2022

It appears that SnoopPrecompile crashes for Windows users (but not Linux or Mac) when loading Sunny, at this commit.

The stack trace is:

┌ Info: Precompiling Sunny [2b4a2ac8-8f8b-43e8-abf4-3cb0c45e8736]
└ @ Base loading.jl:1662
ERROR: LoadError: SystemError: opening file "/dev/null": No such file or directory
Stacktrace:
  [1] systemerror(p::String, errno::Int32; extrainfo::Nothing)
    @ Base .\error.jl:176
  [2] #systemerror#80
    @ .\error.jl:175 [inlined]
  [3] systemerror
    @ .\error.jl:175 [inlined]
  [4] open(fname::String; lock::Bool, read::Nothing, write::Nothing, create::Nothing, truncate::Bool, append::Nothing)
    @ Base .\iostream.jl:293
  [5] open(fname::String, mode::String; lock::Bool)
    @ Base .\iostream.jl:356
  [6] open
    @ .\iostream.jl:355 [inlined]
  [7] macro expansion
    @ C:\Users\Windows\.julia\packages\Sunny\IMle8\src\Sunny.jl:122 [inlined]
  [8] top-level scope
    @ C:\Users\Windows\.julia\packages\SnoopPrecompile\UWvXF\src\SnoopPrecompile.jl:107
  [9] include
    @ .\Base.jl:419 [inlined]
 [10] include_package_for_output(pkg::Base.PkgId, input::String, depot_path::Vector{String}, dl_load_path::Vector{String}, load_path::Vector{String}, concrete_deps::Vector{Pair{Base.PkgId, UInt64}}, source::Nothing)
    @ Base .\loading.jl:1554
 [11] top-level scope
    @ stdin:1
in expression starting at C:\Users\Windows\.julia\packages\Sunny\IMle8\src\Sunny.jl:1
in expression starting at stdin:1

Thanks.

@timholy
Copy link
Owner

timholy commented Jan 10, 2023

This wasn't a SnoopPrecompile bug, it was a Sunny bug. The problem is that "/dev/null" isn't a file on Windows, thus the precompile workload the Sunny developers used wasn't Windows-compatible. Had they used Julia's own devull it probably would have worked.

But it looks like they removed the precompilation: SunnySuite/Sunny.jl@e567fe7. (Seems unnecessary if they had just rewritten the precompile script to support Windows, and Julia 1.9 will get much more benefit from precompilation.) But they haven't made a new release in a while, you could ask them about that.

@timholy timholy closed this as completed Jan 10, 2023
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

2 participants