I am getting some odd behaviour when switching to SetList mode via the standard UI where GP hangs and maxes out the CPU on a single core (I’m assuming some kind of infinite loop). Seemingly the presence of my extension is causing an issue. I’m doing barely anything upon a switch to SetList mode. Extract from LibMain.h:
void OnModeChanged(int mode) override
{
writeToLog("Switching Mode");
}
void static writeToLog(std::string msg)
{
std::ofstream outfile;
outfile.open("C:/Users/Public/Documents/Gig Performer/Extensions/log.txt", std::ios::app);
outfile << msg << std::endl;
outfile.close();
}
I do notice, however, that I am including the v44 SDK from GitHub in the compile process in CMakeLists.txt:
# Import the SDK
include(FetchContent)
FetchContent_Declare(
gp-sdk
GIT_REPOSITORY https://github.com/gigperformer/gp-sdk.git
GIT_TAG 6c5432518ef42ea0870fb44597e9d1d3780e2f98 # v44
)
FetchContent_MakeAvailable(gp-sdk)
I am running this against Deskew (i.e. not PluginAlliance) GP4 v4.5.8. Should the versioning be in sync? Could this be causing me an issue? I can’t find any later SDK releases available on GitHub.