Forum

Author Topic: 1.7.3 [win10] Error in console and python interpreter dies until restart  (Read 599 times)

andyroo

  • Sr. Member
  • ****
  • Posts: 392
    • View Profile
I'm getting the error below periodically. The first time it happened I was doing two things at once (sorry don't remember - I think I ran code right after saving) and I thought maybe I did the one thing too soon after the other.

This time (2nd time, a day later) I was just doing standard stuff in the console. I don't think I did a full reboot after the last error. Will try that now.

When I got googly on the error the only stuff I saw that jumped out was folks fixing a similar error by upgrading ipykernel or downgrading tornado

Here's the log showing me triggering the error with a few commands prior.

Code: [Select]
In[29]: chunk
Out[29]: 2021-06-11 12:35:15 <Chunk 'Copy of Hatteras_Inlet_to_Ocracoke_Inlet_RuPaRe_x2_FloSup_4D_202008-202104'>

In[30]: group_label = chunk.camera_groups[0].label

In[31]: group_label
2021-06-11 12:35:48 ERROR:tornado.general:Uncaught exception in ZMQStream callback
2021-06-11 12:35:48 Traceback (most recent call last):
2021-06-11 12:35:48   File "C:\Program Files\Agisoft\Metashape Pro\python\lib\site-packages\zmq\eventloop\zmqstream.py", line 438, in _run_callback
2021-06-11 12:35:48     callback(*args, **kwargs)
2021-06-11 12:35:48   File "C:\Program Files\Agisoft\Metashape Pro\python\lib\site-packages\ipykernel\iostream.py", line 120, in _handle_event
2021-06-11 12:35:48     event_f()
2021-06-11 12:35:48   File "C:\Program Files\Agisoft\Metashape Pro\python\lib\site-packages\ipykernel\iostream.py", line 214, in <lambda>
2021-06-11 12:35:48     self.schedule(lambda : self._really_send(*args, **kwargs))
2021-06-11 12:35:48   File "C:\Program Files\Agisoft\Metashape Pro\python\lib\site-packages\ipykernel\iostream.py", line 222, in _really_send
2021-06-11 12:35:48     self.socket.send_multipart(msg, *args, **kwargs)
2021-06-11 12:35:48   File "C:\Program Files\Agisoft\Metashape Pro\python\lib\site-packages\ipykernel\inprocess\socket.py", line 62, in send_multipart
2021-06-11 12:35:48     self.message_sent += 1
2021-06-11 12:35:48   File "C:\Program Files\Agisoft\Metashape Pro\python\lib\site-packages\traitlets\traitlets.py", line 585, in __set__
2021-06-11 12:35:48     self.set(obj, value)
2021-06-11 12:35:48   File "C:\Program Files\Agisoft\Metashape Pro\python\lib\site-packages\traitlets\traitlets.py", line 574, in set
2021-06-11 12:35:48     obj._notify_trait(self.name, old_value, new_value)
2021-06-11 12:35:48   File "C:\Program Files\Agisoft\Metashape Pro\python\lib\site-packages\traitlets\traitlets.py", line 1134, in _notify_trait
2021-06-11 12:35:48     self.notify_change(Bunch(
2021-06-11 12:35:48   File "C:\Program Files\Agisoft\Metashape Pro\python\lib\site-packages\traitlets\traitlets.py", line 1176, in notify_change
2021-06-11 12:35:48     c(change)
2021-06-11 12:35:48   File "C:\Program Files\Agisoft\Metashape Pro\python\lib\site-packages\ipykernel\inprocess\ipkernel.py", line 130, in _io_dispatch
2021-06-11 12:35:48     ident, msg = self.session.recv(self.iopub_socket, copy=False)
2021-06-11 12:35:48   File "C:\Program Files\Agisoft\Metashape Pro\python\lib\site-packages\jupyter_client\session.py", line 814, in recv
2021-06-11 12:35:48     msg_list = socket.recv_multipart(mode, copy=copy)
2021-06-11 12:35:48   File "C:\Program Files\Agisoft\Metashape Pro\python\lib\site-packages\ipykernel\iostream.py", line 246, in __getattr__
2021-06-11 12:35:48     warnings.warn("Accessing zmq Socket attribute %s on BackgroundSocket" % attr,
2021-06-11 12:35:48 DeprecationWarning: Accessing zmq Socket attribute recv_multipart on BackgroundSocket
2021-06-11 12:35:48 ERROR:tornado.general:Uncaught exception in zmqstream callback
2021-06-11 12:35:48 Traceback (most recent call last):
2021-06-11 12:35:48   File "C:\Program Files\Agisoft\Metashape Pro\python\lib\site-packages\zmq\eventloop\zmqstream.py", line 456, in _handle_events
2021-06-11 12:35:48     self._handle_recv()
2021-06-11 12:35:48   File "C:\Program Files\Agisoft\Metashape Pro\python\lib\site-packages\zmq\eventloop\zmqstream.py", line 486, in _handle_recv
2021-06-11 12:35:48     self._run_callback(callback, msg)
2021-06-11 12:35:48   File "C:\Program Files\Agisoft\Metashape Pro\python\lib\site-packages\zmq\eventloop\zmqstream.py", line 438, in _run_callback
2021-06-11 12:35:48     callback(*args, **kwargs)
2021-06-11 12:35:48   File "C:\Program Files\Agisoft\Metashape Pro\python\lib\site-packages\ipykernel\iostream.py", line 120, in _handle_event
2021-06-11 12:35:48     event_f()
2021-06-11 12:35:48   File "C:\Program Files\Agisoft\Metashape Pro\python\lib\site-packages\ipykernel\iostream.py", line 214, in <lambda>
2021-06-11 12:35:48     self.schedule(lambda : self._really_send(*args, **kwargs))
2021-06-11 12:35:48   File "C:\Program Files\Agisoft\Metashape Pro\python\lib\site-packages\ipykernel\iostream.py", line 222, in _really_send
2021-06-11 12:35:48     self.socket.send_multipart(msg, *args, **kwargs)
2021-06-11 12:35:48   File "C:\Program Files\Agisoft\Metashape Pro\python\lib\site-packages\ipykernel\inprocess\socket.py", line 62, in send_multipart
2021-06-11 12:35:48     self.message_sent += 1
2021-06-11 12:35:48   File "C:\Program Files\Agisoft\Metashape Pro\python\lib\site-packages\traitlets\traitlets.py", line 585, in __set__
2021-06-11 12:35:48     self.set(obj, value)
2021-06-11 12:35:48   File "C:\Program Files\Agisoft\Metashape Pro\python\lib\site-packages\traitlets\traitlets.py", line 574, in set
2021-06-11 12:35:48     obj._notify_trait(self.name, old_value, new_value)
2021-06-11 12:35:48   File "C:\Program Files\Agisoft\Metashape Pro\python\lib\site-packages\traitlets\traitlets.py", line 1134, in _notify_trait
2021-06-11 12:35:48     self.notify_change(Bunch(
2021-06-11 12:35:48   File "C:\Program Files\Agisoft\Metashape Pro\python\lib\site-packages\traitlets\traitlets.py", line 1176, in notify_change
2021-06-11 12:35:48     c(change)
2021-06-11 12:35:48   File "C:\Program Files\Agisoft\Metashape Pro\python\lib\site-packages\ipykernel\inprocess\ipkernel.py", line 130, in _io_dispatch
2021-06-11 12:35:48     ident, msg = self.session.recv(self.iopub_socket, copy=False)
2021-06-11 12:35:48   File "C:\Program Files\Agisoft\Metashape Pro\python\lib\site-packages\jupyter_client\session.py", line 814, in recv
2021-06-11 12:35:48     msg_list = socket.recv_multipart(mode, copy=copy)
2021-06-11 12:35:48   File "C:\Program Files\Agisoft\Metashape Pro\python\lib\site-packages\ipykernel\iostream.py", line 246, in __getattr__
2021-06-11 12:35:48     warnings.warn("Accessing zmq Socket attribute %s on BackgroundSocket" % attr,
2021-06-11 12:35:48 DeprecationWarning: Accessing zmq Socket attribute recv_multipart on BackgroundSocket
2021-06-11 12:35:48 ERROR:asyncio:Exception in callback BaseAsyncIOLoop._handle_events(2028, 1)
2021-06-11 12:35:48 handle: <Handle BaseAsyncIOLoop._handle_events(2028, 1)>
2021-06-11 12:35:48 Traceback (most recent call last):
2021-06-11 12:35:48   File "C:\Program Files\Agisoft\Metashape Pro\python\lib\asyncio\events.py", line 81, in _run
2021-06-11 12:35:48     self._context.run(self._callback, *self._args)
2021-06-11 12:35:48   File "C:\Program Files\Agisoft\Metashape Pro\python\lib\site-packages\tornado\platform\asyncio.py", line 139, in _handle_events
2021-06-11 12:35:48     handler_func(fileobj, events)
2021-06-11 12:35:48   File "C:\Program Files\Agisoft\Metashape Pro\python\lib\site-packages\zmq\eventloop\zmqstream.py", line 456, in _handle_events
2021-06-11 12:35:48     self._handle_recv()
2021-06-11 12:35:48   File "C:\Program Files\Agisoft\Metashape Pro\python\lib\site-packages\zmq\eventloop\zmqstream.py", line 486, in _handle_recv
2021-06-11 12:35:48     self._run_callback(callback, msg)
2021-06-11 12:35:48   File "C:\Program Files\Agisoft\Metashape Pro\python\lib\site-packages\zmq\eventloop\zmqstream.py", line 438, in _run_callback
2021-06-11 12:35:48     callback(*args, **kwargs)
2021-06-11 12:35:48   File "C:\Program Files\Agisoft\Metashape Pro\python\lib\site-packages\ipykernel\iostream.py", line 120, in _handle_event
2021-06-11 12:35:48     event_f()
2021-06-11 12:35:48   File "C:\Program Files\Agisoft\Metashape Pro\python\lib\site-packages\ipykernel\iostream.py", line 214, in <lambda>
2021-06-11 12:35:48     self.schedule(lambda : self._really_send(*args, **kwargs))
2021-06-11 12:35:48   File "C:\Program Files\Agisoft\Metashape Pro\python\lib\site-packages\ipykernel\iostream.py", line 222, in _really_send
2021-06-11 12:35:48     self.socket.send_multipart(msg, *args, **kwargs)
2021-06-11 12:35:48   File "C:\Program Files\Agisoft\Metashape Pro\python\lib\site-packages\ipykernel\inprocess\socket.py", line 62, in send_multipart
2021-06-11 12:35:48     self.message_sent += 1
2021-06-11 12:35:48   File "C:\Program Files\Agisoft\Metashape Pro\python\lib\site-packages\traitlets\traitlets.py", line 585, in __set__
2021-06-11 12:35:48     self.set(obj, value)
2021-06-11 12:35:48   File "C:\Program Files\Agisoft\Metashape Pro\python\lib\site-packages\traitlets\traitlets.py", line 574, in set
2021-06-11 12:35:48     obj._notify_trait(self.name, old_value, new_value)
2021-06-11 12:35:48   File "C:\Program Files\Agisoft\Metashape Pro\python\lib\site-packages\traitlets\traitlets.py", line 1134, in _notify_trait
2021-06-11 12:35:48     self.notify_change(Bunch(
2021-06-11 12:35:48   File "C:\Program Files\Agisoft\Metashape Pro\python\lib\site-packages\traitlets\traitlets.py", line 1176, in notify_change
2021-06-11 12:35:48     c(change)
2021-06-11 12:35:48   File "C:\Program Files\Agisoft\Metashape Pro\python\lib\site-packages\ipykernel\inprocess\ipkernel.py", line 130, in _io_dispatch
2021-06-11 12:35:48     ident, msg = self.session.recv(self.iopub_socket, copy=False)
2021-06-11 12:35:48   File "C:\Program Files\Agisoft\Metashape Pro\python\lib\site-packages\jupyter_client\session.py", line 814, in recv
2021-06-11 12:35:48     msg_list = socket.recv_multipart(mode, copy=copy)
2021-06-11 12:35:48   File "C:\Program Files\Agisoft\Metashape Pro\python\lib\site-packages\ipykernel\iostream.py", line 246, in __getattr__
2021-06-11 12:35:48     warnings.warn("Accessing zmq Socket attribute %s on BackgroundSocket" % attr,
2021-06-11 12:35:48 DeprecationWarning: Accessing zmq Socket attribute recv_multipart on BackgroundSocket

after that the interpreter dies, and there's like a 30 second unresponsive spinning wheel after each command but no output:

Code: [Select]
In [32]: chunk

In [33]: Metashape.app.document

In [34]: print('oh no!')

In [35]:

[edit] after I closed metashape, the attached window hung around for a minute or two with the message:

IOStream.flush timed out

repeating a dozen times or so.
« Last Edit: June 11, 2021, 11:07:26 PM by andyroo »