Skip to content

DRC Internal Error after Completion #1465

Closed

Description

@yrrapt

At the end of running a DRC script there is an error:

Total elapsed: 190.680s  Memory: 4192.00M
ERROR: RuntimeError: Internal error: ../../../src/db/db/dbLayout.cc:2035 m_layers.layer_state (n) != LayoutLayers::Free was not true in Layout::delete_layer in Executable::cleanup
  :/built-in-macros/_drc_source.rb:95:in `delete_layer'
  :/built-in-macros/_drc_source.rb:95:in `block in finish'
  :/built-in-macros/_drc_source.rb:94:in `each'
  :/built-in-macros/_drc_source.rb:94:in `finish'
  :/built-in-macros/_drc_engine.rb:2711:in `block in _flush'
  :/built-in-macros/_drc_engine.rb:2710:in `each'
  :/built-in-macros/_drc_engine.rb:2710:in `_flush'
  :/built-in-macros/_drc_engine.rb:2720:in `_finish'
  :/built-in-macros/drc_interpreters.lym:47:in `cleanup'

This is found version 28.11 but running the same DRC script on another computer with KLayout 28.6 does not have the error.

Thanks,
Thomas

Activity

  1. klayoutmatthias commented on Aug 24, 2023

    @klayoutmatthias
    Collaborator

    Hi Thomas,

    thanks for reporting that issue.

    I think I understand the execution path that leads to this issue, but I can't reproduce the error. I think it has to do with source manipulations ("clip", "cell", "select" etc.) and "extent" with a cell filter (i.e. "extent('*')").

    Can you confirm that?

    I can basically fix the problem on good luck, but I'd like to have a testcase to confirm it's solved.

    Matthias

  2. klayoutmatthias commented on Sep 2, 2023

    @klayoutmatthias
    Collaborator

    Commit 304800e may fix this issue. This change will go into the next minor version. Let's see if the problem persists.

  3. added this to the 0.28.12 milestone on Sep 5, 2023
  4. yrrapt commented on Sep 16, 2023

    @yrrapt
    Author

    Sorry for the delayed response, but I can now confirm that the issue is fixed with the latest release.
    Thank you!

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

Metadata

Metadata

Labels

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions