Microsoft Visual C++ Runtime Library error

247 views
Skip to first unread message

soymil...@yahoo.com.ar

unread,
Sep 5, 2016, 12:26:53 PM9/5/16
to Soulseek Technical Discussion
Hi guys:

I leave my PC on 24x7 and Soulseek running. However, every once in a while (after not connecting for a few days) I find this error, which crashes Soulseek build 2016.1.24 on Windows 10 x64. Does anyone know how to avoid it from happening?



dent...@gmail.com

unread,
Sep 6, 2016, 3:07:03 AM9/6/16
to Soulseek Technical Discussion
I have the same problem every time I want to start Soulseek!

Please fix it :(

soymil...@yahoo.com.ar

unread,
Sep 21, 2016, 3:47:49 PM9/21/16
to Soulseek Technical Discussion
In the meantime, I made this batch file that checks if Soulseek is running and if it's not, starts it. I noticed that when the Microsoft Visual C++ Runtime Library error window pops up, soulseek shows up as running on the task manager until you click OK on the error window, so I'm using nircmd to automate the error acknowledgement, which ends the soulseek process. Then I can restart soulseek and go back to the loop that checks that soulseek is running.


@ECHO OFF

title SoulseekQt.bat

set SOULSEEK=PATH TO SOULSEEK FOLDER
set NIR=PATH TO NIRCMD FOLDER

:END

start /min "" "%SOULSEEK%\SoulseekQt.exe"

GOTO LOOP

:LOOP

timeout /t 60 /nobreak >NUL 2>&1

FOR /F "delims=" %%a IN ('tasklist /nh ^| find /c /i "SoulseekQt.exe"') DO IF %%a EQU 0 GOTO END

%NIR% dlg "SoulseekQt.exe" "" click ok
%NIR% dlg "SoulseekQt.exe" "" click ok
%NIR% dlg "SoulseekQt.exe" "" click yes
%NIR% dlg "SoulseekQt.exe" "" click yes

GOTO LOOP

exit

oleg.g...@gmail.com

unread,
Oct 20, 2016, 12:13:20 AM10/20/16
to Soulseek Technical Discussion
I have the same error and I think it happened after I installed one of the games which reinstalled or updated VC++ Runtimes. It's very annoying me because it happens more than 5 times in 24 hours. On the weekends I'm going to uninstall all VC++ Runtimes then install them from scratch. I'll keep you updated.

TJT74

unread,
Oct 20, 2016, 4:32:59 PM10/20/16
to Soulseek Technical Discussion
It's crashing a lot for me also, especially when first running the program.  It's taking 4-5 times for it to connect.  It started happening after the latest big update to Windows 10.  There was some updates to Microsoft Visual C++ Runtime Library on September 26.  I uninstalled those, but it's still crashing.

Nir Arbel

unread,
Oct 20, 2016, 4:51:50 PM10/20/16
to Soulseek Technical Discussion
I wonder if the newest version of Qt has better compatibility with Windows 10, I'll try to build against it later today.

Nir Arbel

unread,
Oct 21, 2016, 2:40:46 AM10/21/16
to Soulseek Technical Discussion
I upgraded to Windows 10 with all the latest updates, no problems over here. Just in case though I built a version of the client against Qt 5.7.0. I'm skeptical that it'll make a difference, but Qt often improves support for the latest operating systems in new versions, so maybe it's worth a shot:


If that doesn't work we can try diagnosing the crash with Dr. MingW, but that doesn't always produce useful results...

ThaViper

unread,
Oct 21, 2016, 4:42:34 AM10/21/16
to Soulseek Technical Discussion
Reinstall VC++ changed nothing, so I've installed this new Soulseek build. Let's see how it will work.

Thank you Nir.

ThaViper

unread,
Oct 21, 2016, 7:39:38 AM10/21/16
to Soulseek Technical Discussion
The same problem after 2 hours worked smoothly.

TJT74

unread,
Oct 21, 2016, 3:46:49 PM10/21/16
to Soulseek Technical Discussion
Do you have the diagnostics turned on?  You might try turning them off, as I think it increases the memory and causes a greater risk of crashing.

Is there anything that can be done to speed up the start-up process?  I have many thousands of users on my userlist.  It takes forever to connect initially because I think it checks if every user is online or has a file count.

ThaViper

unread,
Oct 22, 2016, 7:16:12 AM10/22/16
to Soulseek Technical Discussion
пятница, 21 октября 2016 г., 22:46:49 UTC+3 пользователь TJT74 написал:
Do you have the diagnostics turned on?  You might try turning them off, as I think it increases the memory and causes a greater risk of crashing.

Did you mean show/hide diagnostics tab? As I don't see any options how to disable diagnostics I've simply unticked Show diagnostics checkbox. Going to see if that will really help me.
Additionally I've done memory diagnostics and no errors were found.

ThaViper

unread,
Oct 23, 2016, 7:18:06 AM10/23/16
to Soulseek Technical Discussion
пятница, 21 октября 2016 г., 22:46:49 UTC+3 пользователь TJT74 написал:
Do you have the diagnostics turned on?  You might try turning them off, as I think it increases the memory and causes a greater risk of crashing.

Look like you were right because since diagnostics tab has been hidden there are no more crashes.

swi...@gmail.com

unread,
Oct 24, 2016, 12:03:11 PM10/24/16
to Soulseek Technical Discussion
Exactly the same problem here. I am using Windows 7 Ultimate 64-bit. I run SoulseekQt 2016-04-24 non-stop and about once a day it crashes like shown in the picture above. So I have to restart it and then after approximately another 24 hours it will crash again. Sucks.

ThaViper

unread,
Oct 25, 2016, 5:34:55 PM10/25/16
to Soulseek Technical Discussion
понедельник, 24 октября 2016 г., 19:03:11 UTC+3 пользователь swi...@gmail.com написал:
Exactly the same problem here. I am using Windows 7 Ultimate 64-bit. I run SoulseekQt 2016-04-24 non-stop and about once a day it crashes like shown in the picture above. So I have to restart it and then after approximately another 24 hours it will crash again. Sucks.

Have you tried to uncheck Show diagnostics under Options > UI tab?

swi...@gmail.com

unread,
Oct 25, 2016, 5:46:21 PM10/25/16
to Soulseek Technical Discussion
Yes, I did that after I posted. So far it's been stable. If it crashes again, I'll post a follow-up here. If I don't then it means it's stable, I guess. :-)

