Backtrace

From Strawberry Music Player Wiki
Jump to navigation Jump to search

How to do a backtrace to report the crash.

Linux

   gdb strawberry
   run

After it crashes do:

   bt

Windows MinGW

Install the latest debug version from https://builds.strawberrymusicplayer.org/windows/ Open a command prompt.

   cd \
   cd "c:\program files\strawberry music player debug\"
   gdb strawberry.exe
   run

After it crashes do:

   bt

macOS

You need to compile according to the instructions:

   https://wiki.strawberrymusicplayer.org/wiki/Compile_macOS_using_homebrew

To compile in debug you need to use the following cmake command instead of the one in the instructions:

   cmake .. -DCMAKE_BUILD_TYPE=Debug -DBUILD_WITH_QT6=ON -DUSE_BUNDLE=OFF -DENABLE_SPARKLE=OFF

Then you can run Strawberry in debug with:

   lldb ./strawberry.app/Contents/MacOS/strawberry

After it crashes do:

   (lldb) thread backtrace
   (lldb) bt