Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

M1 mac synfig immediate crash #3251

Open
ADHDFairy opened this issue Oct 24, 2023 · 23 comments
Open

M1 mac synfig immediate crash #3251

ADHDFairy opened this issue Oct 24, 2023 · 23 comments

Comments

@ADHDFairy
Copy link

When I open the program, I get the loading thing, and then I see what the software should look like for about a fraction of a second, and then it will crash and be as if I never opened it.

I have an M1 Mac with Sonoma 14.0

I'm not sure how to reproduce the error unless you have this system. Unless it's happening on other platforms too.

I'm not sure how to take a screenshot since it's instantly closing, it's hard to show that in a screenshot.

I don't know how to fix it on my own if there's a solution.

@yoSachinkr
Copy link

I'm not sure how to take a screenshot since it's instantly closing, it's hard to show that in a screenshot

Do a screen recording.

@BobSynfig
Copy link
Collaborator

Known issue of compatibility with the M1
#2802
More recently
https://forums.synfig.org/t/crash-on-startup-mac-monterey/13338
https://forums.synfig.org/t/immediate-crash-on-sonoma-14-0/14460

Try to compile it yourself on your machine or use a Linux VM.
I doubt that there are (yet) one of the devs who owns a M1 to test and debug (or to adapt the toolchain)
If you start it from a console, you may have the error displayed.

@ADHDFairy
Copy link
Author

I'm not sure how to take a screenshot since it's instantly closing, it's hard to show that in a screenshot

Do a screen recording.

It's too big of a file unfortunately

@ice0
Copy link
Collaborator

ice0 commented Oct 26, 2023

@ADHDFairy I will take a look.

@ice0 ice0 added the macOS label Oct 26, 2023
@ice0
Copy link
Collaborator

ice0 commented Oct 29, 2023

@ADHDFairy
Can you check this build?
UPD: removed broken build

@aik762
Copy link

aik762 commented Oct 29, 2023

Nope -- this build does not even run on M1 at all...

@BobSynfig
Copy link
Collaborator

Did anyone start it from the command line (console) to obtain the error messages?

@ice0
Copy link
Collaborator

ice0 commented Nov 1, 2023

Did anyone start it from the command line (console) to obtain the error messages?

Yes. I did it already. Continue investigation :)

@rodolforg
Copy link
Contributor

Does synfig cli or tests work?

@ice0
Copy link
Collaborator

ice0 commented Nov 3, 2023

Does synfig cli or tests work?

Yes. synfig cli works (after setting RPATH).

Synfig Studio doesn't work and it looks like a GTK issue. After I rebuilt it with a newer GTK, everything worked fine.
If you're interested, this is the startup log for 1.4.4. Unfortunately, there is no backtrace here.
It looks like GTK exits correctly on assert, or maybe it's because it's running under the Rosetta emulator (x64 -> arm).

lldb ./SynfigStudio
(lldb) target create "./SynfigStudio"
Current executable set to '/Users/ice0/Desktop/SynfigStudio.app/Contents/MacOS/SynfigStudio' (x86_64).
(lldb) r
Process 25845 launched: '/Users/ice0/Desktop/SynfigStudio.app/Contents/MacOS/SynfigStudio' (x86_64)
warning: libobjc.A.dylib is being read from process memory. This indicates that LLDB could not read from the host's in-memory shared cache. This will likely reduce debugging performance.


   synfig studio -- starting up application...

