crash at startup
patrykq112 opened this issue · comments
Did you clean the project and compile it, or just recompile it?
I cleaned and compiled
try this:
in otclient\src\framework\core\graphicalapplication.cpp
replace for
// THREAD - FOREGROUND UI
threads.emplace_back(g_asyncDispatcher.submit_task([&] {
std::unique_lock lock(uiPool->getMutexPreDraw());
uiCond.wait(lock, [this]() {
if (m_drawEvents->canDraw(DrawPoolType::MAP))
g_ui.render(DrawPoolType::FOREGROUND);
return m_stopping;
});
}));
// THREAD - FOREGROUND MAP
threads.emplace_back(g_asyncDispatcher.submit_task([&] {
std::unique_lock lock(fgMapPool->getMutexPreDraw());
fgMapCond.wait(lock, [this]() -> bool {
if (m_drawEvents->canDraw(DrawPoolType::MAP))
m_drawEvents->drawForgroundMap();
return m_stopping;
});
}));
```
this replacement helped, it no longer crashes at the start
@mehah I found one more bug after this update. When opening a backpack, layout:getNumLines() always returns 0 and the backpacks open at the wrong height.
try this:
add internalUpdate() at the end of the UIGridLayout::applyStyle() method
like this:
it didn't help, still the same
2024-05-14.13-12-55.mp4
I found one more bug, the character names shake a lot when walking (it's most noticeable when moving at high speed)
I found one more bug, the character names shake a lot when walking (it's most noticeable when moving at high speed)
fixed 84dca80