@scrypted/server 0.7.41 → 0.7.43

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of @scrypted/server might be problematic. Click here for more details.

package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@scrypted/server",
3
- "version": "0.7.41",
3
+ "version": "0.7.43",
4
4
  "description": "",
5
5
  "dependencies": {
6
6
  "@mapbox/node-pre-gyp": "^1.0.10",
@@ -384,10 +384,9 @@ class PluginRemote:
384
384
  if platform.machine() == 'aarch64' and platform.architecture()[0] == '32bit':
385
385
  print('=============================================')
386
386
  print('Python machine vs architecture mismatch detected. Plugin installation may fail.')
387
- print('If Scrypted is running in docker, the docker version may be 32bit while the host kernel is 64bit.')
388
- print('This may be resolved by reinstalling a 64bit docker.')
389
- print('The docker architecture can be checked with the command: "file $(which docker)"')
390
- print('The host architecture can be checked with: "uname -m"')
387
+ print('This issue occurs if a 32bit system was upgraded to a 64bit kernel.')
388
+ print('Reverting to the 32bit kernel (or reflashing as native 64 bit is recommended.')
389
+ print('https://github.com/koush/scrypted/issues/678')
391
390
  print('=============================================')
392
391
 
393
392
  python_version = 'python%s' % str(
@@ -652,9 +651,7 @@ async def plugin_async_main(loop: AbstractEventLoop, rpcTransport: rpc_reader.Rp
652
651
  try:
653
652
  await readLoop()
654
653
  finally:
655
- if type(rpcTransport) == rpc_reader.RpcConnectionTransport:
656
- r: rpc_reader.RpcConnectionTransport = rpcTransport
657
- r.executor.shutdown()
654
+ os._exit(0)
658
655
 
659
656
  def main(rpcTransport: rpc_reader.RpcTransport):
660
657
  loop = asyncio.new_event_loop()
@@ -676,6 +673,9 @@ def plugin_main(rpcTransport: rpc_reader.RpcTransport):
676
673
  from gi.repository import GLib, Gst
677
674
  Gst.init(None)
678
675
 
676
+ # can't remember why starting the glib main loop is necessary.
677
+ # maybe gstreamer on linux and other things needed it?
678
+ # seems optional on other platforms.
679
679
  loop = GLib.MainLoop()
680
680
 
681
681
  worker = threading.Thread(target=main, args=(rpcTransport,), name="asyncio-main")