0.30.9: klayout fails with std::bad_alloc on bigger .oas file

Open
#2,379 3 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
45/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Quiet
Tech stack
cpp
Domain
desktop

Research direction

Compare loading the same hierarchical OAS file in KLayout 0.30.9 and 0.29.8, noting when the failure occurs and whether file size or hierarchy matters. The issue names no source files or tests, so first locate the OAS loading path and any relevant regression tests. Done means the larger file opens in 0.30.9 without std::bad_alloc.

Written by the indexing model from the issue text.

Description

question

I'm using Klayout 0.30.9-win64 (downloaded as binary from the downloadpage as zip-file.

When I'm loading one of our bigger layouts. I get after some time i get an error. std::bad_alloc.
The file I'm trying to open is about 202MB in size and contains some hierarchy.

This is a regression though. I can open this file (and even some bigger ones) with klayout-0.29.8 it opens without problems.

Dominant language
C++
Stars
1.2k
Forks
305
Avg merge
3d 2h
Merged PRs (30d)
11

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from KLayout/klayout

All issues in KLayout/klayout

Similar issues

More C++ issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.