Open monfort314 opened 3 years ago
Hi @Olaa4 Thanks for the report.
Could you check if there is any error in the browser console when you run it. (This is how to open it: https://balsamiq.com/support/faqs/browserconsole/)
Hi @oeway ! Thanks for an immediate feedback! Yes, actually there is an error in the browser (Please see below). Strangely, anaconda console did not display any errors...
It looks like camera image buffer issue but I could not find any robust solution. Do you have any suggestions? I tried Chrome and Firefox browsers - I got the same error (In MS IE and MS Edge ImJoy plugin to fail to run) Thanks!
Traceback (most recent call last):
File "C:\Users\lab-nmsb\AppData\Roaming\Python\Python36\site-packages\imjoy_rpc\rpc.py", line 391, in _call_method
result = method(*args, **kwargs)
File "
(anonymous) @ index.js?v=20211029164638:148
Comm._callback @ comm.js:194
Comm.handle_msg @ comm.js:202
(anonymous) @ comm.js:132
Promise.then (async)
CommManager.comm_msg @ comm.js:131
i @ jquery.min.js:2
Kernel._handle_iopub_message @ kernel.js:1238
Kernel._finish_ws_message @ kernel.js:1017
(anonymous) @ kernel.js:1008
Promise.then (async)
Kernel._handle_ws_message @ kernel.js:1008
i @ jquery.min.js:2
rpc.js:557 Error: Traceback (most recent call last):
File "
at a._decode (rpc.js:768)
at a._decode (rpc.js:812)
at a._unwrap (rpc.js:844)
at rpc.js:260
at Connection._fire (index.js?v=20211029164638:76)
at index.js?v=20211029164638:153
at Comm._callback (comm.js:194)
at Comm.handle_msg (comm.js:202)
at comm.js:132
_encode @ rpc.js:557
_encode @ rpc.js:682
_wrap @ rpc.js:829
i @ rpc.js:893
Promise.catch (async)
(anonymous) @ rpc.js:220
async function (async)
(anonymous) @ rpc.js:202
_fire @ utils.js:863
(anonymous) @ connection.js:65
rpc.js:768 Uncaught (in promise) Error: Error: Traceback (most recent call last):
File "
at a._decode (rpc.js:768)
at a._decode (rpc.js:812)
at a._unwrap (rpc.js:844)
at rpc.js:260
at Connection._fire (utils.js:211)
at Connection.handleEvent (pluginIframe.js:73)
_decode @ rpc.js:768 _decode @ rpc.js:812 _unwrap @ rpc.js:844 (anonymous) @ rpc.js:260 _fire @ utils.js:211 handleEvent @ pluginIframe.js:73 async function (async) updateImage @ VM27:58 updateImage @ VM27:72 async function (async) updateImage @ VM27:58 toggleLive @ VM27:79 click @ VM28:3 t @ vue.min.js:6 Ir.t._withTask.i._withTask @ vue.min.js:6
Hi, thanks for the info.
Yes, it seems this is the cause of the issue: Exception: java.lang.Exception: Camera image buffer read failed.
.
And the error is from micro-manager itself, however, I have no idea how to address it.
I did a quick search and found this, maybe you can give it a try: https://github.com/LC-PolScope/LC-PolScope/issues/26#issuecomment-11933124
Otherwise, maybe you can ask in the micro-manager forum?
Hi, I'm trying the plugin for displaying the live image from https://pycro-manager.readthedocs.io/en/latest/application_notebooks/pycro_manager_imjoy_tutorial.html that uses https://gist.github.com/oeway/f59c1d1c49c94a831e5e21ba4c6111dd
Specifically, I'm trying to run the code below, but it seems that after pushing 'start live' the function get_image() is called only twice (I checked it with a global counter)
Many thanks,
`import time
import numpy as np from imjoy import api
from pycromanager import Bridge
class MyMicroscope: async def setup(self): bridge = Bridge() self._core = bridge.get_core() exposure = self._core.get_exposure() api.showMessage("MMcore loaded, exposure: " + str(exposure))
api.export(MyMicroscope())`