Skip to content

Panic on pillar/zero table (typst 0.14-rc.1) #7094

@bluss

Description

@bluss

Description

Typst version: 0.14-rc.1 (linux musl release artifact binary)

The following document (reduced to this, but not reduced internally to pillar) caused a crash when testing it with the release candidate:

#import "@preview/pillar:0.3.3"
#pillar.table(cols: "C", [])

Behaviour: panic.
(Expected behaviour: compile successfully like Typst 0.13.1)

thread 'main' panicked at crates/typst-pdf/src/tags/context/table.rs:287:45:
index out of bounds: the len is 0 but the index is 0
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

thread 'main' panicked at /home/runner/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/krilla-0.5.0/s
rc/surface.rs:586:9:
assertion failed: !root_builder.active_marked_content
stack backtrace:
   0:     0x716792f587e3 - <unknown>
   1:     0x71679286a4a3 - <unknown>
   2:     0x716792f54373 - <unknown>
   3:     0x716792f58642 - <unknown>
   4:     0x716792f5b42c - <unknown>
   5:     0x716792f5afcc - <unknown>
   6:     0x716792f5bb62 - <unknown>
   7:     0x716792f5b8f6 - <unknown>
   8:     0x716792f58cb9 - <unknown>
   9:     0x716792f5b5dd - <unknown>
  10:     0x7167926553f0 - <unknown>
  11:     0x71679265547c - <unknown>
  12:     0x716792c3ae58 - <unknown>
  13:     0x716793839a8e - <unknown>
  14:     0x71679388456f - <unknown>
  15:     0x71679319d04f - <unknown>
  16:     0x71679317105d - <unknown>
  17:     0x7167931709b3 - <unknown>
  18:     0x7167930dbf83 - <unknown>
  19:     0x7167930d8be9 - <unknown>
  20:     0x716792f4b721 - <unknown>
  21:     0x7167931a0325 - <unknown>

thread 'main' panicked at library/core/src/panicking.rs:233:5:
panic in a destructor during cleanup
thread caused non-unwinding panic. aborting.

Reproduction URL

No response

Operating system

Linux

Typst version

  • I am using the latest version of Typst

Alternate reproduction - directly package zero

#import "@preview/zero:0.5.0": ztable
#ztable(format: (auto, ), [A])

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingcrashThe Typst compiler crashes for some inputurgentShould be fixed before the next release.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions