[GH-ISSUE #116] MenuManager.swift line 314 #65

Closed
opened 2026-03-03 01:09:51 +03:00 by kerem · 2 comments
Owner

Originally created by @Econa77 on GitHub (Oct 29, 2016).
Original GitHub issue: https://github.com/Clipy/Clipy/issues/116

Originally assigned to: @Econa77 on GitHub.

in MenuManager.((makeClipMenuItem in _6E05F2567A8A9365E862DF96EA0D8059)(CPYClip, index : Int, listNumber : Int) -> NSMenuItem).(closure #1)

  • Number of crashes: 49
  • Impacted devices: 47

There's a lot more information about this crash on crashlytics.com:
https://fabric.io/econa77/mac/apps/com.clipy-app.clipy/issues/5795d053ffcdc04250663888

Originally created by @Econa77 on GitHub (Oct 29, 2016). Original GitHub issue: https://github.com/Clipy/Clipy/issues/116 Originally assigned to: @Econa77 on GitHub. #### in MenuManager.((makeClipMenuItem in _6E05F2567A8A9365E862DF96EA0D8059)(CPYClip, index : Int, listNumber : Int) -> NSMenuItem).(closure #1) - Number of crashes: 49 - Impacted devices: 47 There's a lot more information about this crash on crashlytics.com: [https://fabric.io/econa77/mac/apps/com.clipy-app.clipy/issues/5795d053ffcdc04250663888](https://fabric.io/econa77/mac/apps/com.clipy-app.clipy/issues/5795d053ffcdc04250663888)
kerem 2026-03-03 01:09:51 +03:00
  • closed this issue
  • added the
    crash
    label
Author
Owner

@algrid commented on GitHub (Nov 12, 2016):

Just as an hypothesis - in this piece of code:

PINCache.sharedCache().objectForKey(clip.thumbnailPath, block: { [weak menuItem] (cache, key, object) in
    if let image = object as? NSImage {
        menuItem?.image = image
    }
})

Is menuItem?.image = image executed on main thread? If no, it possibly can produce the crash.

<!-- gh-comment-id:260143285 --> @algrid commented on GitHub (Nov 12, 2016): Just as an hypothesis - in this piece of code: ``` PINCache.sharedCache().objectForKey(clip.thumbnailPath, block: { [weak menuItem] (cache, key, object) in if let image = object as? NSImage { menuItem?.image = image } }) ``` Is `menuItem?.image = image` executed on main thread? If no, it possibly can produce the crash.
Author
Owner

@Econa77 commented on GitHub (Nov 22, 2016):

@algrid Thanks for your advice. I fixed it 👍

<!-- gh-comment-id:262261383 --> @Econa77 commented on GitHub (Nov 22, 2016): @algrid Thanks for your advice. I fixed it 👍
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
starred/Clipy#65
No description provided.