Skip to content

OASIS reader or writer issue with degenerated shape arrays #68

Description

@klayoutmatthias

To reproduce the issue, load and save the attached layout in viewer mode. An error message occurs:

ERROR: Internal error: ../../../src/db/db/dbOASISWriter.cc:1833 amax >= 2 || bmax >= 2 was not true

The reason is the degenerated shape array which creates 7 overlapping rectangles. KLayout will optimize this but keep the shape array, which results in a single-shape array that can't be written to OASIS.

In scripts, a workaround is to use "oasis_recompress = true" on LoadLayoutOptions:

opt = RBA::LoadLayoutOptions::new
opt.oasis_recompress = true
opt.format = "OASIS"
layout.write("file.oas", opt)

x.oas.gz

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions