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

strm2oas issue incorrect offset table warnings #1031

Closed
stefanottili opened this issue Mar 14, 2022 · 1 comment
Closed

strm2oas issue incorrect offset table warnings #1031

stefanottili opened this issue Mar 14, 2022 · 1 comment
Assignees
Milestone

Comments

@stefanottili
Copy link

stefanottili commented Mar 14, 2022

test.oas has been attached gzipped because GitHub doesn't let me attach test.oas directly. Oasis files should never be gzipped. Especially the ones using strict_mode with the table offsets specified at the END. Use --cblocks if compression is needed. On this test case I didn't.

The cell test is empty.
klayout test.oas works without any warnings, strm2oas not so much.

strm2oas test.oas a.oas

Warning: CELLNAME offset table has unexpected strict mode (position=174, cell=)
Warning: TEXTSTRING offset table has unexpected strict mode (position=177, cell=)
Warning: PROPNAME offset table has unexpected strict mode (position=179, cell=)
Warning: LAYERNAME offset table has unexpected strict mode (position=184, cell=)

[0000013] START "1.0" 1000.0 1

[0000028] CELL 0

[0000030] PROPNAME_TABLE
[0000030] PROPNAME "S_CELL_OFFSET"
[0000045] PROPNAME "S_MAX_SIGNED_INTEGER_WIDTH"
[0000073] PROPNAME "S_MAX_UNSIGNED_INTEGER_WIDTH"
[0000103] PROPNAME "S_TOP_CELL"
[0000115] PROPNAME "S_BOUNDING_BOXES_AVAILABLE"
[0000143] PROPNAME "S_BOUNDING_BOX"

[0000159] CELLNAME_TABLE
[0000159] CELLNAME "test"
[0000165] PROPERTY 0x17 refnum 0 standard values 1 8 28

[0000170] TEXTSTRING_TABLE

[0000170] LAYERNAME_TABLE
[0000170] END 1 159 1 170 1 30 0 0 1 170 0 0 none

test.oas.gz

@klayoutmatthias
Copy link
Collaborator

Thanks for the testcase. The warning is kind of nonsense: the mode was "expect non-strict mode", but it should be "don't care" as in the application's reader.

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

No branches or pull requests

2 participants