Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ErrorInitialize: Only one instance of ErrorClass is supported #35

Open
fushichenmu opened this issue Apr 9, 2020 · 2 comments
Open

Comments

@fushichenmu
Copy link

I found an issue that the console shows me
fatal:["Error.c":406]:ErrorInitialize: Only one instance of ErrorClass is supported
fatal:Unable to initialize layer-Can't Create
fatal:Error Creating ErrorClass object
fatal:Unable to initialize layer-Can't Create
fatal:Unable to initialize layer-Can't Create
fatal:_NhlCreate:Unable to access "default" App object

when I repeated call pyngl to draw pictrue.

I would identify that I had closed workstation object and any other objects involved with pyngl.

how can I fix this problem?

@olislae
Copy link

olislae commented May 5, 2020

I met this error too! Each time I need to draw pictures I need to change a new console...Have you solved this error?

@benjaminmenetrier
Copy link

I had the same issue in a python script where I call two different functions successively, each one plotting a figure. In the first function, I had the following call at the end:

   Ngl.end()

which made the second function crashing. Now that I've removed it, everything is fine.

Maybe you can try to keep this call at the very end of your python script?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants