• Skip to main content
  • Skip to search
  • Skip to footer
Cadence Home
  • This search text may be transcribed, used, stored, or accessed by our third-party service providers per our Cookie Policy and Privacy Policy.

  1. Community Forums
  2. Custom IC SKILL
  3. *Error* _hiExportImage: Unable to allocate image of size...

Stats

  • Locked Locked
  • Replies 8
  • Subscribers 143
  • Views 2240
  • Members are here 0
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

*Error* _hiExportImage: Unable to allocate image of size (1010851,1621501)

denkol01
denkol01 over 14 years ago

Hi,

I was trying to export layout view into a .bnp file using skill function :

 

Lib="TEST_lib"

cellname="TEST_CELL"


wi=geOpen( ?lib Lib ?cell cellname ?view "layout" ?viewType "maskLayout" ?mode "r")

hiExportImage(?fileName cellname)

but it is flagging following error while executing the command in a stretch.

*Error* _hiExportImage: Unable to allocate image of size (1010851,1621501) 

Its working fine when loading line by line.

Can any one please help?

 

  • Cancel
  • Andrew Beckett
    Andrew Beckett over 14 years ago

    I'm not sure what you mean by "executing the command in a stretch"? Anyway, I found one report of something similar, CCR 850049. I would suggest that you log a service request with customer support, with the details of how to reproduce it (reference this CCR number) so this can get into R&D.

    Regards,

    Andrew.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • denkol01
    denkol01 over 14 years ago

    Hi Andrew,

    "executing the command in a stretch" means I copied and pasted the whole code into ciw window.

    I will file a service request.

    Regards

    Denil

     

     

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Andrew Beckett
    Andrew Beckett over 14 years ago

    Hi Denil,

    I reproduced your problem in IC614; it doesn't appear to happen in IC615 though.

    If you're just looking at a way of automating generation of the image, this will work (uses your Lib and cellname variables):

    wid=hiCreateWindow(list(0:0 800:800) "none" "Export Window")
    wid~>neverCurrentWindow=t
    deOpenCellView(Lib cellname "layout" "maskLayout" wid "r")
    hiExportImage(?fileName cellname ?window wid)
    hiCloseWindow(wid)

    The window is never displayed on the screen in this case, so no flashing to the user - so that might be useful?

    Regards,

    Andrew.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • denkol01
    denkol01 over 14 years ago

    Hi,

    Thank you so much.My main aim was do the same .And it worked fine.

    I have raised a Service Request [#42421378] for the warning which I got.

    Regards

    denil

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • acook
    acook over 12 years ago

    I encountered the same error when I used the method in soultion 11617718.

    I'm running IC615

    Thankfully your suggestion cleaned things up. The neverCurrentWindow was a nice touch!

    Might I recommend to update that solution with this code?

    Regards,

    Aaron

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Andrew Beckett
    Andrew Beckett over 12 years ago

    Aaron,

    There's already a link at the bottom of that solution to another solution which uses hiGenerateThumbnails - which is probably an even easier way of doing it...

    Kind Regards,

    Andrew.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • acook
    acook over 12 years ago

    Andrew,

    I actually found that hiGenerateThumbnails did a poor job generating layout images. It would show the layout with just outlines of the block not that actual block itself (I'm not sure if it's standard but the same as if I hit the '0' key). What I was looking for was exactly what I see when I open a layout.

    Maybe there is an option you can pass to it to stop what I mention?

    -Aaron

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Andrew Beckett
    Andrew Beckett over 12 years ago

    Hi Aaron,

    envSetVal("ui.thumbnails" "stopLevel" 'int 32)

    The default is -1, which means to use the default stopLevel (which is what it would have been if  you'd opened the layout in a window yourself; i.e. the stopLevel stored in the cellView, or in the library, or on the tech lib, or in the cdsenv - in that order) - but if you specify it as above, it will override the stopLevel for the duration of the thumbnail creation.

    This was implemented in IC615 ISR11 (6.1.5.500.11).

    Regards,

    Andrew.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel

Community Guidelines

The Cadence Design Communities support Cadence users and technologists interacting to exchange ideas, news, technical information, and best practices to solve problems and get the most from Cadence technology. The community is open to everyone, and to provide the most value, we require participants to follow our Community Guidelines that facilitate a quality exchange of ideas and information. By accessing, contributing, using or downloading any materials from the site, you agree to be bound by the full Community Guidelines.

© 2025 Cadence Design Systems, Inc. All Rights Reserved.

  • Terms of Use
  • Privacy
  • Cookie Policy
  • US Trademarks
  • Do Not Sell or Share My Personal Information