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

"ERROR Unable to convert SVG to PNG" on short groovy file #66

Open
alastair-drong-wd opened this issue Apr 2, 2024 · 0 comments
Open

Comments

@alastair-drong-wd
Copy link

Describe the bug
I was hoping for slightly improved syntax highlighting on a groovy file by specifying the language java. freeze exited with message ERROR Unable to convert SVG to PNG (exit code 1) when generating a PNG.

My experience is that one out of every 200 groovy files behaves this way.

user@shell$ freeze abapEnvironmentPushATCSystemConfig.groovy -l java -o /tmp/butts.png
thread '<unnamed>' panicked at 'capacity overflow', library/alloc/src/raw_vec.rs:524:5
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

   ERROR  Unable to convert SVG to PNG

  wasm error: unreachable
  wasm stack trace:
      .$831()
      .$327(i32,i32,i32,i32,i32)
      .$839(i32)
      .$838(i32)
      .$168(i32)
      .$131(i32,i32)
      .$65()
      .$47(i32,i32,i32)
      .$909(i32,i32,i32)
      .$98(i32,i32)
      .$97(i32,i32)
      .$1626(i32,i32)

To Reproduce
Steps to reproduce the behavior:

  1. git clone https://github.com/SAP/jenkins-library.git
  2. cd jenkins-library/vars
  3. freeze abapEnvironmentPushATCSystemConfig.groovy -l java -o /tmp/x.png
  4. See error

Expected behavior
An SVG can be created without issue and visually looks correct, so freeze should be able to generate a png without error.

Screenshots
n/a

Desktop (please complete the following information):

  • OS: macOS Sonoma 14.3
  • Browser n/a
  • Version (no --version flag was apparent for freeze)

Smartphone (please complete the following information):
n/a

Additional context
Add any other context about the problem here.

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