sys-bio / SBMLNetwork

SBMLNetwork is a library designed to enable software developers and systems biologists to interact with the graphical representation of SBML (Systems Biology Markup Language) models.
MIT License
0 stars 0 forks source link

OSError: exception: access violation writing when creating AliasReactionGlyph #10

Open dalbabur opened 1 week ago

dalbabur commented 1 week ago

sbmlnetwork 0.4.0, Windows

---------------------------------------------------------------------------
OSError                                   Traceback (most recent call last)
[~\AppData\Local\Temp\ipykernel_8040\115540302.py](https://file+.vscode-resource.vscode-cdn.net/c%3A/Users/Diego%20Alba/Documents/GitHub/ECFERS/~/AppData/Local/Temp/ipykernel_8040/115540302.py) in ?()
     16         print(spec)
     17         print(M0.getNumSpeciesGlyphs(spec))
     18 
     19         if matching_keys:
     20             for key_index, key in enumerate(matching_keys):
     21                 if (key_index > 0) and (entry not in rxn_entry_glyph):
 -->22                       M0.createAliasReactionGlyph(rxn_label)

[c:\Users\Diego](file:///C:/Users/Diego) Alba\.conda\envs\ODBM2\lib\site-packages\libsbmlnetwork\libsbmlnetwork.py in ?(self, reaction_id, layout_index)
    451         :Returns:
    452 
    453             true on success and false if the alias ReactionGlyph could not be created
    454         """
--> 455         return lib.c_api_createAliasReactionGlyph(self.sbml_object, str(reaction_id).encode(), layout_index)

OSError: exception: access violation writing 0x000001BFE94F66C0
adelhpour commented 1 week ago

@dalbabur Thanks for reporting this! Could you share the script or steps you used to reproduce the error?