-
-
Notifications
You must be signed in to change notification settings - Fork 298
Undefined struct field type causes process crash #3195
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
Comments
In this case, the cell with the field with the undefined type gets an |
Ok, I think I boiled it down. The crash can simply be activated and deactivated. This is with Julia 1.11.5: ### A Pluto.jl notebook ###
# v0.20.6
using Markdown
using InteractiveUtils
# ╔═╡ 0f5b68f4-19bd-4bf0-9c57-0f2df367f080
struct MyName
distance::Int
index::Int # If `Int` is changed into `MyError`, Pluto crashes
end
# ╔═╡ 01340cee-5835-4549-9cbd-950db8f6614f
MyName |> sizeof
# ╔═╡ Cell order:
# ╠═0f5b68f4-19bd-4bf0-9c57-0f2df367f080
# ╠═01340cee-5835-4549-9cbd-950db8f6614f
|
@PatrickHaecker Can you write a regular bug report? Clearly state:
videos and screenshots help a lot. |
And thanks for finding which Julia+Pluto version caused it. Can you find out which of the two (julia or pluto update) is the culprit? |
Steps to reproduce:
struct MyName
distance::Int
index::Int # If `Int` is changed into `MyError`, Pluto crashes
end
MyName |> sizeof
Crash happens for Julia 1.11.5 and Pluto 0.20.6 I weren't able to test Julia 1.11.4 and Pluto 0.19.1 as they didn't work together. So it does not seem to be so easy to see which version introduced it and the problem exists for longer than I had experienced. But hopefully the test case is so simple, that regular debugging leads to the root cause. |
Thanks! It seems to be broken for all Julia + Pluto versions. I noticed that the crash happens only once you run a second cell that references |
Yes, that matches my observations. And that is probably the reason I initially thought it would have to do with a Julia/Pluto update. Probably I introduced some of these references around the same time I updated Julia/Pluto and I only observed the crashes the first time with the updated version, although the problem would have occurred independent of the update. |
With Julia 1.11.4 and Pluto v0.20.5 I think when one cell was using broken syntax, the other (independent) cells still worked.
With Julia 1.11.5 and Pluto v0.20.6 one broken cell seems to crash the Pluto process and therefore no cell works anymore.
This takes time because the document needs to be calculated from scratch.
I know this is not much, because I am in the middle of something, and therefore do not have a reproducer, but it seemed to happen when using undefined types in structs.
I hope I can complete the report when I have something to work with.
The text was updated successfully, but these errors were encountered: