SampleMaps are not seen and not saved with project.
-
@d-healey thank you, I'll try it out in the evening
-
So I've compiled a debug version of HISE, saved a new samplemap from it with Project_Folder paths. And still makes no sense. After saving a new samplemap, it removes samples from sampler. And throws 2 errors:
JUCE Assertion failure in ExternalFilePool.cpp:879
juce::MemoryInputStream* PoolBase::DataProvider::createInputStream(const String& referenceString) { if (metadata.isValid()) { auto item = metadata.getChildWithProperty("ID", referenceString); if (item.isValid()) { auto offset = (int64)item.getProperty("ChunkStart"); auto end = (int64)item.getProperty("ChunkEnd"); if (input != nullptr && (input->getTotalLength() > offset + metadataOffset)) { input->setPosition(offset + metadataOffset); MemoryBlock mb; input->readIntoMemoryBlock(mb, (size_t)(end - offset)); return new MemoryInputStream(mb, true); } } else { for (auto i : metadata) DBG(i.getProperty("ID").toString()); } DBG("WARNING: Not found: " + referenceString); return nullptr; } else { jassertfalse; return nullptr; } }
JUCE Assertion failure in ModulatorSamplerData.cpp:983
void SampleMap::load(const PoolReference& reference) { LockHelpers::freeToGo(sampler->getMainController()); ScopedValueSetter<bool> iterationAborter(sampler->getIterationFlag(), true); SimpleReadWriteLock::ScopedWriteLock sl(sampler->getIteratorLock()); clear(dontSendNotification); currentPool = getSampler()->getMainController()->getCurrentSampleMapPool(); if (!FullInstrumentExpansion::isEnabled(getSampler()->getMainController())) { if (auto expansion = getSampler()->getMainController()->getExpansionHandler().getExpansionForWildcardReference(reference.getReferenceString())) { currentPool = &expansion->pool->getSampleMapPool(); } sampleMapData = currentPool->loadFromReference(reference, PoolHelpers::LoadAndCacheWeak); } else { // Remove the "{PROJECT_FOLDER}" wildcard or it won't find it in the pool... auto ref = PoolReference(getSampler()->getMainController(), reference.getReferenceString().fromLastOccurrenceOf("{PROJECT_FOLDER}", false, false), FileHandlerBase::SampleMaps); sampleMapData = currentPool->loadFromReference(ref, PoolHelpers::LoadAndCacheWeak); } currentPool->addListener(this); if (sampleMapData) { auto v = sampleMapData.getData()->createCopy(); parseValueTree(v); changeWatcher = new ChangeWatcher(data); } else jassertfalse; sendSampleMapChangeMessage(); }
-
@Levitanus did you compile with gcc14?
-
@d-healey yes, with gcc14 with 01 optimizations. I ran the 11th installation again this morning before going out to work, but in an hour it was not yet installed. Hope, that it succeed wile I'm out)
-
How is about clang? Makes it sense trying to build it with clang (LLWM)? And general possibility? I found no signs of compiler in make file, but I'm very unfamiliar with make…
-
I've only worked with GCC on Linux so not sure about setting up clang. Gcc14 could be the cause of your issue.
-
Finally, i succeeded to install gcc11, and the result is the same…
-
@Levitanus said in SampleMaps are not seen and not saved with project.:
the result is the same…
Can you make a minimal project that has the issue and send it to me?
-
I also feel, that with the last added sampler, it started to behave very strange. For example, it didn't receive MIDI-signals. But in 1–2 attempts, the samplers started to work normal. Before I started to convert samplemaps.
-
@d-healey said in SampleMaps are not seen and not saved with project.:
Can you make a minimal project that has the issue and send it to me?
I would say, it's any project in my case…
test.zip -
@Levitanus When I load your project I see the sample map available in the dropdown. Also I recommend saving your project as an xml rather than a .hip if you're not already.
-
@d-healey Yes, that's the issue, I don't…
I've just tried with your last development commit, and still does not work, also tried to clear all possible hise resources in home folder. -
@Levitanus Must be something specific to your OS. Do you have a virtual machine where you can try a different distro?
-
So, the reason was, that I selected expansion type as full. I'm not sure, what expansions are in general, but it blocked any samplemaps from working.
-
@Levitanus Ah that makes sense. Expansions are a system for adding additional content (sample maps, samples, presets) to a plugin.