2023-11-02 16:45:29.828641-0700 synfigstudio[25851:274765] [Window] Warning: -[NSWindow makeKeyWindow] called on GdkQuartzNSWindow 0x7faf75f2e3e0 which returned NO from -[NSWindow canBecomeKeyWindow].
synfig(25851) [16:45:30] info: Starting Subsystem "Sound"
synfig(25851) [16:45:30] info: Starting Subsystem "Types"
synfig(25851) [16:45:30] info: Starting Subsystem "Rendering"
synfig(25851) [16:45:30] info: rendering threads 4
synfig(25851) [16:45:30] info: Starting Subsystem "Modules"
synfig(25851) [16:45:30] info: Starting Subsystem "Layers"
synfig(25851) [16:45:30] info: Starting Subsystem "Targets"
synfig(25851) [16:45:30] info: Starting Subsystem "Importers"
synfig(25851) [16:45:30] info: Starting Subsystem "Cairo Importers"
synfig(25851) [16:45:30] info: Starting Subsystem "Thread Pool"
synfig(25851) [16:45:30] info: Loading modules from /Users/ice0/Desktop/SynfigStudio.app/Contents/Resources/etc/synfig_modules.cfg
synfig(25851) [16:45:30] info: Loading modules from /Users/ice0/Desktop/SynfigStudio.app/Contents/Resources/etc/synfig_modules.cfg
synfig(25851) [16:45:30] info: Loading lyr_std..
synfig(25851) [16:45:30] info: Attempting to register "lyr_std"
synfig(25851) [16:45:30] info: Found module "lyr_std"
synfig(25851) [16:45:30] info: Success for "lyr_std"
synfig(25851) [16:45:30] info: Loading lyr_freetype..
synfig(25851) [16:45:30] info: Attempting to register "lyr_freetype"
synfig(25851) [16:45:30] info: Found module "lyr_freetype"
synfig(25851) [16:45:30] info: Initializing FreeType...
synfig(25851) [16:45:30] info: Success for "lyr_freetype"
synfig(25851) [16:45:30] info: Loading mod_geometry..
synfig(25851) [16:45:30] info: Attempting to register "mod_geometry"
synfig(25851) [16:45:30] info: Found module "mod_geometry"
synfig(25851) [16:45:30] info: Success for "mod_geometry"
synfig(25851) [16:45:30] info: Loading mod_gradient..
synfig(25851) [16:45:30] info: Attempting to register "mod_gradient"
synfig(25851) [16:45:30] info: Found module "mod_gradient"
synfig(25851) [16:45:30] info: Success for "mod_gradient"
synfig(25851) [16:45:30] info: Loading mod_particle..
synfig(25851) [16:45:30] info: Attempting to register "mod_particle"
synfig(25851) [16:45:30] info: Found module "mod_particle"
synfig(25851) [16:45:30] info: Success for "mod_particle"
synfig(25851) [16:45:30] info: Loading mod_example..
synfig(25851) [16:45:30] info: Attempting to register "mod_example"
synfig(25851) [16:45:30] info: Found module "mod_example"
synfig(25851) [16:45:30] info: Success for "mod_example"
synfig(25851) [16:45:30] info: Loading mod_gif..
synfig(25851) [16:45:30] info: Attempting to register "mod_gif"
synfig(25851) [16:45:30] info: Found module "mod_gif"
synfig(25851) [16:45:30] info: Success for "mod_gif"
synfig(25851) [16:45:30] info: Loading mod_imagemagick..
synfig(25851) [16:45:30] info: Attempting to register "mod_imagemagick"
synfig(25851) [16:45:30] info: Found module "mod_imagemagick"
synfig(25851) [16:45:30] info: Success for "mod_imagemagick"
synfig(25851) [16:45:30] info: Loading mod_magickpp..
synfig(25851) [16:45:30] info: Attempting to register "mod_magickpp"
synfig(25851) [16:45:30] info: Found module "mod_magickpp"
synfig(25851) [16:45:30] info: Success for "mod_magickpp"
synfig(25851) [16:45:30] info: Loading mod_mng..
synfig(25851) [16:45:30] info: Attempting to register "mod_mng"
synfig(25851) [16:45:30] warning: Unable to find module "mod_mng" (file not found)
synfig(25851) [16:45:30] info: Loading mod_noise..
synfig(25851) [16:45:30] info: Attempting to register "mod_noise"
synfig(25851) [16:45:30] info: Found module "mod_noise"
synfig(25851) [16:45:30] info: Success for "mod_noise"
synfig(25851) [16:45:30] info: Loading mod_filter..
synfig(25851) [16:45:30] info: Attempting to register "mod_filter"
synfig(25851) [16:45:30] info: Found module "mod_filter"
synfig(25851) [16:45:30] info: Success for "mod_filter"
synfig(25851) [16:45:30] info: Loading mod_ffmpeg..
synfig(25851) [16:45:30] info: Attempting to register "mod_ffmpeg"
synfig(25851) [16:45:30] info: Found module "mod_ffmpeg"
synfig(25851) [16:45:30] info: Success for "mod_ffmpeg"
synfig(25851) [16:45:30] info: Loading mod_bmp..
synfig(25851) [16:45:30] info: Attempting to register "mod_bmp"
synfig(25851) [16:45:30] info: Found module "mod_bmp"
synfig(25851) [16:45:30] info: Success for "mod_bmp"
synfig(25851) [16:45:30] info: Loading mod_dv..
synfig(25851) [16:45:30] info: Attempting to register "mod_dv"
synfig(25851) [16:45:30] info: Found module "mod_dv"
synfig(25851) [16:45:30] info: Success for "mod_dv"
synfig(25851) [16:45:30] info: Loading mod_png..
synfig(25851) [16:45:30] info: Attempting to register "mod_png"
synfig(25851) [16:45:30] info: Found module "mod_png"
synfig(25851) [16:45:30] info: Success for "mod_png"
synfig(25851) [16:45:30] info: Loading mod_ppm..
synfig(25851) [16:45:30] info: Attempting to register "mod_ppm"
synfig(25851) [16:45:30] info: Found module "mod_ppm"
synfig(25851) [16:45:30] info: Success for "mod_ppm"
synfig(25851) [16:45:30] info: Loading mod_openexr..
synfig(25851) [16:45:30] info: Attempting to register "mod_openexr"
synfig(25851) [16:45:30] warning: Unable to find module "mod_openexr" (file not found)
synfig(25851) [16:45:30] info: Loading mod_jpeg..
synfig(25851) [16:45:30] info: Attempting to register "mod_jpeg"
synfig(25851) [16:45:30] info: Found module "mod_jpeg"
synfig(25851) [16:45:30] info: Success for "mod_jpeg"
synfig(25851) [16:45:30] info: Loading mod_libavcodec..
synfig(25851) [16:45:30] info: Attempting to register "mod_libavcodec"
synfig(25851) [16:45:30] warning: Unable to find module "mod_libavcodec" (file not found)
synfig(25851) [16:45:30] info: Loading mod_yuv420p..
synfig(25851) [16:45:30] info: Attempting to register "mod_yuv420p"
synfig(25851) [16:45:30] info: Found module "mod_yuv420p"
synfig(25851) [16:45:30] info: Success for "mod_yuv420p"
synfig(25851) [16:45:30] info: Loading mod_svg..
synfig(25851) [16:45:30] info: Attempting to register "mod_svg"
synfig(25851) [16:45:30] info: Found module "mod_svg"
synfig(25851) [16:45:30] info: Success for "mod_svg"
synfig(25851) [16:45:30] info: DONE
synfig(25851) [16:45:30] info: Loading Basic Settings...
synfig(25851) [16:45:30] info: Loading Plugins...
synfig(25851) [16:45:30] info: Loading plugins from /Users/ice0/Desktop/SynfigStudio.app/Contents/Resources//share/synfig/plugins
synfig(25851) [16:45:30] info:    Loading plugin: view-unhide-all-layers
synfig(25851) [16:45:30] info:    Loading plugin: add-skeleton-simple
synfig(25851) [16:45:30] info:    Loading plugin: lottie-exporter
synfig(25851) [16:45:30] info: Loading plugins from /Users/ice0/Library/Synfig/plugins
synfig(25851) [16:45:30] info: Init UI Manager...
synfig(25851) [16:45:30] info: Init Dock Manager...
synfig(25851) [16:45:30] info: Init State Manager...
synfig(25851) [16:45:30] info: Init Main Window...
synfig(25851) [16:45:30] info: Init Toolbox...
synfig(25851) [16:45:30] info: Init About Dialog...
synfig(25851) [16:45:30] info: Init Tool Options...
synfig(25851) [16:45:30] info: Init History...
synfig(25851) [16:45:30] info: Init Canvases...
synfig(25851) [16:45:30] info: Init Keyframes...
synfig(25851) [16:45:30] info: Init Layers...
synfig(25851) [16:45:30] info: Init Parameters...
synfig(25851) [16:45:30] info: Init MetaData...
synfig(25851) [16:45:30] info: Init Library...
synfig(25851) [16:45:30] info: Init Info...
synfig(25851) [16:45:30] info: Init Navigator...
synfig(25851) [16:45:30] info: Init SoundWave...
synfig(25851) [16:45:31] info: Init Timetrack...
synfig(25851) [16:45:31] info: Init Curve Editor...
synfig(25851) [16:45:31] info: Init Layer Sets...
synfig(25851) [16:45:31] info: Init Color Dialog...
synfig(25851) [16:45:31] info: Init Gradient Dialog...
synfig(25851) [16:45:31] info: Init DeviceTracker...
synfig(25851) [16:45:31] info: Init ModPalette...
synfig(25851) [16:45:31] info: Init Setup Dialog...
synfig(25851) [16:45:31] info: Init Input Dialog...
synfig(25851) [16:45:31] info: Loading Custom Workspace List...
synfig(25851) [16:45:31] info: Init auto recovery...
synfig(25851) [16:45:31] info: Loading Settings...
synfig(25851) [16:45:31] info: Init Tools...
synfig(25851) [16:45:31] info: Checking auto-recover...
synfig(25851) [16:45:31] info: Done.

(synfigstudio:25851): Gtk-WARNING **: Drawing a gadget with negative dimensions. Did you forget to allocate a size? (node header owner gtkmm__GtkNotebook)

(synfigstudio:25851): Gtk-WARNING **: Drawing a gadget with negative dimensions. Did you forget to allocate a size? (node tabs owner gtkmm__GtkNotebook)

(synfigstudio:25851): Gtk-WARNING **: Drawing a gadget with negative dimensions. Did you forget to allocate a size? (node tab owner gtkmm__GtkNotebook)
Assertion failed: (!surface->finished), function _cairo_surface_release_source_image, file cairo-surface.c, line 2014.
Process 25845 exited with status = 6 (0x00000006) 

@ice0
Copy link
Collaborator

ice0 commented Nov 3, 2023

@orieg
Copy link

orieg commented Nov 3, 2023

@ice0 I just tried your new build on a M1 with Sonoma. The app seems corrupted.

image

@orieg
Copy link

orieg commented Nov 3, 2023

FYI, I was able to build from source on M1 Sonoma, but I had to comment out the following tests in node.ccp so it could build.

void find_node_returns_null_on_not_found()
{
	NodeX node;

	// ASSERT_EQUAL(nullptr, find_node(GUID::zero()));

	GUID not_used_guid;

	// ASSERT_EQUAL(nullptr, find_node(not_used_guid));
}

