Error: "can't start a new thread" every few minutes

Every 10 or 15 minutes i got this error while watching a stream using Aceplayer, then the program crashes. After i need to connect to the stream and works fine… until crashes again.

My settings (screenshot): https://i.imgur.com/McBi1Nf.png

Which OS and Ace Stream version?
“can’t start a new thread” error usually means that OS do not have free sockets available or can’t create/free them fast enough - due to incorrect/slow work of some AV/firewall software, system overload, or restrictions within OS settings - see Maximum Socket Connections - SocketTools. as example.

1 лайк

I’m using Acestream 3.1.74 on Windows 11 with Kaspersky Free antivirus.

Dear to all, I have used version 3.2.8, 3.1.74 and 3.1.32 but I have always the same error: after about 20 minutes the vlc window freeze and when I close it I’ll get message error with “can’t start a new thread”. How can I fix this issue? My operating system is windows 11 pro. Here there is the log content of 3.1.74 version

2026-01-03 17:41:18,183|BGTaskQueueThread-1|acestream.coreapp|got command: LOADASYNC 1041 PID xxx
2026-01-03 17:41:18,187|BGTaskQueueThread-1|acestream.BGInstanceConnection|send_load_response: request_id=1041 response={"status": 1, "files": [["%D0%9C%D0%B0%D1%82%D1%87%21%20%D0%A4%D1%83%D1%82%D0%B1%D0%BE%D0%BB%201%20%28%20original%20%29%20%5BRU%5D", 0]], "infohash": "0bb7252a2a8dd3704b3a6c0538478450b8987012", "checksum": "8857b23ca2fd4364439a2083f3fb950c8824d92b"}
2026-01-03 17:41:18,239|BGTaskQueueThread-1|acestream.coreapp|got command: EVENT stop
2026-01-03 17:41:18,792|BGTaskQueueThread-1|acestream.coreapp|got command: START PID b28db77c5084da7993395d77df96c30bb134f0a9 0 fullscreen=0
2026-01-03 17:41:18,792|BGTaskQueueThread-1|acestream.BGInstanceConnection|cleanup_playback
2026-01-03 17:41:19,345|BGTaskQueueThread-1|acestream.BGInstanceConnection|send STATE 1
2026-01-03 17:41:19,351|BGTaskQueueThread-1|acestream.coreapp|start_download_wrapper: dlfile=Матч! Футбол 1 ( original ) [RU] fileindex=0
2026-01-03 17:41:19,351|BGTaskQueueThread-1|acestream.coreapp|start_download_wrapper: starting new download
2026-01-03 17:41:19,670|BGTaskQueueThread-1|acestream.coreapp|start_download: starting new download: infohash=0bb7252a2a8dd3704b3a6c0538478450b8987012 tftype=bt provider=None(None) initialdlstatus=None output_format=default pausable=None transcode=(audio=False mp3=False ac3=False)
2026-01-03 17:41:21,474|Timer-Thread-97|acestream.BGInstanceConnection|start_playback: telling plugin to start playback: use_new_api=0 is_ad=0 is_interruptable_ad=0 is_live=1 url=http://127.0.0.1:6878/content/0bb7252a2a8dd3704b3a6c0538478450b8987012/0.914960080303 click_url=None skip_offset=None volume=None no_ad_text=None ad_info_text=None media_params=None length=None bitrate=875810 file_index=0 allow_multiple_threads=0
2026-01-03 17:41:21,480|Timer-Thread-97|acestream.BGInstanceConnection|send STATE 2
2026-01-03 17:41:21,496|BGTaskQueueThread-1|acestream.coreapp|got command: EVENT play
2026-01-03 18:04:53,395|AceStreamCoreThread|acestream.LiveSourceAuth.RSAAuthenticator|verify: error
Traceback (most recent call last):
  File "core.c", line 60, in 
MemoryError
-----------------------------------------
"Traceback (most recent call last):  File "core.c", line 60, in MemoryError"
repeated many time

-----------------------------------------


2026-01-03 18:05:10,769|AceStreamCoreThread|acestream.live.download.0bb7252a2a8dd3704b3a6c0538478450b8987012|check_p2p_broadcast_status: error
Traceback (most recent call last):
  File "core.c", line 3609, in 
  File "core.c", line 22263, in 
  File "core.c", line 3339, in 
  File "sentry_sdk\integrations\threading.pyo", line 54, in sentry_start
  File "threading.pyo", line 736, in start
error: can't start new thread
2026-01-03 18:05:18,753|AceStreamCoreThread|acestream.LM|rawserver fatal error func called
Traceback (most recent call last):
  File "ACEStream\Core\BitTornado\RawServer.pyo", line 291, in listen_forever
  File "ACEStream\Core\BitTornado\SocketHandler.pyo", line 706, in handle_events
MemoryError
2026-01-03 18:07:14,566|BGTaskQueueThread-1|acestream.coreapp|got command: EVENT stop
2026-01-03 18:07:14,663|BGTaskQueueThread-1|acestream.coreapp|got command: SHUTDOWN
2026-01-03 18:07:14,663|BGTaskQueueThread-1|acestream.BGInstanceConnection|send STATE 0
2026-01-03 18:07:14,663|BGTaskQueueThread-1|acestream.BGInstanceConnection|shutdown: shutdownplugin=1
2026-01-03 18:07:14,663|BGTaskQueueThread-1|acestream.BGInstanceConnection|cleanup_playback
2026-01-03 18:07:14,663|BGTaskQueueThread-1|acestream.coreapp|connection_lost: ip=127.0.0.1 port=53943
2026-01-03 18:07:14,667|Timer-Thread-336|acestream.BGInstanceConnection|shutdown: shutdownplugin=1
2026-01-03 18:07:18,404|MainThread|acestream.coreapp|onexit
2026-01-03 18:07:18,423|MainThread|acestream.AppWrapperWx|shutdown
2026-01-03 18:07:20,670|MainThread|acestream.AppWrapperWx|OnExit: app exit done

and here there is the content of acestream log 3.1.32

2026-01-03 18:10:20,105|MainThread|acestream|init segmenter done: log_path=C:\Users\yyy\AppData\Roaming\ACEStream\engine\segmenter.log
2026-01-03 18:10:20,105|MainThread|acestream|platform=win32
2026-01-03 18:10:20,105|MainThread|acestream|app=acestream
2026-01-03 18:10:20,105|MainThread|acestream|version=3.1.32 code=3013200 revision=58938e3 date=2018-08-23
2026-01-03 18:10:20,105|MainThread|acestream|use_local_db=True
2026-01-03 18:10:20,105|MainThread|acestream|use_m2crypto=True
2026-01-03 18:10:20,105|MainThread|acestream|is_gui_mode=1
2026-01-03 18:10:20,105|MainThread|acestream|enable debug: 0
2026-01-03 18:10:20,105|MainThread|acestream|get_default_api_version: 2
2026-01-03 18:10:20,121|MainThread|acestream.coreapp|state_dir=u'C:\\Users\\yyy\\AppData\\Roaming\\.ACEStream'
2026-01-03 18:10:22,380|MainThread|acestream.coreapp|set_debug_from_ui: enabled=0
2026-01-03 18:10:22,380|MainThread|acestream|enable debug: 0
2026-01-03 18:10:24,278|MainThread|acestream.SocketHandler.InterruptSocket|bound on 127.0.0.1:58519
2026-01-03 18:10:24,279|MainThread|acestream.SocketHandler.SocketHandler|bind: socket bound: host=0.0.0.0 port=8621
2026-01-03 18:10:24,279|MainThread|acestream.LM|listen on 8621
2026-01-03 18:10:24,279|MainThread|acestream.localdb|No existing database found. Attempting to creating a new database u'C:\\Users\\yyy\\AppData\\Roaming\\.ACEStream\\sqlite\\torrentstream.sdb'
2026-01-03 18:10:24,387|MainThread|acestream.VideoServer|start: addr= port=6878 allow_remote=0 allow_intranet=1
2026-01-03 18:10:24,398|MainThread|acestream.VideoServer|start: addr= port=6879 allow_remote=0 allow_intranet=1
2026-01-03 18:10:26,868|MainThread|acestream.lang|setting up languages: default=en_EN.lang system=it_IT
2026-01-03 18:10:26,914|MainThread|acestream.SocketHandler.InterruptSocket|bound on 127.0.0.1:51214
2026-01-03 18:10:26,967|MainThread|acestream.SocketHandler.SocketHandler|bind: socket bound: host=0.0.0.0 port=62017
2026-01-03 18:10:26,970|Instance2InstanceThread-33|acestream.APIServer|run: ready to receive remote commands on 62017
2026-01-03 18:10:27,836|ProxyServerTaskQueueThread-3|acestream.SystemEPGManager|failed to sync channels
Traceback (most recent call last):
  File "core.c", line 412, in 
  File "core.c", line 442, in 
  File "core.c", line 589, in 
  File "core.c", line 258, in 
IntegrityError: NOT NULL constraint failed: channels.group_id
2026-01-03 18:10:38,618|Instance2InstanceThread-33|acestream.coreapp|external_connection_made: ip=127.0.0.1 port=51292 myip=127.0.0.1 myport=62017 connections=1
2026-01-03 18:10:38,618|BGTaskQueueThread-1|acestream.coreapp|got command: HELLOBG version=8 ace=2.2.7 ie=9.11.26100.0
2026-01-03 18:10:38,618|BGTaskQueueThread-1|acestream.BGInstanceConnection|send HELLOTS version=3.1.32 version_code=3013200 key=2b3d51e94a http_port=6878 bmode=1


2026-01-03 18:10:39,371|BGTaskQueueThread-1|acestream.coreapp|got command: READY key=1mcXu2Ujtsjy9z7k-7ff5aa14760070b57a0418574688eb396f316960
2026-01-03 18:10:39,371|BGTaskQueueThread-1|acestream.BGInstanceConnection|send AUTH 0
2026-01-03 18:10:39,559|BGTaskQueueThread-1|acestream.coreapp|got command: LOADASYNC 3931 PID xxxxxx
2026-01-03 18:10:40,065|BGTaskQueueThread-1|acestream.BGInstanceConnection|send_load_response: request_id=3931 response={"status": 1, "files": [["%D0%9C%D0%B0%D1%82%D1%87%21%20%D0%A4%D1%83%D1%82%D0%B1%D0%BE%D0%BB%201%20%28%20original%20%29%20%5BRU%5D", 0]], "infohash": "0bb7252a2a8dd3704b3a6c0538478450b8987012", "checksum": "8857b23ca2fd4364439a2083f3fb950c8824d92b"}
2026-01-03 18:10:40,081|BGTaskQueueThread-1|acestream.coreapp|got command: START PID xxxxxx 0 fullscreen=0
2026-01-03 18:10:40,092|BGTaskQueueThread-1|acestream.BGInstanceConnection|send STATE 1
2026-01-03 18:10:40,094|BGTaskQueueThread-1|acestream.coreapp|start_download_wrapper: dlfile=Матч! Футбол 1 ( original ) [RU] fileindex=0
2026-01-03 18:10:40,094|BGTaskQueueThread-1|acestream.coreapp|start_download_wrapper: starting new download
2026-01-03 18:10:40,490|BGTaskQueueThread-1|acestream.coreapp|start_download: starting new download: infohash=0bb7252a2a8dd3704b3a6c0538478450b8987012 tftype=bt provider=None(None) initialdlstatus=None output_format=default pausable=None transcode=(audio=False mp3=False ac3=False)
2026-01-03 18:10:40,526|BGTaskQueueThread-1|acestream.coreapp|set_allow_sleep_mode: allow=0
2026-01-03 18:10:43,677|Timer-Thread-63|acestream.BGInstanceConnection|start_playback: telling plugin to start playback: use_new_api=0 is_ad=0 is_interruptable_ad=0 is_live=1 url=http://127.0.0.1:6878/content/0bb7252a2a8dd3704b3a6c0538478450b8987012/0.745314369579 click_url=None skip_offset=None volume=None no_ad_text=None ad_info_text=None media_params=None length=None bitrate=875810 file_index=0 allow_multiple_threads=0
2026-01-03 18:10:43,677|Timer-Thread-63|acestream.BGInstanceConnection|send STATE 2
2026-01-03 18:10:46,943|BGTaskQueueThread-1|acestream.coreapp|got command: EVENT play
2026-01-03 18:11:13,947|MainThread|acestream.coreapp|set_debug_from_ui: enabled=False
2026-01-03 18:11:13,947|MainThread|acestream|enable debug: 0
2026-01-03 18:11:14,844|MainThread|acestream.coreapp|set_debug_from_ui: enabled=False
2026-01-03 18:11:14,844|MainThread|acestream|enable debug: 0
2026-01-03 18:13:13,772|Timer-Thread-106|acestream.BGInstanceConnection|send STATE 3
2026-01-03 18:13:14,484|Timer-Thread-107|acestream.BGInstanceConnection|send STATE 2
2026-01-03 18:13:59,378|AceStreamCoreThread|acestream.ppc|_forward: assertion error: playback pos not in have: pos=133383848
2026-01-03 18:14:00,596|AceStreamCoreThread|acestream.ppc|_forward: assertion error: playback pos not in have: pos=133383848
2026-01-03 18:28:08,138|AceStreamCoreThread|acestream.LiveSourceAuth.RSAAuthenticator|verify: error
Traceback (most recent call last):
  File "core.c", line 60, in 
MemoryError
-----------------------------------------
"Traceback (most recent call last):  File "core.c", line 60, in MemoryError"
repeated many time

-----------------------------------------
2026-01-03 18:28:41,404|AceStreamCoreThread|acestream.LM|_run: error
Traceback (most recent call last):
  File "ACEStream\Core\APIImplementation\LaunchManyCore.pyo", line 532, in _run
  File "ACEStream\Core\BitTornado\ServerPortHandler.pyo", line 325, in listen_forever
  File "ACEStream\Core\BitTornado\RawServer.pyo", line 240, in listen_forever
  File "core.c", line 2713, in 
  File "core.c", line 583, in 
  File "core.c", line 767, in 
  File "threading.pyo", line 736, in start
error: can't start new thread
2026-01-03 18:28:41,404|AceStreamCoreThread|acestream.coreapp|can't start new thread
2026-01-03 18:28:41,533|AceStreamCoreThread|acestream.AppWrapperWx|on_error: exit=True
2026-01-03 18:28:41,533|MainThread|acestream.AppWrapperWx|_on_error: exit=True
2026-01-03 18:28:43,903|MainThread|acestream.coreapp|onexit
2026-01-03 18:28:43,907|MainThread|acestream.AppWrapperWx|shutdown
2026-01-03 18:28:46,078|MainThread|acestream.AppWrapperWx|OnExit: app exit done

hope that somebody help me

Best regards

somebody can help me? acestream 3.1.74 works fine on other laptop with windows 7, issue happen with windows 11