question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

response from the image window to kernel is not getting passed

See original GitHub issue

here is a simple part of code … to display a image and then closing it off on pressing the esc or ‘q’

import cv2
img=cv2.imread('/<imagelocation>')
cv2.imshow('image',img)
k=cv2/waitKey(0)
if k == 27 or ord('q'):
     cv2.destroyAllWindows()

now the image is shown properly but on pressing ‘q’ or esc , it hangs and then you have to force quit the image , and immediately notebook detects this failure and restart the kernel

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:14 (6 by maintainers)

github_iconTop GitHub Comments

2reactions
vishal0021commented, May 19, 2018

hey have any one resolved this issue, coz i have same problem. Here is my code.

import cv2 import numpy as np import matplotlib.pyplot as plt 0 img = cv2.imread(‘index.jpeg’,cv2.IMREAD_GRAYSCALE) cv2.imshow(‘image’,img) cv2.waitKey(0) cv2.destroyAllwindows() i am running python3 on ubuntu 16.04, when i run this code the image window and consol gets hanged, non responsive, i have tried different consoles to run the code like ipython, spyder, jupyter notebook, ubuntu terminal same error every time

1reaction
Carreaucommented, Jan 9, 2017

Pardon me for the blank error messages in the previous post First Error: Hello World: Fatal IO error 11 (Resource temporarily unavailable) on X server :0

Second error: Hello World: Fatal IO error 11 (Resource temporarily unavailable) on X server :0

Just don’t write your message on the first line after the triple quote, it is ment for the language highlighting

```language-here,like python, javascript
content here
```

You can edit your comment if you made a mistake. I fixed it for you.

Read more comments on GitHub >

github_iconTop Results From Across the Web

cv2.imshow() crashes Kernel - python - Stack Overflow
I am running OpenCV through Jupyter Notebooks and whenever I try to run cv2.imshow() the kernel crashes, no ...
Read more >
The operating could not be loaded, the kernel is missing or ...
After downloaded x64 ISO to desktop, I used Rufus 2.2 apps to convert ISO to USB drive (8GB) and then; make USB drive...
Read more >
The kernel's command-line parameters
The kernel parses parameters from the kernel command line up to “–”; if it doesn't recognize a parameter and it doesn't contain a...
Read more >
Image Processing with Python - Data Carpentry
What sort of scientific questions can we answer with image processing ... they are not necessarily created, stored, or transmitted in that format....
Read more >
Kernel Died error post installing tensorflow - Apple Developer
Please help me fix this issue and understand why its not getting fixed. At the moment, I can only think of trading Macbook...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found