3.2.3 causes exception

With Acestream 3.2.3 on Linux, I receive the below exceptions when viewing a stream.
When downgrading back to 3.1.75, I get no exception and the stream works

Traceback (most recent call last):
File “core/src/live/HLSSegmenterBuffer.pyx”, line 124, in
SystemError: <built-in method close of live.HLSSegmenterBuffer object at 0x7f9185704460> returned a result with an exception set
2024-06-29 20:45:02,412|SegmenterThread-102 (segmenter_thread_func)|acestream.HLSSegmenterBuffer|read: error
SystemError: Objects/longobject.c:386: bad argument to internal function

What build you’re using (Python 3.7, 3.8, 3.10) and in which environment (OS, VM/container/DS)?
Please, attach a full log (gzipped if necessary) instead of brief fragment.

There isn’t really much to it.

This is with the following log related flags.
–log-stdout --log-stdout-level any --log-debug 355

Its possible I maybe missing other logs, but my logs directory is empty, and I assume I’m getting everything via stdout as I’m running as a container.

Python: 3.10.14
Container Base Image: python:3.10-slim-bookworm

2024-06-30 10:58:07,971|MainThread|acestream|init segmenter done: log_path=/root/.ACEStream/logs/segmenter.log
2024-06-30 10:58:07,971|MainThread|acestream|Start Ace Stream 3.2.3
2024-06-30 10:58:07,971|MainThread|acestream|platform=linux
2024-06-30 10:58:07,971|MainThread|acestream|app=acestream
2024-06-30 10:58:07,971|MainThread|acestream|version=3.2.3 code=3020300 revision=be4471a date=2024-04-22
2024-06-30 10:58:07,971|MainThread|acestream|use_local_db=True
2024-06-30 10:58:07,971|MainThread|acestream|is_gui_mode=0
2024-06-30 10:58:07,971|MainThread|acestream|user_agent=Mozilla/5.0 (Linux) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/60.0.3112.50 Safari/537.36 AceStream/3.2.3
2024-06-30 10:58:07,972|MainThread|acestream|python_version=3.10.14-final-0
2024-06-30 10:58:07,972|MainThread|acestream|enable debug: 355
2024-06-30 10:58:07,972|MainThread|acestream|set debug level: 355
2024-06-30 10:58:07,977|MainThread|acestream.coreapp|pid=2
2024-06-30 10:58:07,978|MainThread|acestream.coreapp|process monitor initialized
2024-06-30 10:58:07,978|MainThread|acestream|get_default_api_version: 2
2024-06-30 10:58:07,978|MainThread|acestream.coreapp|use fixed i2i_port: 62062
2024-06-30 10:58:07,979|MainThread|acestream.coreapp|state_dir='/root/.ACEStream'
2024-06-30 10:58:08,163|MainThread|acestream.coreapp|cannot load session config, use default
2024-06-30 10:58:08,192|MainThread|acestream.SocketHandler.InterruptSocket|bound on 127.0.0.1:37335
2024-06-30 10:58:08,193|MainThread|acestream.SocketHandler.SocketHandler|bind: socket bound: host=0.0.0.0 port=8621
2024-06-30 10:58:08,194|MainThread|acestream.LM|listen on 8621
2024-06-30 10:58:08,260|Thread-19 (__forward)|acestream.upnp|start __retry_discover()
2024-06-30 10:58:08,268|MainThread|acestream.httpserver|start: addr= port=80 allow_remote=0 allow_intranet=1
2024-06-30 10:58:08,269|MainThread|acestream.httpserver|start: bound on ('0.0.0.0', 80)
2024-06-30 10:58:08,508|MainThread|acestream.SocketHandler.InterruptSocket|bound on 127.0.0.1:36723
2024-06-30 10:58:08,509|MainThread|acestream.SocketHandler.SocketHandler|bind: socket bound: host=0.0.0.0 port=62062
2024-06-30 10:58:08,510|Instance2InstanceThread-31|acestream.APIServer|run: ready to receive remote commands on 62062
2024-06-30 10:58:08,512|PlaylistTaskManagerThread-32 (_run)|acestream.TaskManager|started
2024-06-30 10:58:09,216|PlaylistTaskManagerThread-32 (_run)|acestream.SyncDataTask|run now
2024-06-30 10:58:09,218|PlaylistTaskManagerThread-32 (_run)|acestream.SyncDataTask|next run in 3600 seconds
2024-06-30 10:58:48,909|SegmenterThread-143 (segmenter_thread_func)|acestream.HLSSegmenterBuffer|read: error
SystemError: Objects/longobject.c:386: bad argument to internal function

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "core/src/live/HLSSegmenterBuffer.pyx", line 124, in 
SystemError: <built-in method close of live.HLSSegmenterBuffer object at 0x7f18f24c2770> returned a result with an exception set
2024-06-30 10:58:48,968|SegmenterThread-143 (segmenter_thread_func)|acestream.HLSSegmenterBuffer|read: error
SystemError: Objects/longobject.c:386: bad argument to internal function

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "core/src/live/HLSSegmenterBuffer.pyx", line 124, in 
SystemError: <built-in method close of live.HLSSegmenterBuffer object at 0x7f18f24c2770> returned a result with an exception set
2024-06-30 10:58:58,263|Timer-Thread-174|acestream.coreapp|update_broadcast_status: fix next report time: seconds_to_next_update=3549.714770078659 wanted_next=1719748687.9782946 cur_next=1719831490.4205267

FWIW, I downgraded back to Py 3.8.19 and playback works as expected like previous versions.

Ok, thanks for report. So you’re using Ace Stream 3.2.3/python 3.8 build now and its working normally?

Yep thats correct.