You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I had the following error which I don't think is the same as the other issue. I ran against v1.0.1 and build directly from the main branch just to double check.
When trying to convert a large Vega struct to PDF/PNG/JPG the beam crashes because of a crash down at the JS level. I don't think the root cause of the issue is in this library, but since the error is bubbling up and crashing the beam rather than just throwing an error, I thought it was worth raising the issue here in case it can at least be caught and the BEAM not being taken down(I know, NIFs can bite sometimes)
Here's a stacktrace. Happy to help if there's other logs or info you need. This was on macOS 15.3. OTP 27.2. Elixir 1.18.2-otp-27. and vega_lite_convert v1.0.1 and main
The Vega struct in question was ~42MB(this is byte_size after running it through :erlang.term_to_binary/1), so certainly not an average sized one. Also the code I was running did work as expected when taking smaller slices of the spectrogram, so it's not an issue of passing in invalid input, I think it's purely a size thing that triggers it.
You bet. Here is a script that contains the exact struct that caused the crash. It's just the Vega struct serialized/compressed/b64 encoded, and the script just decodes the struct and runs it through VegaLite.Convert. Let me know if it works for you, as I imagine it could vary depending on whatever the JS runtime memory limit is. Though I don't believe I've ever manually adjusted mine(certainly not down if anything), so fingers crossed this crashes when you run it too(it's not too often I say that 😄).
@pejrich thanks, I could reproduced. I also managed to generate a very straightforward spec that OOMs given 1mln data points. I reported the issue upstream in vega/vl-convert#210.
I had the following error which I don't think is the same as the other issue. I ran against v1.0.1 and build directly from the main branch just to double check.
When trying to convert a large Vega struct to PDF/PNG/JPG the beam crashes because of a crash down at the JS level. I don't think the root cause of the issue is in this library, but since the error is bubbling up and crashing the beam rather than just throwing an error, I thought it was worth raising the issue here in case it can at least be caught and the BEAM not being taken down(I know, NIFs can bite sometimes)
Here's a stacktrace. Happy to help if there's other logs or info you need. This was on macOS 15.3. OTP 27.2. Elixir 1.18.2-otp-27. and vega_lite_convert v1.0.1 and main
The Vega struct in question was ~42MB(this is
byte_size
after running it through:erlang.term_to_binary/1
), so certainly not an average sized one. Also the code I was running did work as expected when taking smaller slices of the spectrogram, so it's not an issue of passing in invalid input, I think it's purely a size thing that triggers it.The text was updated successfully, but these errors were encountered: