-
Notifications
You must be signed in to change notification settings - Fork 3
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
Random error, VBVMR_GetParameterFloat returned -6 #12
Comments
I confirm that the error occurs even with the latest version. |
That's really weird, I can't find anything about return value I have asked the devs about it in their discord server, once they reply I look into it. |
I did a little investigating on my side. The error comes from the fact that I have an infinite loop with a delay of 500ms~ before doing a new cycle. In the cycle, there is a check of the state of I thought it could be due to the frequency of Voicemeeter's polling, so I did a little test (see code), but I don't get any error when trying to force the thing, I conclude that it's not due to the frequency of Voicemeeter's API call. #include <VMR>
global vmr := new VMR().login()
loop {
test := vmr.strip[5].Mute
sleep 1
}
|
Can you give me the whole script so I can try to reproduce the error? |
I'm using a home-made engine, so it will be complicated to show the code as it is. But here is the execution path. kernel.ahk#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
#Persistent ; Keeps a script permanently running (that is, until the user closes it or ExitApp is encountered).
#SingleInstance force
; #Warn ; Enable warnings to assist with detecting common errors.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
FileEncoding UTF-8
DetectHiddenWindows On
SetTitleMatchMode RegEx
#include <VMR>
global vmr := new VMR().login()
loop {
startTime := A_TickCount
#includeAgain %A_ScriptDir%\loader\loop.ahk
elapsedTime := A_TickCount - startTime
if (500 - elapsedTime > 0)
sleep 500 - elapsedTime
} %A_ScriptDir%\loader\loop.ahk#includeAgain *i %A_ScriptDir%\bundle\Spotify\loop.ahk %A_ScriptDir%\bundle\Spotify\loop.ahkif (ProcessExist("Spotify.exe")) {
SetFormat Float, 0.3
WinGet _windows, List
loop % _windows {
_hwnd := _windows%A_Index%
WinGet _process, ProcessName, ahk_id %_hwnd%
WinGetTitle _title, ahk_id %_hwnd%
} until (_process == "Spotify.exe" && _title != "")
if (_process == "Spotify.exe" && (_title = "Advertisement" || _title = "Spotify" || _title = "Spotify Free" || _title = "Les 250 ans de Beethoven en podcast !")) {
if (vmr.strip[5].Mute == false) { ; Ads = mute
vmr.strip[5].mute := true
}
} else {
if (vmr.strip[5].Mute == true) { ; No ads
vmr.strip[5].mute := false
}
}
}
|
I still can't seem to get the error :/ 2021-11-26.09-58-55.mp4 |
I don't have a very powerful PC (potato pc), would that have a link ?… 🤷 I can't reproduce the problem either. Except when it pops up randomly |
I have this error in a completely random way, I also put you the related autohotkey code to try to reproduce it
The text was updated successfully, but these errors were encountered: