leits / MeetingBar

🇺🇦 Your meetings at your fingertips in the macOS menu bar
https://meetingbar.app
Apache License 2.0
4.44k stars 192 forks source link

Bug: Crash at launch. `model configuration used to open the store is incompatible` #455

Closed bgulla closed 2 years ago

bgulla commented 2 years ago

App version Latest

Installation source

Describe the bug MeetingBar opens then instantly closes.

To Reproduce

> /Applications/MeetingBar.app/Contents/MacOS/MeetingBar

2022-05-17 10:12:23.146 MeetingBar[6618:6121383] XXX: countOfStores: 0, countOfAccounts: 1
2022-05-17 10:12:23.153 MeetingBar[6618:6121383] Error obtaining permanent ID: Error Domain=NSCocoaErrorDomain Code=134020 "The model configuration used to open the store is incompatible with the one that was used to create the store." UserInfo={NSUnderlyingException=Can't resolve how to assign objects to stores; Coordinator does not have any stores}
2022-05-17 10:12:23.382 MeetingBar[6618:6121380] Category EVENT was registered
2022-05-17 10:12:23.382 MeetingBar[6618:6121380] Category SNOOZE_EVENT was registered

Any help? I have uninstalled and reinstalled the application to no avail.

cdcharlebois commented 2 years ago

I'm also experiencing this and a fix would be great!

scorpio2k2 commented 2 years ago

Same here

homich1991 commented 2 years ago

Same problem. To add more logs:

❯ /Applications/MeetingBar.app/Contents/MacOS/MeetingBar 2022-05-18 11:12:43.637 MeetingBar[5096:41943] Category EVENT was registered 2022-05-18 11:12:43.637 MeetingBar[5096:41943] Category SNOOZE_EVENT was registered [1] 5096 illegal hardware instruction /Applications/MeetingBar.app/Contents/MacOS/MeetingBar

leits commented 2 years ago

@bgulla, @justinabrahms, @cdcharlebois, @scorpio2k2, @homich1991 thanks for the reports! Looks like I found out where the problem was and fixed it. Can you try this version? https://github.com/leits/MeetingBar/releases/tag/v4.0.5

GitHub
Release v4.0.5 · leits/MeetingBar
Fix crash on start Fix authUser for MacOS Calendar Fix advanced event filter
justinabrahms commented 2 years ago

No luck, sadly. https://gist.github.com/justinabrahms/bfcdd08a3662ce938f897b27623000e8

Gist
gist:bfcdd08a3662ce938f897b27623000e8
GitHub Gist: instantly share code, notes, and snippets.
leits commented 2 years ago

@justinabrahms Thanks, I narrowed the case. But I still need your help because I can't reproduce the problem myself.

There is a problem with the email of one of the participants in one of your meetings. Is there a non-human participant in your meetings? For example, a service or something.

justinabrahms commented 2 years ago

@leits how much of my calendar do you want me to look through? Just today?

scorpio2k2 commented 2 years ago

Same for me. btw it worked fine 2 versions ago.

leits commented 2 years ago

@leits how much of my calendar do you want me to look through? Just today?\

@justinabrahms, if you only use today's view (default), yes, only today.

leits commented 2 years ago

Same for me. btw it worked fine 2 versions ago.

@scorpio2k2, This is very strange because I returned the same code as before in that place. Could you get a crash report? Maybe this is another problem.

scorpio2k2 commented 2 years ago

❯ /Applications/MeetingBar.app/Contents/MacOS/MeetingBar
2022-05-18 22:54:11.410 MeetingBar[78866:9041921] XXX: countOfStores: 0, countOfAccounts: 1 2022-05-18 22:54:11.420 MeetingBar[78866:9041921] Error obtaining permanent ID: Error Domain=NSCocoaErrorDomain Code=134020 "The model configuration used to open the store is incompatible with the one that was used to create the store." UserInfo={NSUnderlyingException=Can't resolve how to assign objects to stores; Coordinator does not have any stores} 2022-05-18 22:54:11.498 MeetingBar[78866:9041921] Category EVENT was registered 2022-05-18 22:54:11.498 MeetingBar[78866:9041921] Category SNOOZE_EVENT was registered [1] 78866 trace trap /Applications/MeetingBar.app/Contents/MacOS/MeetingBar

leits commented 2 years ago

@scorpio2k2, can you try to get a .crash file? https://support.apple.com/guide/console/reports-cnsl664be99a/mac

There will be a traceback and I will be able to find which piece of code does not work.

Apple Support
View reports in Console on Mac
Use Console on your Mac to view the reports collected by your computer.
scorpio2k2 commented 2 years ago

Crash report https://gist.github.com/scorpio2k2/fd54bab7c55c6bb78a683714ae0d64ec

Gist
MeetingBar-2022-05-18-225411.ips
GitHub Gist: instantly share code, notes, and snippets.
justinabrahms commented 2 years ago

@leits I don't see any robots in my meetings today.

leits commented 2 years ago

One more try. Updated the dmg.

https://github.com/leits/MeetingBar/releases/download/v4.0.5/MeetingBar.dmg

leits commented 2 years ago

The problem is inside the built-in Swift MacOS library for working with events. When an application tries to use details about an event participant, it may have incorrect data, which causes the swift to crash.

justinabrahms commented 2 years ago

https://gist.github.com/justinabrahms/de0488af9f3cb9b25ee9e30b62883741 - latest version. If you give me some sort of debug builds, I can give you some logs or something.

Gist
gist:de0488af9f3cb9b25ee9e30b62883741
GitHub Gist: instantly share code, notes, and snippets.
homich1991 commented 2 years ago

Wow... today version 4.0.4 just start working for me.... I've just lanched the app and it works... weird

scorpio2k2 commented 2 years ago

Same here. I just started 4.0.5 version and works.

louisdecharson commented 2 years ago

Dear @leits, It still crashes for me. I am running macOS 12.4 with MeetingBar v4.0.5

► ~/ /Applications/MeetingBar.app/Contents/MacOS/MeetingBar
2022-05-19 19:48:02.510 MeetingBar[11191:3087977] XXX: countOfStores: 0, countOfAccounts: 1
2022-05-19 19:48:02.557 MeetingBar[11191:3087977] Error obtaining permanent ID: Error Domain=NSCocoaErrorDomain Code=134020 "The model configuration used to open the store is incompatible with the one that was used to create the store." UserInfo={NSUnderlyingException=Can't resolve how to assign objects to stores; Coordinator does not have any stores}
2022-05-19 19:48:03.023 MeetingBar[11191:3087971] Category EVENT was registered
2022-05-19 19:48:03.024 MeetingBar[11191:3087971] Category SNOOZE_EVENT was registered
[1]    11191 illegal hardware instruction  /Applications/MeetingBar.app/Contents/MacOS/MeetingBar

Crash report: MeetingBar-2022-05-19-194803.txt

justinabrahms commented 2 years ago

Alright. So on Wednesday, the app crashed. Thursday was fine. Friday it crashes again. Looking at my calendar, there are no meetings that are a repeat from Wednesday that aren't also on Thursday.

Not sure if that helps at all.

scorpio2k2 commented 2 years ago

crashed again. Same issue.

therealmacjeezy commented 2 years ago

I also had an issue with v4.0.5 crashing this morning, when it was working as expected on Friday. I did some digging through my calendar (looking for anything mentioned earlier in this thread), after opening up the Calendar app I noticed I had two "Invitations" about two meetings being canceled and wanting to be removed from the calendar.

After manually moving them from the Calendar app, MeetingBar opened as expected. It seems like it didn't know how to handle the invitations about the meeting being canceled.

Additional Information:

I've uploaded the crashlog for you too. Hopefully this helps. Again, after accepting the two invitations within the Calendar app, MeetingBar opened as expected.

MeetingBar-2022-05-23-084718.ips

Gist
MeetingBar-2022-05-23-084718.ips
MeetingBar-2022-05-23-084718.ips. GitHub Gist: instantly share code, notes, and snippets.
leits commented 2 years ago

Thank you all for the reports!

@amcedwards submitted the fix in #461.

@therealmacjeezy, @scorpio2k2, @justinabrahms @louisdecharson @homich1991 Please, try the new version: https://github.com/leits/MeetingBar/releases/download/v4.0.5/MeetingBar.dmg

scorpio2k2 commented 2 years ago

it works for me.

therealmacjeezy commented 2 years ago

Sorry for the delay! It works for me! Thank you!

leits commented 2 years ago

Awesome, thank you all! Released!

homich1991 commented 2 years ago

Looks like it works! Thanks a lot!