When updating gf180mcu nfet parameter cells, Magic has a tendency to break (update not applied successfully, showing an error message, viewport rendering is broken). The issue is sporadic but deterministic and quickly occurs under normal working conditions.
To Reproduce
Its not very clear what exactly triggers this bug, and I think there are multiple bugs. If you fail to replicate using the steps below, try more combinations of copying cells and changing one of the older cells' properties. Doing this I can quickly get a crash with arbitrary steps. Simply changing the instance name seems to cause this sometimes.
Steps to reproduce the behavior:
- Start up a fresh container from
iic-osic-tools using ./iic-osic-tools/start_x.sh. (https://github.com/iic-jku/IIC-OSIC-TOOLS)
- Run
sak-pdk gf180mcuD
- Run
magic
- Click
Devices 1 > nMOS in the top menu.
- Leave everything default and click
Create & Close
- While this cell is still selected, press
c to copy it anywhere.
- With the new copied cell selected, press
ctrl+p to open properties. Change width to 1um. Press Okay
You now get a popup saying "Error" with nothing more. Clicking details gives:
while executing
"instance list exists $newinstname"
(procedure "magic::gencell_change" line 19)
invoked from within
"magic::gencell_change nfet_03v3_K2E6BN_1 nfet_03v3 gf180mcu {} "
invoked from within
".params.buttons.okay invoke"
("uplevel" body line 1)
invoked from within
"uplevel #0 [list $w invoke]"
(procedure "tk::ButtonUp" line 22)
invoked from within
"tk::ButtonUp .params.buttons.okay"
(command bound to event)
Pressing OK and cancelling, the main viewport rendering is broken: the main viewport is filled with black and can only be restored with a restart.
Expected Behavior
- I want it to be easy to try changes without effectively needing to restart the application.
- Errors in the gencell script are OK but should maybe be caught with an error message and not crash the application?
- There should ideally not be issues when just trying to change name / simple properties.
Additional Information
This has additionally been filed to iic-osic-tools (iic-jku/IIC-OSIC-TOOLS#310) but feels like it is a PDK/magic issue.
- OS: Linux (windowing: wayland & hyprland)
Magic log:
loading history file ... 5 events added
Use openwrapper to create a new GUI-based layout window
Use closewrapper to remove a new GUI-based layout window
Magic 8.3 revision 664 - Compiled on Mon Jun 15 08:31:32 AM CEST 2026.
Starting magic under Tcl interpreter
Using Tk console window
Using TrueColor, VisualID 0x40 depth 24
Processing system .magicrc file
Switching to WIRING tool.
Switching to NETLIST tool.
Switching to PICK tool.
Switching to BOX tool.
Sourcing design .magicrc for technology gf180mcuD ...
10 Magic internal units = 1 Lambda
Input style import: scaleFactor=10, multiplier=2
The following types are not handled by extraction and will be treated as non-electrical types:
obsactive mvobsactive filldiff fillpoly m1hole obsm1 fillm1 obsv1 m2hole obsm2 fillm2 obsv2 m3hole obsm3 fillm3 m4hole obsm4 fillm4 m5hole obsm5 fillm5 glass fillblock lvstext obscomment
Scaled tech values by 10 / 1 to match internal grid scaling
Loading gf180mcuD Device Generator Menu ...
New windows will not have a title caption.
New windows will not have scroll bars.
New windows will not have a border.
Repainting console in magic layout window colors
Using technology "gf180mcuD", version 1.0.599-0-gb344c97
Root cell box:
width x height ( llx, lly ), ( urx, ury ) area (units^2)
microns: 0.050 x 0.050 ( 0.000, 0.000), ( 0.050, 0.050) 0.002
lambda: 1.00 x 1.00 ( 0.00, 0.00 ), ( 1.00, 1.00 ) 1.00
internal: 10 x 10 ( 0, 0 ), ( 10, 10 ) 100
Main console display active (Tcl8.6.14 / Tk8.6.14)
Loading DRC CIF style.
When updating gf180mcu nfet parameter cells, Magic has a tendency to break (update not applied successfully, showing an error message, viewport rendering is broken). The issue is sporadic but deterministic and quickly occurs under normal working conditions.
To Reproduce
Its not very clear what exactly triggers this bug, and I think there are multiple bugs. If you fail to replicate using the steps below, try more combinations of copying cells and changing one of the older cells' properties. Doing this I can quickly get a crash with arbitrary steps. Simply changing the instance name seems to cause this sometimes.
Steps to reproduce the behavior:
iic-osic-toolsusing./iic-osic-tools/start_x.sh. (https://github.com/iic-jku/IIC-OSIC-TOOLS)sak-pdk gf180mcuDmagicDevices 1 > nMOSin the top menu.Create & Closecto copy it anywhere.ctrl+pto open properties. Change width to1um. PressOkayYou now get a popup saying "Error" with nothing more. Clicking
detailsgives:Pressing OK and cancelling, the main viewport rendering is broken: the main viewport is filled with black and can only be restored with a restart.
Expected Behavior
Additional Information
This has additionally been filed to iic-osic-tools (iic-jku/IIC-OSIC-TOOLS#310) but feels like it is a PDK/magic issue.
Magic log: