its seems that scripts that used 'import logging' got stuck doing nothing
import logging
logging.info('hello')
does nothing, it just keeps running without printing anything...
yes im not using the system.util.getLogger(), but this logging libary was standard in pylib, how can this get suck doing nothing?
they were running 8h, i saw scripts running for 8h's. , we have used this libary a ton before and ive never seen this happen
Edit:
i found another log, seems that getting stuck my also have been caused by out of memmory... but what is causing the out of memmory than.
So many things suddanly failing without an code changes... i guess it really is just a memmory issue then? Or the pc is broken
com.inductiveautomation.ignition.common.script.JythonExecException: Traceback (most recent call last): File "", line 8, in File "", line 8, in File "C:\Program Files\Inductive Automation\Ignition\user-lib\pylib\xxx.py", line 213, in synchronizeVision logger.info("done sync vision") File "C:\Program Files\Inductive Automation\Ignition\user-lib\pylib\logging\__init__.py", line 1151, in info self._log(INFO, msg, args, **kwargs) File "C:\Program Files\Inductive Automation\Ignition\user-lib\pylib\logging\__init__.py", line 1270, in _log self.handle(record) File "C:\Program Files\Inductive Automation\Ignition\user-lib\pylib\logging\__init__.py", line 1280, in handle self.callHandlers(record) File "C:\Program Files\Inductive Automation\Ignition\user-lib\pylib\logging\__init__.py", line 1320, in callHandlers hdlr.handle(record) File "user-lib\pylib\warnings.py", line 233, in warn warn_explicit(message, category, filename, lineno, module, registry, File "user-lib\pylib\warnings.py", line 272, in warn_explicit linecache.getlines(filename, module_globals) File "user-lib\pylib\linecache.py", line 40, in getlines return updatecache(filename, module_globals) File "user-lib\pylib\linecache.py", line 80, in updatecache stat = os.stat(fullname) File "user-lib\pylib\linecache.py", line 80, in updatecache stat = os.stat(fullname) java.lang.OutOfMemoryError: Java heap space java.lang.OutOfMemoryError: java.lang.OutOfMemoryError: Java heap space
at org.python.core.Py.JavaError(Py.java:547)
at org.python.core.Py.setException(Py.java:1617)
at linecache$py.updatecache$5(user-lib/pylib/linecache.py:135)
at linecache$py.call_function(user-lib/pylib/linecache.py)
at org.python.core.PyTableCode.call(PyTableCode.java:173)
at org.python.core.PyBaseCode.call(PyBaseCode.java:150)
at org.python.core.PyFunction.__call__(PyFunction.java:426)
at linecache$py.getlines$3(user-lib/pylib/linecache.py:40)
at linecache$py.call_function(user-lib/pylib/linecache.py)
at org.python.core.PyTableCode.call(PyTableCode.java:173)
at org.python.core.PyBaseCode.call(PyBaseCode.java:150)
at org.python.core.PyFunction.__call__(PyFunction.java:426)
at warnings$py.warn_explicit$18(user-lib/pylib/warnings.py:301)
at warnings$py.call_function(user-lib/pylib/warnings.py)
at org.python.core.PyTableCode.call(PyTableCode.java:173)
at org.python.core.PyBaseCode.call(PyBaseCode.java:306)
at org.python.core.PyFunction.function___call__(PyFunction.java:474)
at org.python.core.PyFunction.__call__(PyFunction.java:469)
at org.python.core.PyFunction.__call__(PyFunction.java:459)
at warnings$py.warn$17(user-lib/pylib/warnings.py:233)
at warnings$py.call_function(user-lib/pylib/warnings.py)
at org.python.core.PyTableCode.call(PyTableCode.java:173)
at org.python.core.PyBaseCode.call(PyBaseCode.java:168)
at org.python.core.PyFunction.__call__(PyFunction.java:437)
at org.python.core.PyFunction.__call__(PyFunction.java:431)
at org.python.core.Py.warning(Py.java:507)
at org.python.core.Py.warning(Py.java:494)
at org.python.core.PyTableCode.call(PyTableCode.java:177)
at org.python.core.PyBaseCode.call(PyBaseCode.java:150)
at org.python.core.PyFunction.__call__(PyFunction.java:426)
at org.python.core.PyMethod.__call__(PyMethod.java:141)
at logging$py.callHandlers$85(C:/Program Files/Inductive Automation/Ignition/user-lib/pylib/logging/__init__.py:1328)
at logging$py.call_function(C:/Program Files/Inductive Automation/Ignition/user-lib/pylib/logging/__init__.py)
at org.python.core.PyTableCode.call(PyTableCode.java:173)
at org.python.core.PyBaseCode.call(PyBaseCode.java:150)
at org.python.core.PyFunction.__call__(PyFunction.java:426)
at org.python.core.PyMethod.__call__(PyMethod.java:141)
at logging$py.handle$82(C:/Program Files/Inductive Automation/Ignition/user-lib/pylib/logging/__init__.py:1280)
at logging$py.call_function(C:/Program Files/Inductive Automation/Ignition/user-lib/pylib/logging/__init__.py)
at org.python.core.PyTableCode.call(PyTableCode.java:173)
at org.python.core.PyBaseCode.call(PyBaseCode.java:150)
at org.python.core.PyFunction.__call__(PyFunction.java:426)
at org.python.core.PyMethod.__call__(PyMethod.java:141)
at logging$py._log$81(C:/Program Files/Inductive Automation/Ignition/user-lib/pylib/logging/__init__.py:1270)
at logging$py.call_function(C:/Program Files/Inductive Automation/Ignition/user-lib/pylib/logging/__init__.py)
at org.python.core.PyTableCode.call(PyTableCode.java:173)
at org.python.core.PyBaseCode.call(PyBaseCode.java:306)
at org.python.core.PyBaseCode.call(PyBaseCode.java:197)
at org.python.core.PyFunction.__call__(PyFunction.java:485)
at org.python.core.PyMethod.instancemethod___call__(PyMethod.java:237)
at org.python.core.PyMethod.__call__(PyMethod.java:228)
at org.python.core.PyMethod.__call__(PyMethod.java:223)
at org.python.core.PyObject._callextra(PyObject.java:589)
at logging$py.info$73(C:/Program Files/Inductive Automation/Ignition/user-lib/pylib/logging/__init__.py:1151)
at logging$py.call_function(C:/Program Files/Inductive Automation/Ignition/user-lib/pylib/logging/__init__.py)
at org.python.core.PyTableCode.call(PyTableCode.java:173)
at org.python.core.PyBaseCode.call(PyBaseCode.java:306)
at org.python.core.PyBaseCode.call(PyBaseCode.java:141)
at org.python.core.PyFunction.__call__(PyFunction.java:426)
at org.python.core.PyMethod.__call__(PyMethod.java:141)
at xxx$py.synchronizeVision$2(C:/Program Files/Inductive Automation/Ignition/user-lib/pylib/xxx.py:213)
at xxx$py.call_function(C:/Program Files/Inductive Automation/Ignition/user-lib/pylib/xxxpy)
at org.python.core.PyTableCode.call(PyTableCode.java:173)
at org.python.core.PyBaseCode.call(PyBaseCode.java:150)
at org.python.core.PyFunction.__call__(PyFunction.java:426)
at org.python.pycode._pyx65.f$0(:19)
at org.python.pycode._pyx65.call_function()
at org.python.core.PyTableCode.call(PyTableCode.java:173)
at org.python.core.PyCode.call(PyCode.java:18)
at org.python.core.Py.runCode(Py.java:1687)
at com.inductiveautomation.ignition.common.script.ScriptManager.runCode(ScriptManager.java:796)
at com.inductiveautomation.ignition.gateway.project.ProjectScriptLifecycle$TrackingProjectScriptManager.runCode(ProjectScriptLifecycle.java:819)
at com.inductiveautomation.ignition.common.script.ScriptManager.runCode(ScriptManager.java:748)
at com.inductiveautomation.ignition.gateway.project.ProjectScriptLifecycle$TrackingProjectScriptManager.runCode(ProjectScriptLifecycle.java:800)
at com.inductiveautomation.ignition.common.script.TimerScriptTask.run(TimerScriptTask.java:90)
at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
at java.base/java.util.concurrent.FutureTask.runAndReset(Unknown Source)
at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown Source)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.base/java.lang.Thread.run(Unknown Source)
Caused by: org.python.core.PyException: java.lang.OutOfMemoryError: java.lang.OutOfMemoryError: Java heap space
... 81 common frames omitted