audacity icon indicating copy to clipboard operation
audacity copied to clipboard

Audacity 3.1.0 crash when trying to open the file manager

Open Leoriem-code opened this issue 4 years ago • 2 comments

Describe the bug I'm on linux, I build Audacity following the instruction (BUILDING.md) because I wanted to upgrade from the previous version (2.4.2) When launching Audacity via command line and using Ctrl+O to open a file, audacity crash and the following message appear:

GLib-GObject-CRITICAL **: 16:29:11.700: g_object_unref: assertion 'G_IS_OBJECT (object)' failed
Segmentation fault

To Reproduce Steps to reproduce the behavior:

  1. Open terminal
  2. git clone https://github.com/audacity/audacity/
  3. mkdir build && cd build
  4. cmake -G "Unix Makefiles" -Daudacity_use_ffmpeg=loaded ../audacity
  5. make
  6. cd bin/Debug && mkdir "Portable Settings"
  7. ./audacity
  8. Use Ctrl+O (or go to file File > Open...)
  9. Audacity crash and the message appear

Expected behavior The file manager (in my case Dolphin) should open to let me select a file

Screenshots Only the default appearance

Additional information (please complete the following information):

  • OS: Debian
  • Version: Audacity 3.1.0

Additional context When opening files via the 'File > Recent Files' category, Audacity does not crash, and I can work on the audio. I use a dual-boot disk and audacity on Windows 10 work.

Here is all output, from ./audacity to the crash:

(process:66012): Gdk-CRITICAL **: 16:29:11.698: IA__gdk_screen_get_root_window: assertion 'GDK_IS_SCREEN (screen)' failed

(process:66012): Gdk-CRITICAL **: 16:29:11.698: _gdk_pixmap_new: assertion '(drawable != NULL) || (depth != -1)' failed
/home/leo/.conan/data/wxwidgets/3.1.3.1-audacity/_/_/build/16b6333f64afa8c5345b25bebdaf714898bf3f9c/source_subfolder/src/gtk/bitmap.cpp(827): assert ""IsOk()"" failed in ConvertToImage(): invalid bitmap
/home/leo/.conan/data/wxwidgets/3.1.3.1-audacity/_/_/build/16b6333f64afa8c5345b25bebdaf714898bf3f9c/source_subfolder/src/common/image.cpp(2172): assert ""IsOk()"" failed in SetMaskColour(): invalid image
/home/leo/.conan/data/wxwidgets/3.1.3.1-audacity/_/_/build/16b6333f64afa8c5345b25bebdaf714898bf3f9c/source_subfolder/src/common/image.cpp(2223): assert ""IsOk()"" failed in SetMask(): invalid image
/home/leo/.conan/data/wxwidgets/3.1.3.1-audacity/_/_/build/16b6333f64afa8c5345b25bebdaf714898bf3f9c/source_subfolder/src/common/image.cpp(1853): assert ""IsOk()"" failed in GetWidth(): invalid image
/home/leo/.conan/data/wxwidgets/3.1.3.1-audacity/_/_/build/16b6333f64afa8c5345b25bebdaf714898bf3f9c/source_subfolder/src/common/image.cpp(1860): assert ""IsOk()"" failed in GetHeight(): invalid image
/home/leo/.conan/data/wxwidgets/3.1.3.1-audacity/_/_/build/16b6333f64afa8c5345b25bebdaf714898bf3f9c/source_subfolder/src/common/image.cpp(2112): assert ""IsOk()"" failed in GetAlpha(): invalid image
/home/leo/.conan/data/wxwidgets/3.1.3.1-audacity/_/_/build/16b6333f64afa8c5345b25bebdaf714898bf3f9c/source_subfolder/src/common/image.cpp(2232): assert ""IsOk()"" failed in HasMask(): invalid image
/home/leo/.conan/data/wxwidgets/3.1.3.1-audacity/_/_/build/16b6333f64afa8c5345b25bebdaf714898bf3f9c/source_subfolder/src/common/image.cpp(1986): assert ""IsOk()"" failed in GetData(): invalid image

(process:66012): GdkPixbuf-CRITICAL **: 16:29:11.699: gdk_pixbuf_new_from_data: assertion 'data != NULL' failed

(process:66012): Gdk-CRITICAL **: 16:29:11.699: IA__gdk_screen_get_root_window: assertion 'GDK_IS_SCREEN (screen)' failed

(process:66012): Gdk-CRITICAL **: 16:29:11.699: IA__gdk_drawable_get_display: assertion 'GDK_IS_DRAWABLE (drawable)' failed

(process:66012): Gdk-CRITICAL **: 16:29:11.700: IA__gdk_cursor_new_from_pixbuf: assertion 'GDK_IS_DISPLAY (display)' failed

(process:66012): GLib-GObject-CRITICAL **: 16:29:11.700: g_object_unref: assertion 'G_IS_OBJECT (object)' failed
Segmentation fault

Leoriem-code avatar Nov 07 '21 16:11 Leoriem-code

@crsib Could you take a look, please?

Penikov avatar Nov 08 '21 08:11 Penikov

Some problem on Windows 10 21H2, I can open file File > Open... ,and popup a Windows Resource Manage to choose a file, then stucked.

baozidai avatar Jul 31 '22 14:07 baozidai

could not reproduce with a selfcompiled 834d47c1cb3cf246f0e9db365bc2dc43a52d5718

LWinterberg avatar Dec 23 '22 16:12 LWinterberg