Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MemoryError while parsing SOPARE Config #85

Open
Fabian2305 opened this issue Mar 31, 2020 · 2 comments
Open

MemoryError while parsing SOPARE Config #85

Fabian2305 opened this issue Mar 31, 2020 · 2 comments
Assignees

Comments

@Fabian2305
Copy link

Fabian2305 commented Mar 31, 2020

Meine Fehlermeldung bis gestern:

Traceback (most recent call last):
File "/home/pi/dev/sopare/sopare/recorder.py", line 44, in init
self.recording()
File "/home/pi/dev/sopare/sopare/recorder.py", line 88, in recording
buf = self.stream.read(self.cfg.getintoption('stream', 'CHUNK'))
File "/home/pi/dev/sopare/sopare/config.py", line 36, in getintoption
return self.config.getint(section, option)
File "/usr/lib/python2.7/ConfigParser.py", line 359, in getint
return self._get(section, int, option)
File "/usr/lib/python2.7/ConfigParser.py", line 356, in _get
return conv(self.get(section, option))
File "/usr/lib/python2.7/ConfigParser.py", line 616, in get
value = d[option]
File "/usr/lib/python2.7/ConfigParser.py", line 573, in getitem
return mapping[key]
MemoryError

Aktuell lässt sich SOPARE nicht mehr starten. gestern ging es noch, jetzt ohne weitere Veränderung nicht mehr. Es kommt ausschließlich:

WARNING:sopare.recorder:stream read error[Errno -9988] Stream Closed

in unendlicher Ausführung und beim "KeyboardInterrupt" dann folgendes:

Traceback (most recent call last):
File "./sopare.py", line 187, in
main(sys.argv[1:])
File "./sopare.py", line 108, in main
Process buffering queue:
Process worker for filtered data:
recorder.recorder(cfg)
File "/home/pi/dev/sopare/sopare/recorder.py", line 44, in init
self.recording()
File "/home/pi/dev/sopare/sopare/recorder.py", line 95, in recording
Traceback (most recent call last):
Traceback (most recent call last):
self.logger.warning("stream read error "+str(e))
File "/usr/lib/python2.7/logging/init.py", line 1186, in warning
File "/usr/lib/python2.7/multiprocessing/process.py", line 267, in _bootstrap
File "/usr/lib/python2.7/multiprocessing/process.py", line 267, in _bootstrap
self.run()
self.run()
File "/home/pi/dev/sopare/sopare/buffering.py", line 40, in run
File "/home/pi/dev/sopare/sopare/worker.py", line 88, in run
obj = self.queue.get()
buf = self.queue.get()
File "/usr/lib/python2.7/multiprocessing/queues.py", line 117, in get
File "/usr/lib/python2.7/multiprocessing/queues.py", line 117, in get
self._log(WARNING, msg, args, **kwargs)
File "/usr/lib/python2.7/logging/init.py", line 1292, in _log
record = self.makeRecord(self.name, level, fn, lno, msg, args, exc_info, func, extra)
File "/usr/lib/python2.7/logging/init.py", line 1266, in makeRecord
rv = LogRecord(name, level, fn, lno, msg, args, exc_info, func)
File "/usr/lib/python2.7/logging/init.py", line 300, in init
self.processName = mp.current_process().name
File "/usr/lib/python2.7/multiprocessing/process.py", line 172, in name
return self._name
KeyboardInterrupt
res = self._recv()
res = self._recv()
KeyboardInterrupt

Ich kann mir nicht erklären, warum SOPARE nicht mehr startet, auch ein Herunterfahren inclusive Stromtrennung hat nicht geholfen. So kann ich auch "ps auxf | grep sopare" leider nicht eingeben.


default.txt

Aktuelle Version und "free".txt

@bishoph bishoph changed the title Fabian Weller Fehlermeldung und Config-Datei Sopare Fehlermeldung und Config-Datei Sopare Mar 31, 2020
@bishoph
Copy link
Owner

bishoph commented Mar 31, 2020

Please attach the config file instead of posting in editor.

Thx.

@bishoph bishoph self-assigned this Mar 31, 2020
@bishoph
Copy link
Owner

bishoph commented Mar 31, 2020

Also, what operating system / version are you using?

Run

free

and post the output.

In addition, start SOPARE and run the following command while SOPARE is running and the error shows up and post the output:

ps auxf | grep sopare

@bishoph bishoph changed the title Fehlermeldung und Config-Datei Sopare MemoryError while parsing SOPARE Config Mar 31, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants