Skip to content

Crash at startup on MinGW 64 builds #1522

@hmartinez82

Description

@hmartinez82

OS: MINGW64_NT-10.0-22631 3.4.10.x86_64 2024-02-10 08:39 UTC x86_64 Msys
MLT: 7.22.0
Shotcut: 24.02.29
GCC: 13.2.0

MinGW 64 builds of Shotcut are crashing at startup when using MSYS2's MINGW64 environment.
Surprisingly this is only affecting GCC builds. The Clang builds in both CLANG64 and CLANGARM64 do not show this issue.

Steps to reproduce:

  • Open the UCRT64 or MINGW64 environment in MSYS2
  • Export QSG_RHI_BACKEND=d3d11 (This was done so gdb would attach to the right process)
  • Run shotcut.exe

Expected

  • Shotcut launches correclty

Actual

  • Shotcut crashes after briefly showing the splash screen

GDB's backtrace provided:

Starting program: C:\msys64\mingw64\bin\shotcut.exe
[New Thread 23856.0x65ac]
[New Thread 23856.0x619c]
[New Thread 23856.0x79cc]
[New Thread 23856.0x7c84]
[New Thread 23856.0x3e20]
warning: clientcore\windows\advcore\ctf\uim\tim.cpp(800)\MSCTF.dll!00007FFDB42065D9: (caller: 00007FFDB420720C) LogHr(1) tid(81cc) 8007029C An assertion failure has occurred.
warning: clientcore\windows\advcore\ctf\uim\tim.cpp(800)\MSCTF.dll!00007FFDB42065D9: (caller: 00007FFDB420720C) LogHr(2) tid(81cc) 8007029C An assertion failure has occurred.
[New Thread 23856.0x5d80]
[New Thread 23856.0x6b4c]
[New Thread 23856.0x18e0]
[New Thread 23856.0x4dc8]
[New Thread 23856.0x64c0]
[New Thread 23856.0x2680]
[New Thread 23856.0x3788]
[New Thread 23856.0x3d14]
[New Thread 23856.0x71bc]
[New Thread 23856.0x5380]
[New Thread 23856.0x3a1c]
[New Thread 23856.0x666c]
[New Thread 23856.0x3020]
[New Thread 23856.0x300c]
gdb: unknown target exception 0xc0000409 at 0x7ffd5bf8b48e

Thread 1 received signal ?, Unknown signal.
0x00007ffd5bf8b48e in __fastfail (code=8) at D:/a/msys64/mingw64/include/_mingw.h:605
warning: 605    D:/a/msys64/mingw64/include/_mingw.h: No such file or directory
(gdb) bt
#0  0x00007ffd5bf8b48e in __fastfail (code=8) at D:/a/msys64/mingw64/include/_mingw.h:605
#1  __chk_fail () at C:/M/B/src/mingw-w64/mingw-w64-crt/ssp/chk_fail.c:18
#2  0x00007ffd5bf83143 in list_presets.isra () from C:\msys64\mingw64\bin\libmlt-7.dll
#3  0x00007ffd5bf830bf in list_presets.isra () from C:\msys64\mingw64\bin\libmlt-7.dll
#4  0x00007ffd5bf83239 in list_presets.isra () from C:\msys64\mingw64\bin\libmlt-7.dll
#5  0x00007ffd5bf83f73 in mlt_repository_presets () from C:\msys64\mingw64\bin\libmlt-7.dll
#6  0x00007ffd60ceaff8 in Mlt::Repository::presets() () from C:\msys64\mingw64\bin\libmlt++-7.dll
#7  0x00007ff617332acc in EncodeDock::EncodeDock (this=this@entry=0x61779a0, parent=parent@entry=0x266d070)
    at X:/Github/MINGW-packages/mingw-w64-shotcut/src/shotcut-24.02.29/src/docks/encodedock.cpp:59
#8  0x00007ff6173adfb2 in MainWindow::setupAndConnectDocks (this=this@entry=0x266d070)
    at X:/Github/MINGW-packages/mingw-w64-shotcut/src/shotcut-24.02.29/src/mainwindow.cpp:623
#9  0x00007ff6173b9446 in MainWindow::MainWindow (this=0x266d070)
    at X:/Github/MINGW-packages/mingw-w64-shotcut/src/shotcut-24.02.29/src/mainwindow.cpp:208
#10 0x00007ff6173b9820 in MainWindow::singleton ()
    at X:/Github/MINGW-packages/mingw-w64-shotcut/src/shotcut-24.02.29/src/mainwindow.cpp:798
#11 0x00007ff61739714d in qMain (argc=<optimized out>, argv=<optimized out>)
    at X:/Github/MINGW-packages/mingw-w64-shotcut/src/shotcut-24.02.29/src/main.cpp:422
#12 0x00007ff6174be9c7 in qtEntryPoint() ()
#13 0x00007ff6172d12ee in __tmainCRTStartup () at C:/M/B/src/mingw-w64/mingw-w64-crt/crt/crtexe.c:267
#14 0x00007ff6172d13e6 in WinMainCRTStartup () at C:/M/B/src/mingw-w64/mingw-w64-crt/crt/crtexe.c:157

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions