Debug in VS2022
-
@DanH -- in your jassert its falling thru to the default option- so are you sure you have the direction control set up in your arp?
-
@Lindon @d-healey yep so I found the direction knob in my project which wasn't being used, deleted any code to do with it and recompiled. I'm still running into the same issue.
Lindon do you mean I need to have something set up for the direction? I've opted out of using it.
From the console:
JUCE Assertion failure in Arpeggiator.cpp:810 A breakpoint instruction (__debugbreak() statement or a similar call) was executed in HALO-2 Debug.exe.
-
@DanH well yes - generally you'd need to tell the arp which direction to go in...
-
@Lindon sure but it has a default setting... oooor does it.....
Ok so in my project they were all unspecified... i.e no direction set. Bravo!
Will recompile and try again!
-
@Lindon ok we got past that one! Cheers for the help :)
Onto the next one! Please let me know if you have any ideas, I can't see a 'Gain Mode' on any envelopes...
-
@DanH "Show Call Stack"
-
@Lindon thanks, I found the culprit and now have an open app in VS :thumbs_up:
-
@DanH said in Debug in VS2022:
@Lindon thanks, I found the culprit and now have an open app in VS :thumbs_up:
yes - so now the fun begins....
-
@Lindon indeed! So when playing notes on my instrument the console spits out messages like the below - anything to worry about?!
The thread 0x206c has exited with code 0 (0x0). The thread 0x20f4 has exited with code 0 (0x0). The thread 0xbdc has exited with code 0 (0x0). The thread 0x468 has exited with code 0 (0x0).
-
@Lindon @d-healey @Christoph-Hart
Ok I'm pretty sure the below is the bug I'm trying to locate. It happens very occasionally when switching presets via the usual browser (can be any preset). I have no idea what this is telling me so please let me know if you do! :)
The instrument contains a couple of samplers, Waveform Gens, Sine Wav Gen too....
### Loading user preset BA 2010 Assertion failed! Program: D:\HALO-2\Binaries\Compiled\App\HALO-2 Debug.exe File: C:\Users\Admin\Desktop\HISE-develop...\readerw...queue.h Line: 566 Expression: !inSection && "ReaderWriterQueue does not support enqueuing or dequeuing elements from other elements' ctors and dtors"
-
@DanH Why are you taking photos of your screen instead of screenshots?
-
@d-healey it's not my main machine and the internet is dodgy on there at the mo
-
@DanH Ok, just checking your sanity, I thought the debugging might have got to you :D
-
-
@DanH so a quick google suggests this might have to do with the queuing and de-queuing of threads. What kind of threads should I have going on normally...?
-
That‘s just an assertion that is telling you that the UI notification queue is full (which might happen if the user preset restores multiple hundred controls). It‘s not an critical error though so if it keeps appearing, just remove that line and rebuild to silence the message.
-
@Christoph-Hart Ok thank you for looking! This is what came up with the crash and the call stack is the same as when the plugin crashes (in the error report).... Could this lead to the source of the crash?
-
@Christoph-Hart been running the project again and run into this twice now:
void PoolBase::DataProvider::Compressor::create(MemoryInputStream* mis, ValueTree* data) const { ScopedPointer<MemoryInputStream> scopedInput = mis; static zstd::ZCompressor<SampleMapDictionaryProvider> dec; MemoryBlock mb; mis->readIntoMemoryBlock(mb); dec.expand(mb, *data); jassert(data->isValid());
-
@DanH in XCode I'm getting this:
if (mc->getKillStateHandler().isAudioRunning()) { if (mc->getJavascriptThreadPool().isCurrentlySleeping()) return true; // The audio engine is not suspended. Wrap this call // into a killVoicesAndCall lambda. jassertfalse; return false; }
If anyone has any advice at all about errors or debugging please let me know!!
-
@DanH Try stepping through the code (also going back through the call stack) to try to figure out the root of the issue. Does this actually cause a problem in a release build or is it just showing up in a debug build?
Try to recreate the issue in a minimal project.