swi...@gmail.com

unread,
Nov 1, 2016, 11:30:20 PM11/1/16
to Soulseek Technical Discussion
Ok, crashed just now. So that's about 1 week of "uptime".

soymil...@yahoo.com.ar

unread,
Jul 21, 2017, 10:18:44 AM7/21/17
to Soulseek Technical Discussion
Hi guys:

I've noticed that sometimes, when Soulseek crashes, there are several instances of soulseekqt.exe running simultaneously, so I modified the batch script to identify this situation and end those instances and restart SoulseekQt as below:
@ECHO OFF

title SoulseekQt.bat

set SOULSEEK=ROUTE TO SOULSEEK

set NIR=ROUTE TO NIRCMD
set EXE=SoulseekQt.exe

:START

start /min "" "%SOULSEEK%\%EXE%"

:LOOP

timeout /t 60 /nobreak >NUL 2>&1

FOR /F "delims=" %%a IN ('tasklist /nh ^| find /c /i "%EXE%"') DO (
IF %%a EQU 0 (
GOTO START
) ELSE IF %%a GTR 1 (
GOTO ERROR
)
)

%NIR% dlg "%EXE%" "" click ok
%NIR% dlg "%EXE%" "" click ok
%NIR% dlg "%EXE%" "" click yes
%NIR% dlg "%EXE%" "" click yes

GOTO LOOP

:ERROR

ECHO %date%;%time%: taskkill /f /im %EXE% /t > NUL 2>&1
taskkill /f /im %EXE% /t > NUL 2>&1

GOTO START

exit

Reply all
Reply to author
Forward
0 new messages