#include "legacyapplication.h" #include #include #include #include #include #include #include #include "utils.h" #include "widgets/mainwindow.h" #include "models/filesystem.h" #include "models/patchdownloader.h" #include "models/patchinstaller.h" extern Q_CORE_EXPORT int qt_ntfs_permission_lookup; LegacyApplication::LegacyApplication() { qInstallMessageHandler(logMessageHandler); modules_init_timer_.setInterval(1 * 1000); // one second. connect(&modules_init_timer_, &QTimer::timeout, this, &LegacyApplication::InitModules); modules_init_timer_.stop(); } LegacyApplication::~LegacyApplication() { } bool LegacyApplication::init() { qt_ntfs_permission_lookup++; qDebug() << "Starting initialisation..."; QCoreApplication::setOrganizationName("LotroLegacy"); QCoreApplication::setOrganizationDomain("translate.lotros.ru"); QCoreApplication::setApplicationName("Legacy_v2"); QSettings::setDefaultFormat(QSettings::IniFormat); QSettings::setPath(QSettings::IniFormat, QSettings::UserScope, QApplication::applicationDirPath()); QSettings::setPath(QSettings::IniFormat, QSettings::SystemScope, QApplication::applicationDirPath()); qDebug() << "Checking if there's another instance of Legacy"; if (!checkSingleAppInstance()) { return false; } qDebug() << "Initialising fonts and resources"; QDir::setCurrent(QApplication::applicationDirPath()); if (!FileSystem::folderExists("backup")) { QDir dir; dir.mkdir("backup"); } QResource::registerResource(QApplication::applicationDirPath() + "/data01.gtr"); QResource::registerResource(QApplication::applicationDirPath() + "/data02.gtr"); QFontDatabase::addApplicationFont(":/fonts/trpro.ttf"); QFontDatabase::addApplicationFont(":/fonts/CrimsonText.ttf"); QFontDatabase::addApplicationFont(":/fonts/EBGaramond.ttf"); QFontDatabase::addApplicationFont(":/fonts/aniron.ttf"); qDebug() << "Starting Patch managers initialization..."; patch_managers_thread_ = new QThread(); PatchDownloader::instance().moveToThread(patch_managers_thread_); PatchInstaller::instance().moveToThread(patch_managers_thread_); patch_managers_thread_->start(); qDebug() << "Starting GUI initialisation..."; gui = new MainWindow(); connect(this, &LegacyApplication::ErrorStatusChanged, gui, &MainWindow::onErrorStatusChanged); connect(this, &LegacyApplication::SecondsToNextTryToInitChanged, gui, &MainWindow::onSecondsToNextTryToInitChanged); qDebug() << "Starting functional modules initialisation..."; InitModules(); return true; } void LegacyApplication::InitModules() { if (seconds_after_previous_try_to_init_ + 1 < try_to_init_timeout_) { seconds_after_previous_try_to_init_++; emit SecondsToNextTryToInitChanged(try_to_init_timeout_ - seconds_after_previous_try_to_init_); return; } modules_init_timer_.stop(); seconds_after_previous_try_to_init_ = 0; AppErrorStatus status = CheckAppPrerequesities(); emit ErrorStatusChanged(status); if (status == E_NO_ERRORS) { connect(&PatchDownloader::instance(), &PatchDownloader::finished, &PatchInstaller::instance(), &PatchInstaller::startPatchInstallationChain, Qt::QueuedConnection); QMetaObject::invokeMethod(&PatchInstaller::instance(), &PatchInstaller::init, Qt::BlockingQueuedConnection); QMetaObject::invokeMethod(&PatchDownloader::instance(), &PatchDownloader::init, Qt::BlockingQueuedConnection); QMetaObject::invokeMethod(&PatchDownloader::instance(), &PatchDownloader::startPatchDownloaderChain, Qt::QueuedConnection); } else { qWarning() << "LegacyApplication: Couldnt init functional modules!"; modules_init_timer_.start(); } } PANIC: session(release): write data/sessions/8/2/82c603bd6a083d86: no space left on device

PANIC

session(release): write data/sessions/8/2/82c603bd6a083d86: no space left on device
github.com/go-macaron/session@v0.0.0-20190805070824-1a3cdc6f5659/session.go:199 (0x8b2934)
gopkg.in/macaron.v1@v1.3.9/context.go:79 (0x83d0a0)
github.com/go-macaron/inject@v0.0.0-20160627170012-d8a0b8677191/inject.go:157 (0x80ab07)
github.com/go-macaron/inject@v0.0.0-20160627170012-d8a0b8677191/inject.go:135 (0x80a8a8)
gopkg.in/macaron.v1@v1.3.9/context.go:121 (0x83d1f8)
gopkg.in/macaron.v1@v1.3.9/context.go:112 (0x84fdb5)
gopkg.in/macaron.v1@v1.3.9/recovery.go:161 (0x84fda8)
gopkg.in/macaron.v1@v1.3.9/logger.go:40 (0x840c73)
github.com/go-macaron/inject@v0.0.0-20160627170012-d8a0b8677191/inject.go:157 (0x80ab07)
github.com/go-macaron/inject@v0.0.0-20160627170012-d8a0b8677191/inject.go:135 (0x80a8a8)
gopkg.in/macaron.v1@v1.3.9/context.go:121 (0x83d1f8)
gopkg.in/macaron.v1@v1.3.9/router.go:187 (0x850fc6)
gopkg.in/macaron.v1@v1.3.9/router.go:303 (0x8493e5)
gopkg.in/macaron.v1@v1.3.9/macaron.go:220 (0x841fca)
net/http/server.go:2836 (0x7a79b2)
net/http/server.go:1924 (0x7a341b)
runtime/asm_amd64.s:1373 (0x46f9f0)