Skip to content
This repository has been archived by the owner on Jun 6, 2024. It is now read-only.

Process freezed after exiting napari #3

Open
hermancollin opened this issue Feb 3, 2023 · 2 comments
Open

Process freezed after exiting napari #3

hermancollin opened this issue Feb 3, 2023 · 2 comments

Comments

@hermancollin
Copy link
Member

Maybe this is not specific to the plugin and more on the napari side, but I'll share anyway. When I exit napari, the terminal from which it was called stalls. I get this:

free(): invalid pointer

And that's all. I can't even KeyboardInterrupt the process it's just completely frozen and I have to kill it manually. Is this only on my side?

@Stoyan-I-A
Copy link
Member

Stoyan-I-A commented Feb 3, 2023

I don't have this error. That being said, here's a script that you can use in your IDE to launch napari from a python script:

import napari


def init_viewer():
    view = napari.Viewer()
    napari.run()
    return view


if __name__ == '__main__':
    viewer = init_viewer()

If you launch napari this way in debug mode for example, you should have a button on your IDE to kill the process.

@mathieuboudreau
Copy link
Member

@hermancollin do you get that error while running napari wihout the plugin? If so, maybe you should raise this issue on the napari project directly

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

No branches or pull requests

3 participants