runConcurrentThread function failed

Posted on
Wed Jul 03, 2013 1:20 am
nicb offline
User avatar
Posts: 70
Joined: Feb 17, 2008

runConcurrentThread function failed

I use Cynical SecuritySpy to put a camera in to active mode when the alarm is set and passive on unset. Recently it has been logging errors, though seems to still be setting the camera active/passive correctly.

Am using b10 and plugin 1.4.1.

Code: Select all
3 Jul 2013 07:54:43
  Trigger                         Alarm Set
  Cynical SecuritySpy Error       in runConcurrentThread: Traceback (most recent call last):
  File ".../Server Plugin/cyin/debugging.py", line 46, in diagnostic_log
    yield
  File ".../Server Plugin/cyin/debugging.py", line 56, in diagnose_call
    return method(*args, **kwargs)
  File ".../Server Plugin/cyin/asynplugin.py", line 51, in runConcurrentThread
    self.run()
  File ".../Server Plugin/asyn/inject.py", line 49, in run
    asyn.Controller.run(self)
  File ".../Server Plugin/asyn/controller.py", line 91, in run
    item._can_read()
  File ".../Server Plugin/asyn/selectable.py", line 208, in _can_read
    self._scan(input)
  File ".../Server Plugin/asyn/scan.py", line 51, in _scan
    self.callout(RAW, self._rbuf)
  File ".../Server Plugin/asyn/core.py", line 140, in callout
    results = [cb(ctx, *args) for cb in list(self._callbacks)]   # latch callback list
  File ".../Server Plugin/asyn/http.py", line 284, in incoming
    super(Request, self).incoming(ctx, *args)
  File ".../Server Plugin/asyn/selectable.py", line 364, in incoming
    self._scan(data)
  File ".../Server Plugin/asyn/scan.py", line 54, in _scan
    result = self.scan.scan(self._rbuf, self.callout)
  File ".../Server Plugin/asyn/scan.py", line 105, in scan
    callout(ctx, *m.groups())
  File ".../Server Plugin/asyn/core.py", line 140, in callout
    results = [cb(ctx, *args) for cb in list(self._callbacks)]   # latch callback list
  File ".../Server Plugin/spy/core.py", line 201, in reply
    self.cameras[cnum]._event_tap(ctx, *args[3:])
  File ".../Server Plugin/spy/core.py", line 314, in _event_tap
    self.callout(ctx, *args)
  File ".../Server Plugin/asyn/core.py", line 140, in callout
    results = [cb(ctx, *args) for cb in list(self._callbacks)]   # latch callback list
  File "plugin.py", line 161, in _event
    self.setup()   # pick up any changes
  File "plugin.py", line 139, in setup
    self.spy_camera.add_callout(self._event)
  File ".../Server Plugin/asyn/core.py", line 91, in add_callout
    self._callbacks.append(callee)
MemoryError

  Cynical SecuritySpy Error       plugin runConcurrentThread function returned or failed (will attempt again in 10 seconds)


The alarm unset trigger (turning camera passive) logs very similar events.

Any suggestions? Thanks.

Posted on
Sat Jul 13, 2013 1:59 am
Perry The Cynic offline
Posts: 838
Joined: Apr 07, 2008

Re: runConcurrentThread function failed

Your plugin is running out of memory. Check your boot disk and make sure it's not dangerously low on disk space. Try updating to the latest Indigo and plugin versions (1.4.2 at this writing). Restart things - first the plugin, then Indigo, then your Mac, in increasing order of inconvenience.

(The "memory" you're running out of is system-wide virtual memory; it's not just some plugin-specific resource. I'll take a look at the traceback to see if there's any sign of a memory-eating bug lurking.)

Cheers
-- perry

Posted on
Sat Jul 13, 2013 12:00 pm
nicb offline
User avatar
Posts: 70
Joined: Feb 17, 2008

Re: runConcurrentThread function failed

Perry, thanks.

Absolutely correct about the low VM/disk space. There was something that had witten 500Gb to /var/vm. And then the boot disk was full. A reboot cleared it and I have since updated to b10 and 1.4.2. There are loads of 'server' processes running on the machine, any one of which could be leaking memory, though it is usually a stable machine. I will monitor...

Many thanks,

Nic

Page 1 of 1

Who is online

Users browsing this forum: No registered users and 3 guests