My apologies to the both of you - I didn’t until now and indeed it now works, as did another one I had problems with with RPJ in it. I REALLY LOVE the Visualizer so I hope the issue can be figured out. I posted the Dark Ambient patch here if anyone can look at it.
So a couple of things. What happens if you add the module again. If it crashes again, what system are you using? Is it Mac, linux or windows. And what version?
The library of course showed I needed to download it again so I did - and I can no longer open the patch. I am on an Intel Xeon, Windows 10 Pro version 21H1.
It’s funny. I do the same as you, assuming it’s safe to do
std::string foo = json_string_value(..), but looking at the docs, json_string_value can return nullptr if the value doesn’t exist, and it is “illegal” to construct an std::string from a nullptr. Wonder if it could be that?
I’m pretty sure that could do it, especially if a earlier version has not written the string into json.
Format version tag.
if(stringTag == nullptr), old version so don’t under any circumstances load the extra additions to the format?
I always check for != null before doing anything with it.
You’ve all lost me now. At some point if a solution of sorts is found, if someone could ELI5?
A work around would involve perhaps opening the save in a text editor and knowing the module source code in detail to make the extra stuff it isn’t finding. Typing it in, save, and maybe …
The problem is in the RPJVisualizer, most likely due to a newer version trying to read the json written by an earlier version.
I’m not sure what the workaround would be for this.
Hi Dave they are working on a solution, there is nothing more for you to do at this point
I am a bit confused why the problem still exists. So I asked to remove the module as @Yeager suggested. When you open a patch containing the module you should get a message the module is missing. When you continue the patch will load without visualizer. At that point you can add the module again by installing the updates. Restart and you should be able to add the module. Json will be written with latest version json.
Doing nothing is the hardest thing to do! Thanks Peter
Well Robert gave you a new assignment …
Yes I did Of course I will look into the null issue too (tomorrow) but I hope you can get back to me on the assignment Or one of the others to explain where my thinking goes wrong.
Sorry, was replying to Peter and missed this - but I did do this already. So with the plugin removed, I do get the error message that it’s missing. In the library tab it shows that it’s available RPJ Visulaizer 2.1.10. If I Update All and do the restart… huh. This time it worked but RPJ is not there. Ah I see. I have to save it like this and then re-insert the new module - duh. Same with a couple of other patches. Works, great stuff! Thx very much!!
Yeah that worked in development of my own modules too when I made an error of a kind. Lucky VCV can be non critically restarted, phew!
Case 1 …
Case count: 1
Case URL: I had the most amazing jam last nigh, but this morning, Rack won't open. - #38 by jackokring
Ah yes, I forgot to mention you had to save, glad you found out yourself. Good to hear it is working again.
OK, I checked my code and you were closest to the cause of this issue. What has happened? In the old version 2.1.6 (as the log showed us, that was the version of the module used in the saved patch) I had a variable written to the json called activePreset. The type was json_integer, In a later version, I changed this activePreset from integer to string, keeping the name in the json the same (stupid me). So, trying to read a string, where actually an integer is stored causes vcv to crash. Tried this by replacing the string in my autosave/patch.json to a value.
Let this be a warning to others.