Can barely use Krita on my M1 Mac, it crashes before even opening?

Hi,
Is there some setting I’m not aware of that needs to be configured on M1 MacBooks?
I recently started using Krita a few months ago when I got my MacBook Pro with the M1 processor.
It opens without issues about 10% of the time. Mostly it crashes right after the loading screen image, and I get a system report. It happens whether I’m opening an image file, psd, kra or even just opening the application without a file.
Sometimes if I reboot the laptop it works but even that is not a sure way to fix the issue.

Please let me know if you have any experience or solutions with this issue, since its making the application pretty much unusable for me. Thanks!

The M1 processor is the new in-house processor by apple. Currently, not all applications are built for it. There is an ongoing effort to build Krita to run natively on it. This is not yet released. Until then apple is emulating the intel chip for Krita through Rosetta. This is not without issue. So I would suggest waiting for official release of Krita for M1

Weird, because I have run the intel build of Krita on my m1 quite often and I’ve never seen a crash. We’re working on universal builds. I thought we had succeeded, but there is still a bit of work to be done before universal builds roll out of the binary factory.

I’m not sure whether that will solve your problems, because like I said, I don’t see any special crashy behaviour with the intel builds… Though it’s still a problem that every time we ask macOS to display a new frame using OpenGL it drops input events, which means making smooth curves still is pretty hard on macOS.

This is so weird, what krita version are you using?? I tried regular 4.4.2 and did not experience an increase on crashes.

Krita native for M1 is soon to be ready for testing (we have some internal builds). so if the stability issues does not solve with a recent version of krita, you won’t have to wait long for the native version for your M1 mac to test and see if running native solves the crashes.

Krita 4.4.2 crashes on macOS Big Sur for Intel very often for me, maybe it is not M1 specific? For me it crashes every second hour in average. But I was not able to reproduce the crash, it looks random to me at first.

Hm… That looks like something we should investigate.

  • Is that on hardware with a discrete GPU? What’s your system’s model?
  • Does it also happen if you disable canvas acceleration?
  • Do you get any kind of crash log from macOS

It is a iMac 27" 2019, intel i5 3.7ghz 6-core, with 32GB DDR4 2667mhz ram, radeon pro 580X 8GB gpu. System is Big Sur 11.2.

I have canvas graphics acceleration enabled OpenGL, high quality filtering and use texture buffer. I never tried without acceleration.

Krita just closes immediately without message. krita-sysinfo.log is empty and in krita.log
there are 10 messages with: KRITA DID NOT CLOSE CORRECTLY. But I see now this message in the krita.log is always after I close the app normally.

I have a hunch that krita closes when I switch from the mouse on the iMac display to the pen and cintiq, but I’m not exactly sure. it has happened that krita closes immediately.

Cause i am not sure why this happens, I never reported it. Is there something else I could try? Enable a log in the settings? Or another log file I missed? Maybe debug logging?

If you’ve got xcode installed, you can try to run krita in lldb and see whether you can get a backtrace out of that. I’ve also sometimes seen semi-useful os generated crash logs, but maybe that needs xcode, too. I haven’t got a mac without xcode :slight_smile:

Does that report contain anything like a crash log? If so, we’d like to see that :slight_smile:

Okay i had a crash now, was in the fill tool, want to switch to the freehand brush tool, and then krita closed. After restart Krita, I was not able to reproduce it. I could write down all the crashes and when I have a few situations write them again, would that be helpful even if I can’t reproduce it?

Honestly, I know absolutely nothing about xcode and development. I would need a guide on what exactly to do after installing xcode.

If a system report could help, where should it be this information? I was not able to see any crash logs in the system report, but I was probably looking in the wrong place.

If you go to the applications overview and type “console” you should get a Console window with on the left an entry “Crash reports”. Could you check whether that contains any krita-related information?

No, there is no crash report :frowning:

I’m afraid I’m out of ideas in that case :frowning:

I’m using a MacBook Pro 2020 13", with the M1 chip, 16gb.

I’ve just disabled canvas acceleration, so will have to see if that changes anything.

I dont have the system report right now but when it happens I’ll share it here.

That’s the same device I’m using.

Again a crash, I was in the Layer Filter Mask for Levels, then I tap on cancel, tap to the canvas, and immediately krita closed. :roll_eyes:

It looks like that it happens when I was in another tool or popup menu or tab, and then I close it or change the tool or whatever and in the second I tap with the pen, krita crashes. But this is randomly as I said, maybe every 1-2 hour once. But not in one same session of 2-3h. Sometimes I work straight for 2h and it crashes. Now it was after I started up krita and created a new canvas and after 5min it happens.

And that really isn’t normal… Not even on macOS.

Okay, these non-reproducible crashes are the worst. No one could help with that. There is simply a lack of information.

And I cannot even try to reproduce them by painting for a couple of hours on my M1 macbook pro, since that isn’t compatible with my cintiq… (And also because I usually start hacking again after half an hour of sketching.)

They contain addresses and can be “mapped” to the actual line of code if, and only if, we have the exact same version that crashed (which we do). Im almost sure macOS’s logs for krita contain more detailed info as we ship with debug symbols, however im not sure if that is the case because i have always Xcode installed

@Troyee_Barua if you are up for an adventure there is already an universal build from stable branch, 4.4.4-alpha, for the M1 macos, notice it is not signed and you should go to terminal and execute xattr -d com.apple.quarantine /Applications/krita.app to allow macos to run (krita.app must point to the location of the krita.app bundle in disk) Krita_Stable_MacOS_Build #304 [Jenkins] The build should run in native arm64 arch.