Crash when changing file associations #361

Closed
opened 2023-06-03 12:06:19 -04:00 by grishka · 2 comments
grishka commented 2023-06-03 12:06:19 -04:00 (Migrated from github.com)

Describe
Cog crashes when files are associated with it while it's running. Sometimes it also crashes just on its own with the same stack trace.

To Reproduce (delete if not applicable)
There are probably other ways to reproduce this but here's what does it reliably for me:

  1. Make a folder with two audio files of different types (I did it with tracker modules, but it'd probably work with anything else too)
  2. Make sure Cog is closed
  3. Associate one file type with Cog through the Finder properties window as shown in the video below
  4. Open this file, Cog launches
  5. Associate the second file type with Cog
  6. Watch it crash

Expected behavior
It shouldn't crash, obviously :)

Screenshots
Screencast of me reproducing the crash: https://disk.yandex.ru/i/deg8m5nvb-Iczw

Version information:*

  • macOS version: 13.4
  • Cog version: Version 2762 (2762-g6c0db041e)

Additional context
Complete crash log: Cog-2023-06-03-190102.txt

**Describe** Cog crashes when files are associated with it while it's running. Sometimes it also crashes just on its own with the same stack trace. **To Reproduce** (delete if not applicable) There are probably other ways to reproduce this but here's what does it reliably for me: 1. Make a folder with two audio files of different types (I did it with tracker modules, but it'd probably work with anything else too) 2. Make sure Cog is closed 3. Associate one file type with Cog through the Finder properties window as shown in the video below 4. Open this file, Cog launches 5. Associate the second file type with Cog 6. Watch it crash **Expected behavior** It shouldn't crash, obviously :) **Screenshots** Screencast of me reproducing the crash: https://disk.yandex.ru/i/deg8m5nvb-Iczw **Version information:*** - macOS version: 13.4 - Cog version: Version 2762 (2762-g6c0db041e) **Additional context** Complete crash log: [Cog-2023-06-03-190102.txt](https://github.com/losnoco/Cog/files/11643143/Cog-2023-06-03-190102.txt)
kode54 commented 2023-06-04 02:41:57 -04:00 (Migrated from github.com)

Wow, I had no idea that file type association changing started notifying the app of anything. I'll have to debug this.

Wow, I had no idea that file type association changing started notifying the app of anything. I'll have to debug this.
kode54 commented 2023-06-04 04:18:05 -04:00 (Migrated from github.com)

Would you mind consenting to the Firebase Crashlytics submission in Preferences, then trying to reproduce the crash? I can't make Xcode symbolicate the crash log you posted, and I can't reproduce the issue locally, either.

OH! Maybe you're doing the permission change on a folder that's added to the sidebar folder browser in the app? I'll have to check that.

Edit 2: Yeah, that did it. I reproduced the crash. I'll have to diagnose this.

Would you mind consenting to the Firebase Crashlytics submission in Preferences, then trying to reproduce the crash? I can't make Xcode symbolicate the crash log you posted, and I can't reproduce the issue locally, either. OH! Maybe you're doing the permission change on a folder that's added to the sidebar folder browser in the app? I'll have to check that. Edit 2: Yeah, that did it. I reproduced the crash. I'll have to diagnose this.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: chris/Cog#361
No description provided.