It looks like you're new here. If you want to get involved, click one of these buttons!
Hi,
I am using in a Python script:
view.save_image('myimage.png' , 13460, 16040)
And get the following error message in a pop-up :
Signal number: 11
Address: 0x0
Program Version: KLayout 0.26 (2019-09-10 r4ec4025)
Backtrace:
/usr/lib64/klayout/libklayout_lay.so.0 +0x2d46d9 ?? [??:0]
/lib64/libpthread.so.0 +0xf7e0 __restore_rt [sigaction.c:0]
/usr/lib64/klayout/libklayout_laybasic.so.0 +0x261d70 ?? [??:0]
/usr/lib64/klayout/libklayout_laybasic.so.0 +0x3e11a8 ?? [??:0]
/usr/lib64/klayout/libklayout_laybasic.so.0 +0x34b6e2 ?? [??:0]
/usr/lib64/klayout/libklayout_laybasic.so.0 +0x34b9c6 ?? [??:0]
/usr/lib64/klayout/libklayout_laybasic.so.0 +0x37faad ?? [??:0]
/usr/lib64/klayout/libklayout_laybasic.so.0 +0x1e2a92 ?? [??:0]
/usr/lib64/klayout/libklayout_pya.so.0 +0x5882f ?? [??:0]
/usr/lib64/libpython2.6.so.1.0 +0xd59d4 ?? [??:0]
/usr/lib64/libpython2.6.so.1.0 +0xd7647 ?? [??:0]
/usr/lib64/libpython2.6.so.1.0 +0xd7722 ?? [??:0]
/usr/lib64/klayout/libklayout_pya.so.0 +0x30a42 ?? [??:0]
/usr/lib64/klayout/libklayout_lym.so.0 +0x335a0 ?? [??:0]
/usr/lib64/klayout/libklayout_lay.so.0 +0x106bb0 ?? [??:0]
klayout +0x2a14
/usr/lib64/klayout/libklayout_rba.so.0 +0x1d830
/usr/lib64/libruby.so.1.8 +0x3c765
/usr/lib64/libruby.so.1.8 +0x3cb87
/usr/lib64/libruby.so.1.8 +0x36b85
/usr/lib64/libruby.so.1.8 +0x49b3b
/usr/lib64/libruby.so.1.8 +0x49b85 ruby_exec
/usr/lib64/libruby.so.1.8 +0x49bb5 ruby_run
/usr/lib64/klayout/libklayout_rba.so.0 +0x1d7d7 _ZN3rba15RubyInterpreter10initializeERiPPcPFiS1_S3_E
klayout +0x23ab
klayout +0x25da
/lib64/libc.so.6 +0x1ed1d __libc_start_main
klayout +0x22d9
The error disappear when the picture become smaller (from some tests: around < 140000000 pixels)
I was going through the previous thread , it is a different issue but I could note the two points:
Has anybody a lead to where should I rather look to eventually get higher resolution pictures?
Comments
I'm wondering whether there is some "wall" where you can't get more plotted resolution, than your DBU times extent = max pixels?
Whether that's consistent with the "failure threshold" I have no idea, but if it was....
Hi Jim (I think :-) ),
The limitation isn't by KLayout but within the PNG library - I think it can't handle memory chunks bigger than 2G. If you're happy with monochrome, you can try the monochrome option in the "save_image_with_options" method:
But in general if you ask for high-quality images, a precise pixelisation method is required. The images produced by "save_image" are "visual quality" only - they don't care whether there is one pixel more or less.
Kind regards,
Matthias