microsoft / FigmaSharp

Create apps with Figma
MIT License
432 stars 23 forks source link

FigmaSharpApp silently quits when the token is no longer valid #184

Closed vancura closed 4 years ago

vancura commented 4 years ago

Steps to reproduce:

  1. Use a token, open a Figma URL as usual
  2. Quit FigmaSharpApp
  3. Revoke token
  4. Start FigmaSharpApp, open URL (token is pre-populated from keychain)
  5. Silent crash
vancura commented 4 years ago

It could actually be elsewhere:

default 15:01:39.334609+0200    runningboardd   Acquiring assertion targeting executable<FigmaSharpApp(501)> from originator [daemon<com.apple.coreservices.launchservicesd>:212] with description <RBSAssertionDescriptor; frontmost:12406; ID: 367-212-1179; target: 12406> attributes = {
    <RBSDomainAttribute: 0x7ff793d2b020; domain: com.apple.launchservicesd; name: RoleUserInteractiveFocal; sourceEnvironment: 0x0>;
}
default 15:01:39.334700+0200    runningboardd   Assertion 367-212-1179 (target:executable<FigmaSharpApp(501)>) will be created as active
default 15:01:39.336447+0200    runningboardd   [executable<FigmaSharpApp(501)>:12406] Ignoring jetsam update because this process is not memory-managed
default 15:01:39.337609+0200    runningboardd   [executable<FigmaSharpApp(501)>:12406] Set darwin role to: UserInteractiveFocal
default 15:01:39.338141+0200    runningboardd   [executable<FigmaSharpApp(501)>:12406] Ignoring GPU update because this process is not GPU managed
default 15:01:39.338469+0200    runningboardd   Finished acquiring assertion 367-212-1179 (target:executable<FigmaSharpApp(501)>)
error   15:01:39.514101+0200    FigmaSharpApp   cannot open file at line 43353 of [378230ae7f]
error   15:01:39.514112+0200    FigmaSharpApp   os_unix.c:43353: (2) open(/var/db/DetachedSignatures) - No such file or directory
error   15:01:39.514801+0200    FigmaSharpApp   cannot open file at line 43353 of [378230ae7f]
error   15:01:39.514811+0200    FigmaSharpApp   os_unix.c:43353: (2) open(/var/db/DetachedSignatures) - No such file or directory
default 15:01:39.514951+0200    FigmaSharpApp   MacOS error: -67062
default 15:01:39.533334+0200    FigmaSharpApp   CSSM Exception: -2147413719 CSSMERR_DL_INVALID_UNIQUE_INDEX_DATA
default 15:01:39.535171+0200    FigmaSharpApp   CSSM Exception: -2147413719 CSSMERR_DL_INVALID_UNIQUE_INDEX_DATA
default 15:01:39.537014+0200    FigmaSharpApp   CSSM Exception: -2147413719 CSSMERR_DL_INVALID_UNIQUE_INDEX_DATA
default 15:01:39.539072+0200    FigmaSharpApp   possible duplicate, trying to delete invalid items
default 15:01:39.539257+0200    FigmaSharpApp   no unique id, using 6 attributes from mDbAttributes
default 15:01:39.541470+0200    FigmaSharpApp   duplicate item exception is real; throwing it on
default 15:01:39.541517+0200    FigmaSharpApp   caught CssmError during add: -2147413719 CSSMERR_DL_INVALID_UNIQUE_INDEX_DATA
default 15:01:39.708363+0200    mDNSResponder   [R8166] DNSServiceCreateConnection START PID[12406](FigmaSharpApp)
default 15:01:39.708420+0200    mDNSResponder   [R8167] DNSServiceQueryRecord(15000, 0, <private>, Addr) START PID[12406](FigmaSharpApp)
default 15:01:39.708798+0200    mDNSResponder   [R8168] DNSServiceQueryRecord(15000, 0, <private>, AAAA) START PID[12406](FigmaSharpApp)
default 15:01:39.908792+0200    mDNSResponder   [R8167] DNSServiceQueryRecord(15000, 0, <private>, Addr) STOP PID[12406](FigmaSharpApp)
default 15:01:39.908910+0200    mDNSResponder   [R8168] DNSServiceQueryRecord(15000, 0, <private>, AAAA) STOP PID[12406](FigmaSharpApp)
default 15:01:40.831545+0200    FigmaSharpApp   
Unhandled Exception:
System.Net.WebException: The remote server returned an error: (403) Forbidden.
  at System.Net.HttpWebRequest.GetResponseFromData (System.Net.WebResponseStream stream, System.Threading.CancellationToken cancellationToken) [0x00146] in <69ec3f7cb7cb428090e9bf0f05be6933>:0 
  at System.Net.HttpWebRequest.RunWithTimeoutWorker[T] (System.Threading.Tasks.Task`1[TResult] workerTask, System.Int32 timeout, System.Action abort, System.Func`1[TResult] aborted, System.Threading.CancellationTokenSource cts) [0x000f8] in <69ec3f7cb7cb428090e9bf0f05be6933>:0 
  at System.Net.HttpWebRequest.GetResponse () [0x00016] in <69ec3f7cb7cb428090e9bf0f05be6933>:0 
  at FigmaSharp.FigmaApi.GetContentUrl[T] (T figmaQuery, System.Func`2[T,TResult] handler) [0x0005e] in <f8f42e444b29460e946d9b8139505ad1>:0 
  at FigmaSharp.FigmaApi.GetContentFileVersion (FigmaSharp.FigmaFileVersionQuery figmaQuery) [0x00000] in <f8f42e444b29460e946d9b8139505ad1>:0 
  at FigmaSharp.FigmaApi.GetFileVersions (FigmaSharp.Figma<…>
default 15:01:40.832947+0200    hidd    Connection removed: IOHIDEventSystemConnection uuid:94B72D51-D20F-4949-AD15-3BAF8CC61A25 pid:12406 process:FigmaSharpApp type:Passive entitlements:0x0 caller:HIToolbox: ___GetIOHIDEventSystemClient_block_invoke + 26 attributes:(null) state:0x1 events:0 mask:0x0
default 15:01:40.832987+0200    hidd    Connection removed: IOHIDEventSystemConnection uuid:1E6F9C51-4078-4388-8CA1-7306E14D1E0F pid:12406 process:FigmaSharpApp type:Passive entitlements:0x0 caller:HIServices: ___GetIOHIDEventSystemClient_block_invoke + 26 attributes:(null) state:0x1 events:0 mask:0x0
default 15:01:40.836354+0200    runningboardd   Invalidating assertion 367-212-1179 (target:executable<FigmaSharpApp(501)>) from originator 212
default 15:01:40.840068+0200    mDNSResponder   [R8166] DNSServiceCreateConnection STOP PID[12406](FigmaSharpApp)
default 15:01:40.840502+0200    runningboardd   [executable<FigmaSharpApp(501)>:12406] Death sentinel fired!
default 15:01:40.845954+0200    runningboardd   Invalidating assertion 367-212-1176 (target:executable<FigmaSharpApp(501)>) from originator 212
default 15:01:40.947501+0200    runningboardd   Removing process: [executable<FigmaSharpApp(501)>:12406]
default 15:01:40.961342+0200    runningboardd   Removing assertions for terminated process: [executable<FigmaSharpApp(501)>:12406]
default 15:01:45.847168+0200    loginwindow -[PersistentAppsSupport saveLogoutPersistentState:finalSnapshot:] |      previouslyRunningApps: (
        {
        BackgroundState = 2;
        BundleID = "com.apple.console";
        Hide = 0;
        Path = "/System/Applications/Utilities/Console.app";
    },
        {
        BackgroundState = 2;
        BundleID = "com.microsoft.figmasharp";
        Hide = 0;
        Path = "/Applications/FigmaSharpApp.app";
    },
        {
        BackgroundState = 2;
        BundleID = "com.googlecode.iterm2";
        Hide = 0;
        Path = "/Applications/iTerm.app";
    },
        {
        BackgroundState = 2;
        BundleID = "com.figma.desktop";
        Hide = 0;
        Path = "/Applications/Figma.app";
    },
        {
        BackgroundState = 2;
        BundleID = "com.agilebits.onepassword7";
        Hide = 0;
        Path = "/Applications/1Password 7.app";
    },
        {
        BackgroundState = 2;
        BundleID = "com.apple.finder";
        Hide = 0;
        Path = "/System/Library/CoreServices/Finder.app";
    },
        {
        BackgroundState = 2;
        BundleID = "org.mozilla.firefox";
        Hide = 0;
        Path = "/Applications/Firefox.app";
    },
        {
        BackgroundState = 2;
        BundleID = "com.apple.ichat";
        Hide = 1;
        Path = "/System/Applications/Messages.app";
    },
        {
        BackgroundState = 2;
        BundleID = "com.tinyspeck.slackmacgap";
        Hide = 1;
        Path = "/Applications/Slack.app";
    },
        {
        BackgroundState = 2;
        BundleID = "com.microsoft.visual-studio";
        Hide = 0;
        Path = "/Applications/Visual Studio.app";
    },
        {
        BackgroundState = 2;
        BundleID = "com.coppertino.vox";
        Hide = 0;
        Path = "/Applications/VOX.app";
    },
        {
        BackgroundState = 3;
        BundleID = "com.todoist.mac.todoist";
        Hide = 0;
        Path = "/Applications/Todoist.app";
    },
        {
        BackgroundState = 2;
        BundleID = "com.iconfactory.twitterrific5";
        Hide = 1;
        Path = "/Applications/Twitterrific.app";
    },
        {
        BackgroundState = 3;
        BundleID = "com.spotify.client";
        Hide = 1;
        Path = "/Applications/Spotify.app";
    }
)

Any idea, @netonjm?

vancura commented 4 years ago

403 forbidden. That has to be on either my side of Figma's :)

Closing. Not the reported issue.