@ice0
Copy link
Collaborator

ice0 commented Nov 3, 2023

@ice0 I just tried your new build on a M1 with Sonoma. The app seems corrupted.

Hi! Thank you for checking. Can you test the new build?
I didn't sign .dmg the first time, it looks like it needs to be signed too.

https://coolbug.org/downloads/morevna/builds/SynfigStudio-1.7.0-arm64-2023-11-04.dmg

@orieg
Copy link

orieg commented Nov 4, 2023

@ice0 works!

@aik762
Copy link

aik762 commented Nov 16, 2023 via email

@BobSynfig
Copy link
Collaborator

I don't see any attachment (not sure it works with emails)
But I do see an unsubscribe direct link ;)
Please edit your message in order to avoid to be unsubscribed (maybe it has been done by someone already, you will then have to subscribe again)

@aik762
Copy link

aik762 commented Nov 19, 2023

Well, I guess e-mail attachments don't get through. Let me try it again from here.
error_20231116.log

@BobSynfig
Copy link
Collaborator

Most relevant part at the end (ANSI color codes removed for better reading):

(synfigstudio:54133): Gtk-WARNING **: Drawing a gadget with negative dimensions. Did you forget to allocate a size? (node header owner gtkmm__GtkNotebook)

(synfigstudio:54133): Gtk-WARNING **: Drawing a gadget with negative dimensions. Did you forget to allocate a size? (node tabs owner gtkmm__GtkNotebook)

(synfigstudio:54133): Gtk-WARNING **: Drawing a gadget with negative dimensions. Did you forget to allocate a size? (node tab owner gtkmm__GtkNotebook)

(synfigstudio:54133): Gtk-CRITICAL **: _gtk_tree_view_column_unrealize_button: assertion 'priv->window != NULL' failed

(synfigstudio:54133): Gtk-CRITICAL **: _gtk_tree_view_column_unrealize_button: assertion 'priv->window != NULL' failed

(synfigstudio:54133): Gtk-CRITICAL **: _gtk_tree_view_column_unrealize_button: assertion 'priv->window != NULL' failed

(synfigstudio:54133): Gtk-CRITICAL **: _gtk_tree_view_column_unrealize_button: assertion 'priv->window != NULL' failed

(synfigstudio:54133): Gtk-CRITICAL **: _gtk_tree_view_column_unrealize_button: assertion 'priv->window != NULL' failed

(synfigstudio:54133): Gtk-CRITICAL **: gtk_widget_unregister_window: assertion 'GDK_IS_WINDOW (window)' failed

(synfigstudio:54133): Gdk-CRITICAL **: _gdk_window_destroy_hierarchy: assertion 'GDK_IS_WINDOW (window)' failed

(synfigstudio:54133): GLib-GObject-CRITICAL **: g_object_unref: assertion 'G_IS_OBJECT (object)' failed

(synfigstudio:54133): Gtk-CRITICAL **: gtk_widget_unregister_window: assertion 'GDK_IS_WINDOW (window)' failed

(synfigstudio:54133): Gdk-CRITICAL **: _gdk_window_destroy_hierarchy: assertion 'GDK_IS_WINDOW (window)' failed

(synfigstudio:54133): GLib-GObject-CRITICAL **: g_object_unref: assertion 'G_IS_OBJECT (object)' failed

(synfigstudio:54133): Gtk-CRITICAL **: gtk_widget_unregister_window: assertion 'GDK_IS_WINDOW (window)' failed

(synfigstudio:54133): Gdk-CRITICAL **: _gdk_window_destroy_hierarchy: assertion 'GDK_IS_WINDOW (window)' failed

(synfigstudio:54133): GLib-GObject-CRITICAL **: g_object_unref: assertion 'G_IS_OBJECT (object)' failed

(synfigstudio:54133): Gtk-WARNING **: Allocating size to gtkmm__GtkWindow 0x7fd1fca5e540 without calling gtk_widget_get_preferred_width/height(). How does the code know the size to allocate?

(synfigstudio:54133): Gtk-WARNING **: Allocating size to gtkmm__GtkNotebook 0x7fd1fdc93020 without calling gtk_widget_get_preferred_width/height(). How does the code know the size to allocate?
Segmentation fault: 11
$ 

@ice0
Copy link
Collaborator

ice0 commented Nov 20, 2023

Hi, guys!

@aik762 Have you tried this build on Sonoma?
https://coolbug.org/downloads/morevna/builds/SynfigStudio-1.7.0-arm64-2023-11-04.dmg

@aik762
Copy link

aik762 commented Nov 20, 2023

Hello @ice0 ,

Nice job! It works, it works, it works!!!

Thank you!

@taveren
Copy link

taveren commented Jan 8, 2024

Sorry guys, but I have the same issue on intel macbook with Sonoma 14.1.1.

Applicatiton just closes after start.
https://github.com/synfig/synfig/assets/5811739/64a9406c-3e0a-441a-88d8-760e04453595

Any thouts what is wrong?

@BobSynfig
Copy link
Collaborator

BobSynfig commented Jan 8, 2024

@taveren
This has been fixed (see the comment of 20 nov 2023 for a test version), but not integrated yet as written in #3293

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

8 participants