raycast / extensions

Everything you need to extend Raycast.
https://developers.raycast.com
MIT License
5.33k stars 3.02k forks source link

Drawing/refresh issue on List.Item.Detail.Metadata + List.Item.Detail.Metadata.TagList #6994

Closed Tazintosh closed 1 year ago

Tazintosh commented 1 year ago

Description

Hello,

I am currently creating an extension for personal use. The data I want to display comes from multiple different asynchronous MySQL requests. I'm having some refresh issues and since I am not familiar with React, I am not sure yet if the issue is on my end or with Raycast itself.

For the purpose of this post, I've removed a lot of code and all MySQL requests, replaced by local data in a variable. The issue still happens and I'm posting here the extension code in case you want to tryout. Here's a view of the actual extension Capture d’écran 2023-06-08 à 18 30 54

Am I doing things wrong? Thanks —a lot— in advance for any idea or guidance. Best,

import { useState, useEffect } from "react";
import {Action, ActionPanel, List, Icon, Detail, showToast, Toast, Color} from "@raycast/api";
import { usePromise, getProgressIcon } from "@raycast/utils";

const storage = {};

export default function myItemsRaycast() {
    const placeholders = {
        totalsStrings: {
            euros   : 'Loading…',
            dollars : 'Loading…',
            total   : 'Loading…'
        },
        someTextStrings: 'Loading…'
    };

    const myItems = {
        getCommissions: async () => {
            // await new Promise(resolve => setTimeout(resolve, 1000)); // Uncomment this to fix the drawing/refresh bug
            storage.commissionsQuery = {
                euros           : 100,
                dollars         : 200,
                dollarsInEuros  : 0,
                total           : 0
            };
            return storage.commissionsQuery;
        },

        getSomeText: async () => {
            await new Promise(resolve => setTimeout(resolve, 2000)); // Uncomment this to fix the drawing/refresh bug
            return 'This is some text.';
        },

    };

    const {data: totalsObj, isLoading: isLoadingTotals} = usePromise(myItems.getCommissions);
    const {data: someText, isLoading: isLoadingSomeText} = usePromise(myItems.getSomeText);

    const [totalsStrings, setTotalsStrings] = useState(placeholders.totalsStrings);
    const [someTextStrings, setSomeTextStrings] = useState(placeholders.someTextStrings);

    const isLoading = isLoadingTotals || isLoadingSomeText;

    useEffect(() => {
        if (totalsObj) {
            const totalsStringObj = {
                euros: `${totalsObj.euros} €`,
                dollars: `$ ${totalsObj.dollars}`,
                total: `${totalsObj.total} €`
            };
            setTotalsStrings(totalsStringObj);
        }
    }, [totalsObj]);

    useEffect(() => {
        if (someText) {
            setSomeTextStrings(someText);
        }
    }, [someText]);

    return (
        <List isShowingDetail isLoading={isLoading}>
            <List.Item
                title="Overall"
                detail={
                    <List.Item.Detail isLoading={isLoading}
                        metadata={
                            <List.Item.Detail.Metadata>
                                <List.Item.Detail.Metadata.Label title="COMMISSIONS" />
                                <List.Item.Detail.Metadata.Label title="totalsStrings.euros" text={totalsStrings.euros} />
                                <List.Item.Detail.Metadata.Label title="totalsStrings.dollars" text={totalsStrings.dollars} />
                                <List.Item.Detail.Metadata.Label title="totalsStrings.total" text={totalsStrings.total} />
                                <List.Item.Detail.Metadata.TagList key="totalsA" title="Totals">
                                    <List.Item.Detail.Metadata.TagList.Item key="totalsB" icon={Icon.Coin} text={totalsStrings.euros} />
                                    <List.Item.Detail.Metadata.TagList.Item key="totalsC" icon={Icon.Coin} text={totalsStrings.dollars} />
                                    <List.Item.Detail.Metadata.TagList.Item key="totalsD" icon={Icon.Coins} text={totalsStrings.total} />
                                </List.Item.Detail.Metadata.TagList>
                                <List.Item.Detail.Metadata.Separator />
                                <List.Item.Detail.Metadata.Label title="Some Text" text={someTextStrings} />
                                <List.Item.Detail.Metadata.Separator />
                            </List.Item.Detail.Metadata>
                        }
                    />
                }
            />
            <List.Item
                title="Commissions"
                detail={
                    <List.Item.Detail
                    />
                }
            />
        </List>
    );
}

Steps To Reproduce

No response

Current Behaviour

List.Item.Detail.Metadata.TagList is not refreshed when functions are instantly executed. A manual delay must be added.

Expected Behaviour

List.Item.Detail.Metadata.TagList refresh normally.

Tazintosh commented 1 year ago

Kind bump?

mathieudutour commented 1 year ago

Hey! It's an issue in Raycast, we are looking into it

Tazintosh commented 1 year ago

Oh boy thank you so much for the answer!!! I've wasted —so much— time trying to figure this out! (And I was going to continue today, because I really thought I could be doing things wrong).

mathieudutour commented 1 year ago

This should be fixed now

Tazintosh commented 1 year ago

Good new @mathieudutour, thank you. Not sure if anything related or not, but since v1.55.1 my extension crashes when loading it's data 75% of the time. It was not crashing before. Here's a typical crash report

{"app_name":"Raycast","timestamp":"2023-07-12 14:51:59.00 +0200","app_version":"1.55.1","slice_uuid":"9b6fa29c-14d0-3fe7-80d8-4c906468207e","build_version":"0","platform":1,"bundleID":"com.raycast.macos","share_with_app_devs":1,"is_first_party":0,"bug_type":"309","os_version":"macOS 13.4 (22F66)","roots_installed":0,"name":"Raycast","incident_id":"EFE22376-71A5-49E2-A88E-37EF6396B4FF"}
{
  "uptime" : 160000,
  "procRole" : "Default",
  "version" : 2,
  "userID" : 501,
  "deployVersion" : 210,
  "modelCode" : "Macmini9,1",
  "coalitionID" : 6951,
  "osVersion" : {
    "train" : "macOS 13.4",
    "build" : "22F66",
    "releaseType" : "User"
  },
  "captureTime" : "2023-07-12 14:51:58.6497 +0200",
  "incident" : "EFE22376-71A5-49E2-A88E-37EF6396B4FF",
  "pid" : 31350,
  "translated" : false,
  "cpuType" : "ARM-64",
  "roots_installed" : 0,
  "bug_type" : "309",
  "procLaunch" : "2023-07-12 14:51:55.3367 +0200",
  "procStartAbsTime" : 3876462009656,
  "procExitAbsTime" : 3876541370241,
  "procName" : "Raycast",
  "procPath" : "\/Applications\/Raycast.app\/Contents\/MacOS\/Raycast",
  "bundleInfo" : {"CFBundleShortVersionString":"1.55.1","CFBundleVersion":"0","CFBundleIdentifier":"com.raycast.macos"},
  "storeInfo" : {"deviceIdentifierForVendor":"B009D38E-5CCB-58D3-825D-DC5E72CFD479","thirdParty":true},
  "parentProc" : "launchd",
  "parentPid" : 1,
  "coalitionName" : "com.raycast.macos",
  "crashReporterKey" : "0B675366-D570-6C43-274B-39E66551EEDD",
  "codeSigningID" : "com.raycast.macos",
  "codeSigningTeamID" : "SY64MV22J9",
  "codeSigningFlags" : 570503953,
  "codeSigningValidationCategory" : 6,
  "codeSigningTrustLevel" : 0,
  "wakeTime" : 21005,
  "sleepWakeUUID" : "D38C4309-201D-4EB3-AE60-626BE2502F78",
  "sip" : "enabled",
  "vmRegionInfo" : "0x18 is not in any region.  Bytes before following region: 105553518919656\n      REGION TYPE                    START - END         [ VSIZE] PRT\/MAX SHRMOD  REGION DETAIL\n      UNUSED SPACE AT START\n--->  \n      MALLOC_NANO (reserved)   600018000000-600020000000 [128.0M] rw-\/rwx SM=NUL  ...(unallocated)",
  "exception" : {"codes":"0x0000000000000001, 0x0000000000000018","rawCodes":[1,24],"type":"EXC_BAD_ACCESS","signal":"SIGSEGV","subtype":"KERN_INVALID_ADDRESS at 0x0000000000000018"},
  "termination" : {"flags":0,"code":11,"namespace":"SIGNAL","indicator":"Segmentation fault: 11","byProc":"exc handler","byPid":31350},
  "vmregioninfo" : "0x18 is not in any region.  Bytes before following region: 105553518919656\n      REGION TYPE                    START - END         [ VSIZE] PRT\/MAX SHRMOD  REGION DETAIL\n      UNUSED SPACE AT START\n--->  \n      MALLOC_NANO (reserved)   600018000000-600020000000 [128.0M] rw-\/rwx SM=NUL  ...(unallocated)",
  "extMods" : {"caller":{"thread_create":0,"thread_set_state":0,"task_for_pid":0},"system":{"thread_create":0,"thread_set_state":192,"task_for_pid":4},"targeted":{"thread_create":0,"thread_set_state":0,"task_for_pid":0},"warnings":0},
  "faultingThread" : 0,
  "threads" : [{"triggered":true,"id":1931333,"threadState":{"x":[{"value":6091032136},{"value":4644422896},{"value":5532408248},{"value":4644618000},{"value":6091032448},{"value":8960},{"value":105553160135424},{"value":0},{"value":0},{"value":5532407808},{"value":1},{"value":4644618008},{"value":28},{"value":268435457},{"value":144115196271973513,"symbolLocation":144115188075855873,"symbol":"OBJC_CLASS_$_NSISRestrictedToNonNegativeMarkerVariableToBeMinimized"},{"value":8196117640,"symbolLocation":0,"symbol":"OBJC_CLASS_$_NSISRestrictedToNonNegativeMarkerVariableToBeMinimized"},{"value":6794187864,"symbolLocation":0,"symbol":"__77-[NSISEngine outgoingRowHeadForRemovingConstraintWithMarker:outgoingRowHead:]_block_invoke"},{"value":7701436843871290952},{"value":0},{"value":40},{"value":2987803337},{"value":4644422896},{"value":23},{"value":88},{"value":28},{"value":9223372036854775807},{"value":6091032152},{"value":4644423128},{"value":4644618008}],"flavor":"ARM_THREAD_STATE64","lr":{"value":6794186672},"cpsr":{"value":2147487744},"fp":{"value":6091032400},"sp":{"value":6091031888},"esr":{"value":2449473542,"description":"(Data Abort) byte read Translation fault"},"pc":{"value":6794187868,"matchesCrashFrame":1},"far":{"value":24}},"queue":"com.apple.main-thread","frames":[{"imageOffset":78940,"symbol":"__77-[NSISEngine outgoingRowHeadForRemovingConstraintWithMarker:outgoingRowHead:]_block_invoke","symbolLocation":4,"imageIndex":3},{"imageOffset":77744,"symbol":"-[NSISEngine outgoingRowHeadForRemovingConstraintWithMarker:outgoingRowHead:]","symbolLocation":320,"imageIndex":3},{"imageOffset":80660,"symbol":"-[NSISEngine removeConstraintWithMarker:]","symbolLocation":740,"imageIndex":3},{"imageOffset":168672,"symbol":"-[NSLayoutConstraint _removeFromEngine:]","symbolLocation":148,"imageIndex":3},{"imageOffset":10765296,"symbol":"-[NSView(NSConstraintBasedLayoutInternal) _layoutEngine_willRemoveLayoutConstraint:]","symbolLocation":36,"imageIndex":4},{"imageOffset":10755024,"symbol":"-[NSView(NSConstraintBasedLayoutInternal) nsli_removeConstraint:]","symbolLocation":140,"imageIndex":4},{"imageOffset":785360,"symbol":"-[NSView(NSDeclarativeConstraintCreation) _updateDeclaredConstraints]","symbolLocation":1012,"imageIndex":4},{"imageOffset":784264,"symbol":"-[NSView updateConstraints]","symbolLocation":84,"imageIndex":4},{"imageOffset":790264,"symbol":"-[NSStackView updateConstraints]","symbolLocation":168,"imageIndex":4},{"imageOffset":8411320,"symbol":"___NSViewUpdateConstraints_block_invoke","symbolLocation":88,"imageIndex":4},{"imageOffset":509432,"symbol":"NSPerformVisuallyAtomicChange","symbolLocation":108,"imageIndex":4},{"imageOffset":784168,"symbol":"_NSViewUpdateConstraints","symbolLocation":96,"imageIndex":4},{"imageOffset":783448,"symbol":"-[NSView _updateConstraintsForSubtreeIfNeededCollectingViewsWithInvalidBaselines:]","symbolLocation":680,"imageIndex":4},{"imageOffset":831524,"symbol":"__82-[NSView _updateConstraintsForSubtreeIfNeededCollectingViewsWithInvalidBaselines:]_block_invoke","symbolLocation":228,"imageIndex":4},{"imageOffset":67184,"symbol":"-[NSISEngine withBehaviors:performModifications:]","symbolLocation":88,"imageIndex":3},{"imageOffset":782968,"symbol":"-[NSView _updateConstraintsForSubtreeIfNeededCollectingViewsWithInvalidBaselines:]","symbolLocation":200,"imageIndex":4},{"imageOffset":8370396,"symbol":"__45-[NSView updateConstraintsForSubtreeIfNeeded]_block_invoke_2","symbolLocation":52,"imageIndex":4},{"imageOffset":67184,"symbol":"-[NSISEngine withBehaviors:performModifications:]","symbolLocation":88,"imageIndex":3},{"imageOffset":10765016,"symbol":"-[NSView(NSConstraintBasedLayoutInternal) _withAutomaticEngineOptimizationDisabled:]","symbolLocation":48,"imageIndex":4},{"imageOffset":782384,"symbol":"__45-[NSView updateConstraintsForSubtreeIfNeeded]_block_invoke","symbolLocation":224,"imageIndex":4},{"imageOffset":509432,"symbol":"NSPerformVisuallyAtomicChange","symbolLocation":108,"imageIndex":4},{"imageOffset":782148,"symbol":"-[NSView updateConstraintsForSubtreeIfNeeded]","symbolLocation":96,"imageIndex":4},{"imageOffset":8373008,"symbol":"__70-[NSView _updateConstraintsForLayoutCheckingDirtyBits:creatingEngine:]_block_invoke","symbolLocation":200,"imageIndex":4},{"imageOffset":509432,"symbol":"NSPerformVisuallyAtomicChange","symbolLocation":108,"imageIndex":4},{"imageOffset":781940,"symbol":"-[NSView _updateConstraintsForLayoutCheckingDirtyBits:creatingEngine:]","symbolLocation":132,"imageIndex":4},{"imageOffset":8373500,"symbol":"__56-[NSView _layoutSubtreeIfNeededAndAllowTemporaryEngine:]_block_invoke","symbolLocation":260,"imageIndex":4},{"imageOffset":509432,"symbol":"NSPerformVisuallyAtomicChange","symbolLocation":108,"imageIndex":4},{"imageOffset":529012,"symbol":"-[NSView _layoutSubtreeIfNeededAndAllowTemporaryEngine:]","symbolLocation":100,"imageIndex":4},{"imageOffset":509432,"symbol":"NSPerformVisuallyAtomicChange","symbolLocation":108,"imageIndex":4},{"imageOffset":528900,"symbol":"-[NSView layoutSubtreeIfNeeded]","symbolLocation":96,"imageIndex":4},{"imageOffset":27879208,"imageIndex":0},{"imageOffset":27874172,"imageIndex":0},{"imageOffset":26518292,"imageIndex":0},{"imageOffset":27263736,"imageIndex":0},{"imageOffset":27265328,"imageIndex":0},{"imageOffset":27260660,"imageIndex":0},{"imageOffset":27263064,"imageIndex":0},{"imageOffset":27262636,"imageIndex":0},{"imageOffset":27262260,"imageIndex":0},{"imageOffset":27185104,"imageIndex":0},{"imageOffset":27181348,"imageIndex":0},{"imageOffset":27234700,"imageIndex":0},{"imageOffset":27183100,"imageIndex":0},{"imageOffset":1479672,"symbol":"-[NSTableView _sendDelegateHeightOfRow:]","symbolLocation":68,"imageIndex":4},{"imageOffset":774220,"symbol":"-[NSTableView _safeSendDelegateHeightOfRow:]","symbolLocation":104,"imageIndex":4},{"imageOffset":7433168,"symbol":"-[NSTableView _uncachedRowHeightForRow:]","symbolLocation":252,"imageIndex":4},{"imageOffset":9031388,"symbol":"-[NSTableRowHeightData _cacheRowSpansInRange:heightProvider:]","symbolLocation":656,"imageIndex":4},{"imageOffset":9025064,"symbol":"-[NSTableRowHeightData _cacheRowSpansInRange:]","symbolLocation":100,"imageIndex":4},{"imageOffset":237052,"symbol":"__NSINDEXSET_IS_CALLING_OUT_TO_A_RANGE_BLOCK__","symbolLocation":24,"imageIndex":5},{"imageOffset":342736,"symbol":"__NSIndexSetEnumerate","symbolLocation":1036,"imageIndex":5},{"imageOffset":9031876,"symbol":"-[NSTableRowHeightData _estimatedSpanForRow:cacheIfNecessary:]","symbolLocation":256,"imageIndex":4},{"imageOffset":9021520,"symbol":"-[NSTableRowHeightData _estimatedSpanForRowsInRange:]","symbolLocation":48,"imageIndex":4},{"imageOffset":9021728,"symbol":"-[NSTableRowHeightData computeTotalRowsSpanAssumingNumberOfRows:]","symbolLocation":140,"imageIndex":4},{"imageOffset":728808,"symbol":"-[NSTableView _totalHeightOfTableView]","symbolLocation":68,"imageIndex":4},{"imageOffset":728512,"symbol":"-[NSTableView _minimumFrameSize]","symbolLocation":72,"imageIndex":4},{"imageOffset":769400,"symbol":"-[NSTableView tile]","symbolLocation":212,"imageIndex":4},{"imageOffset":767516,"symbol":"-[NSTableView bounds]","symbolLocation":104,"imageIndex":4},{"imageOffset":8403856,"symbol":"-[NSView _setLayerNeedsDisplayInViewRect:]","symbolLocation":132,"imageIndex":4},{"imageOffset":333784,"symbol":"-[NSView setNeedsDisplayInRect:]","symbolLocation":340,"imageIndex":4},{"imageOffset":768656,"symbol":"-[NSTableView _tileAndRedisplayAll]","symbolLocation":132,"imageIndex":4},{"imageOffset":27143244,"imageIndex":0},{"imageOffset":27148640,"imageIndex":0},{"imageOffset":27124184,"imageIndex":0},{"imageOffset":11218872,"imageIndex":0},{"imageOffset":11213404,"imageIndex":0},{"imageOffset":27107176,"imageIndex":0},{"imageOffset":27099540,"imageIndex":0},{"imageOffset":162564,"symbol":"Optional.map<A>(_:)","symbolLocation":460,"imageIndex":6},{"imageOffset":27105660,"imageIndex":0},{"imageOffset":27104356,"imageIndex":0},{"imageOffset":27099188,"imageIndex":0},{"imageOffset":27103784,"imageIndex":0},{"imageOffset":27108784,"imageIndex":0},{"imageOffset":27109992,"imageIndex":0},{"imageOffset":11261440,"imageIndex":0},{"imageOffset":11257380,"imageIndex":0},{"imageOffset":10828552,"imageIndex":0},{"imageOffset":10814072,"imageIndex":0},{"imageOffset":10805844,"imageIndex":0},{"imageOffset":23967512,"imageIndex":0},{"imageOffset":13278032,"imageIndex":0},{"imageOffset":10356,"symbol":"_dispatch_call_block_and_release","symbolLocation":32,"imageIndex":7},{"imageOffset":17408,"symbol":"_dispatch_client_callout","symbolLocation":20,"imageIndex":7},{"imageOffset":76792,"symbol":"_dispatch_main_queue_drain","symbolLocation":928,"imageIndex":7},{"imageOffset":75848,"symbol":"_dispatch_main_queue_callback_4CF","symbolLocation":44,"imageIndex":7},{"imageOffset":789588,"symbol":"__CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__","symbolLocation":16,"imageIndex":8},{"imageOffset":517076,"symbol":"__CFRunLoopRun","symbolLocation":1992,"imageIndex":8},{"imageOffset":513208,"symbol":"CFRunLoopRunSpecific","symbolLocation":612,"imageIndex":8},{"imageOffset":199744,"symbol":"RunCurrentEventLoopInMode","symbolLocation":292,"imageIndex":9},{"imageOffset":199292,"symbol":"ReceiveNextEventCommon","symbolLocation":648,"imageIndex":9},{"imageOffset":198612,"symbol":"_BlockUntilNextEventMatchingListInModeWithFilter","symbolLocation":76,"imageIndex":9},{"imageOffset":232772,"symbol":"_DPSNextEvent","symbolLocation":636,"imageIndex":4},{"imageOffset":229088,"symbol":"-[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:]","symbolLocation":716,"imageIndex":4},{"imageOffset":181060,"symbol":"-[NSApplication run]","symbolLocation":464,"imageIndex":4},{"imageOffset":14228,"symbol":"NSApplicationMain","symbolLocation":880,"imageIndex":4},{"imageOffset":15452,"imageIndex":0},{"imageOffset":24360,"symbol":"start","symbolLocation":2236,"imageIndex":10}]},{"id":1931340,"frames":[{"imageOffset":7564,"symbol":"start_wqthread","symbolLocation":0,"imageIndex":11}]},{"id":1931341,"frames":[{"imageOffset":7564,"symbol":"start_wqthread","symbolLocation":0,"imageIndex":11}]},{"id":1931342,"frames":[{"imageOffset":7564,"symbol":"start_wqthread","symbolLocation":0,"imageIndex":11}]},{"id":1931343,"frames":[{"imageOffset":7564,"symbol":"start_wqthread","symbolLocation":0,"imageIndex":11}]},{"id":1931344,"frames":[{"imageOffset":17676,"symbol":"__semwait_signal","symbolLocation":8,"imageIndex":12},{"imageOffset":53968,"symbol":"nanosleep","symbolLocation":220,"imageIndex":13},{"imageOffset":90192,"symbol":"sleep","symbolLocation":52,"imageIndex":13},{"imageOffset":14635200,"imageIndex":0},{"imageOffset":28584,"symbol":"_pthread_start","symbolLocation":148,"imageIndex":11},{"imageOffset":7584,"symbol":"thread_start","symbolLocation":8,"imageIndex":11}]},{"id":1931345,"name":"SentryCrash Exception Handler (Secondary)","frames":[{"imageOffset":3860,"symbol":"mach_msg2_trap","symbolLocation":8,"imageIndex":12},{"imageOffset":78400,"symbol":"mach_msg2_internal","symbolLocation":80,"imageIndex":12},{"imageOffset":39800,"symbol":"mach_msg_overwrite","symbolLocation":604,"imageIndex":12},{"imageOffset":4752,"symbol":"mach_msg","symbolLocation":24,"imageIndex":12},{"imageOffset":14619068,"imageIndex":0},{"imageOffset":28584,"symbol":"_pthread_start","symbolLocation":148,"imageIndex":11},{"imageOffset":7584,"symbol":"thread_start","symbolLocation":8,"imageIndex":11}]},{"id":1931347,"name":"com.apple.NSURLConnectionLoader","frames":[{"imageOffset":3860,"symbol":"mach_msg2_trap","symbolLocation":8,"imageIndex":12},{"imageOffset":78400,"symbol":"mach_msg2_internal","symbolLocation":80,"imageIndex":12},{"imageOffset":39800,"symbol":"mach_msg_overwrite","symbolLocation":604,"imageIndex":12},{"imageOffset":4752,"symbol":"mach_msg","symbolLocation":24,"imageIndex":12},{"imageOffset":522212,"symbol":"__CFRunLoopServiceMachPort","symbolLocation":160,"imageIndex":8},{"imageOffset":516292,"symbol":"__CFRunLoopRun","symbolLocation":1208,"imageIndex":8},{"imageOffset":513208,"symbol":"CFRunLoopRunSpecific","symbolLocation":612,"imageIndex":8},{"imageOffset":2444248,"imageIndex":14},{"imageOffset":353612,"symbol":"__NSThread__start__","symbolLocation":716,"imageIndex":5},{"imageOffset":28584,"symbol":"_pthread_start","symbolLocation":148,"imageIndex":11},{"imageOffset":7584,"symbol":"thread_start","symbolLocation":8,"imageIndex":11}]},{"id":1931351,"frames":[{"imageOffset":7564,"symbol":"start_wqthread","symbolLocation":0,"imageIndex":11}]},{"id":1931352,"frames":[{"imageOffset":7564,"symbol":"start_wqthread","symbolLocation":0,"imageIndex":11}]},{"id":1931353,"frames":[{"imageOffset":7564,"symbol":"start_wqthread","symbolLocation":0,"imageIndex":11}]},{"id":1931354,"frames":[{"imageOffset":7564,"symbol":"start_wqthread","symbolLocation":0,"imageIndex":11}]},{"id":1931355,"frames":[{"imageOffset":7564,"symbol":"start_wqthread","symbolLocation":0,"imageIndex":11}]},{"id":1931356,"frames":[{"imageOffset":7564,"symbol":"start_wqthread","symbolLocation":0,"imageIndex":11}]},{"id":1931357,"frames":[{"imageOffset":7564,"symbol":"start_wqthread","symbolLocation":0,"imageIndex":11}]},{"id":1931364,"frames":[{"imageOffset":7564,"symbol":"start_wqthread","symbolLocation":0,"imageIndex":11}]},{"id":1931379,"name":"com.apple.NSEventThread","frames":[{"imageOffset":3860,"symbol":"mach_msg2_trap","symbolLocation":8,"imageIndex":12},{"imageOffset":78400,"symbol":"mach_msg2_internal","symbolLocation":80,"imageIndex":12},{"imageOffset":39800,"symbol":"mach_msg_overwrite","symbolLocation":604,"imageIndex":12},{"imageOffset":4752,"symbol":"mach_msg","symbolLocation":24,"imageIndex":12},{"imageOffset":522212,"symbol":"__CFRunLoopServiceMachPort","symbolLocation":160,"imageIndex":8},{"imageOffset":516292,"symbol":"__CFRunLoopRun","symbolLocation":1208,"imageIndex":8},{"imageOffset":513208,"symbol":"CFRunLoopRunSpecific","symbolLocation":612,"imageIndex":8},{"imageOffset":1454900,"symbol":"_NSEventThread","symbolLocation":172,"imageIndex":4},{"imageOffset":28584,"symbol":"_pthread_start","symbolLocation":148,"imageIndex":11},{"imageOffset":7584,"symbol":"thread_start","symbolLocation":8,"imageIndex":11}]},{"id":1931390,"name":"com.apple.CFStream.LegacyThread","frames":[{"imageOffset":3860,"symbol":"mach_msg2_trap","symbolLocation":8,"imageIndex":12},{"imageOffset":78400,"symbol":"mach_msg2_internal","symbolLocation":80,"imageIndex":12},{"imageOffset":39800,"symbol":"mach_msg_overwrite","symbolLocation":604,"imageIndex":12},{"imageOffset":4752,"symbol":"mach_msg","symbolLocation":24,"imageIndex":12},{"imageOffset":522212,"symbol":"__CFRunLoopServiceMachPort","symbolLocation":160,"imageIndex":8},{"imageOffset":516292,"symbol":"__CFRunLoopRun","symbolLocation":1208,"imageIndex":8},{"imageOffset":513208,"symbol":"CFRunLoopRunSpecific","symbolLocation":612,"imageIndex":8},{"imageOffset":1017264,"symbol":"_legacyStreamRunLoop_workThread","symbolLocation":300,"imageIndex":8},{"imageOffset":28584,"symbol":"_pthread_start","symbolLocation":148,"imageIndex":11},{"imageOffset":7584,"symbol":"thread_start","symbolLocation":8,"imageIndex":11}]}],
  "usedImages" : [
  {
    "source" : "P",
    "arch" : "arm64",
    "base" : 4375822336,
    "CFBundleShortVersionString" : "1.55.1",
    "CFBundleIdentifier" : "com.raycast.macos",
    "size" : 34455552,
    "uuid" : "9b6fa29c-14d0-3fe7-80d8-4c906468207e",
    "path" : "\/Applications\/Raycast.app\/Contents\/MacOS\/Raycast",
    "name" : "Raycast",
    "CFBundleVersion" : "0"
  },
  {
    "source" : "P",
    "arch" : "arm64",
    "base" : 4421287936,
    "CFBundleShortVersionString" : "2.3.1",
    "CFBundleIdentifier" : "app.soulver.core",
    "size" : 4014080,
    "uuid" : "639926b6-b783-30a7-a51f-c26d437f4be2",
    "path" : "\/Applications\/Raycast.app\/Contents\/Frameworks\/SoulverCore.framework\/Versions\/A\/SoulverCore",
    "name" : "SoulverCore",
    "CFBundleVersion" : "45"
  },
  {
    "source" : "P",
    "arch" : "arm64e",
    "base" : 4420141056,
    "size" : 49152,
    "uuid" : "570c31f7-94c6-3b86-ae44-1694db0a4bcd",
    "path" : "\/usr\/lib\/libobjc-trampolines.dylib",
    "name" : "libobjc-trampolines.dylib"
  },
  {
    "source" : "P",
    "arch" : "arm64e",
    "base" : 6794108928,
    "CFBundleShortVersionString" : "1.0",
    "CFBundleIdentifier" : "com.apple.CoreAutoLayout",
    "size" : 303104,
    "uuid" : "f1be0781-eddf-3599-92f5-723c88c2110c",
    "path" : "\/System\/Library\/PrivateFrameworks\/CoreAutoLayout.framework\/Versions\/A\/CoreAutoLayout",
    "name" : "CoreAutoLayout",
    "CFBundleVersion" : "29.5.1"
  },
  {
    "source" : "P",
    "arch" : "arm64e",
    "base" : 6716968960,
    "CFBundleShortVersionString" : "6.9",
    "CFBundleIdentifier" : "com.apple.AppKit",
    "size" : 15790080,
    "uuid" : "041c7d21-21cc-3eea-ae53-d39f5ca6a24e",
    "path" : "\/System\/Library\/Frameworks\/AppKit.framework\/Versions\/C\/AppKit",
    "name" : "AppKit",
    "CFBundleVersion" : "2299.60.124"
  },
  {
    "source" : "P",
    "arch" : "arm64e",
    "base" : 6680481792,
    "CFBundleShortVersionString" : "6.9",
    "CFBundleIdentifier" : "com.apple.Foundation",
    "size" : 10248192,
    "uuid" : "d5337cc6-a075-3ca0-b5bf-b49da8878337",
    "path" : "\/System\/Library\/Frameworks\/Foundation.framework\/Versions\/C\/Foundation",
    "name" : "Foundation",
    "CFBundleVersion" : "1977"
  },
  {
    "source" : "P",
    "arch" : "arm64e",
    "base" : 6912307200,
    "size" : 5476352,
    "uuid" : "5285709c-f140-3a18-95ff-ab77b12dc473",
    "path" : "\/usr\/lib\/swift\/libswiftCore.dylib",
    "name" : "libswiftCore.dylib"
  },
  {
    "source" : "P",
    "arch" : "arm64e",
    "base" : 6661947392,
    "size" : 294912,
    "uuid" : "c2fd3094-b465-39a4-b774-16583ff53c4b",
    "path" : "\/usr\/lib\/system\/libdispatch.dylib",
    "name" : "libdispatch.dylib"
  },
  {
    "source" : "P",
    "arch" : "arm64e",
    "base" : 6664122368,
    "CFBundleShortVersionString" : "6.9",
    "CFBundleIdentifier" : "com.apple.CoreFoundation",
    "size" : 5087232,
    "uuid" : "203e4401-8c2e-3157-a24b-92f52551d43e",
    "path" : "\/System\/Library\/Frameworks\/CoreFoundation.framework\/Versions\/A\/CoreFoundation",
    "name" : "CoreFoundation",
    "CFBundleVersion" : "1977"
  },
  {
    "source" : "P",
    "arch" : "arm64e",
    "base" : 6824124416,
    "CFBundleShortVersionString" : "2.1.1",
    "CFBundleIdentifier" : "com.apple.HIToolbox",
    "size" : 3358720,
    "uuid" : "d800278b-4e6c-3032-b56f-027a938a51d6",
    "path" : "\/System\/Library\/Frameworks\/Carbon.framework\/Versions\/A\/Frameworks\/HIToolbox.framework\/Versions\/A\/HIToolbox",
    "name" : "HIToolbox"
  },
  {
    "source" : "P",
    "arch" : "arm64e",
    "base" : 6660202496,
    "size" : 582996,
    "uuid" : "bd993f39-c902-37d6-8bd8-6d827c7f121e",
    "path" : "\/usr\/lib\/dyld",
    "name" : "dyld"
  },
  {
    "source" : "P",
    "arch" : "arm64e",
    "base" : 6663704576,
    "size" : 53248,
    "uuid" : "46d35233-a051-3f4f-bba4-ba56dddc4d1a",
    "path" : "\/usr\/lib\/system\/libsystem_pthread.dylib",
    "name" : "libsystem_pthread.dylib"
  },
  {
    "source" : "P",
    "arch" : "arm64e",
    "base" : 6663467008,
    "size" : 237544,
    "uuid" : "42f503e2-9273-360a-a086-c1b19bbd3962",
    "path" : "\/usr\/lib\/system\/libsystem_kernel.dylib",
    "name" : "libsystem_kernel.dylib"
  },
  {
    "source" : "P",
    "arch" : "arm64e",
    "base" : 6662254592,
    "size" : 520184,
    "uuid" : "95a70e20-1df3-3ddf-900c-315ed0b2c067",
    "path" : "\/usr\/lib\/system\/libsystem_c.dylib",
    "name" : "libsystem_c.dylib"
  },
  {
    "source" : "P",
    "arch" : "arm64e",
    "base" : 6739660800,
    "CFBundleShortVersionString" : "1408.0.4",
    "CFBundleIdentifier" : "com.apple.CFNetwork",
    "size" : 3948544,
    "uuid" : "0e79cb17-3ea4-33f7-8589-da01432afde4",
    "path" : "\/System\/Library\/Frameworks\/CFNetwork.framework\/Versions\/A\/CFNetwork",
    "name" : "CFNetwork",
    "CFBundleVersion" : "1408.0.4"
  },
  {
    "size" : 0,
    "source" : "A",
    "base" : 0,
    "uuid" : "00000000-0000-0000-0000-000000000000"
  }
],
  "sharedCache" : {
  "base" : 6659538944,
  "size" : 3551805440,
  "uuid" : "7d9faa84-5c6b-3ef4-9379-faba64346673"
},
  "vmSummary" : "ReadOnly portion of Libraries: Total=1.5G resident=0K(0%) swapped_out_or_unallocated=1.5G(100%)\nWritable regions: Total=1.7G written=0K(0%) resident=0K(0%) swapped_out=0K(0%) unallocated=1.7G(100%)\n\n                                VIRTUAL   REGION \nREGION TYPE                        SIZE    COUNT (non-coalesced) \n===========                     =======  ======= \nAccelerate framework               128K        1 \nActivity Tracing                   256K        1 \nCG image                           288K        9 \nColorSync                          192K        9 \nCoreAnimation                     1456K       89 \nCoreGraphics                        32K        2 \nCoreUI image data                  416K        5 \nFoundation                         128K        4 \nKernel Alloc Once                   32K        1 \nMALLOC                           367.4M       82 \nMALLOC guard page                  288K       15 \nMALLOC_MEDIUM (reserved)         960.0M        8         reserved VM address space (unallocated)\nMALLOC_NANO (reserved)           384.0M        1         reserved VM address space (unallocated)\nSQLite page cache                  640K        5 \nSTACK GUARD                       56.3M       18 \nStack                             17.0M       18 \nVM_ALLOCATE                        192K       10 \n__AUTH                            2092K      397 \n__AUTH_CONST                      31.0M      634 \n__CTF                               824        1 \n__DATA                            16.1M      624 \n__DATA_CONST                      32.1M      640 \n__DATA_DIRTY                      2603K      249 \n__FONT_DATA                        2352        1 \n__INFO_FILTER                         8        1 \n__LINKEDIT                       804.6M        4 \n__OBJC_RO                         66.3M        1 \n__OBJC_RW                         2011K        1 \n__TEXT                           696.6M      661 \ndyld private memory                272K        2 \nlibnetwork                         128K        8 \nmapped file                      235.8M      195 \nshared memory                      880K       14 \n===========                     =======  ======= \nTOTAL                              3.6G     3711 \nTOTAL, minus reserved VM space     2.3G     3711 \n",
  "legacyInfo" : {
  "threadTriggered" : {
    "queue" : "com.apple.main-thread"
  }
},
  "logWritingSignature" : "18a249e2acbb630bedf4d1d96dfda9f46c8b552c",
  "trialInfo" : {
  "rollouts" : [
    {
      "rolloutId" : "62c74108bcb0435c2153f963",
      "factorPackIds" : {
        "SIRI_TEXT_TO_SPEECH" : "649f53cf7f223979b084f4ff"
      },
      "deploymentId" : 240000261
    },
    {
      "rolloutId" : "6391cacc75b0720ff1f8c695",
      "factorPackIds" : {
        "COREOS_ICD" : "63957f508061fa721c8edc4a"
      },
      "deploymentId" : 240000007
    }
  ],
  "experiments" : [

  ]
}
}
mathieudutour commented 1 year ago

Oh waow, is it still the extension above?

Tazintosh commented 1 year ago

Same extension, but more complex now, since I've continued working on it. BTW, as you can see, it leads to a complete Raycast crash, app needs to be relaunch.

mathieudutour commented 1 year ago

yeah, do you think you could give me access to it?

Tazintosh commented 1 year ago

All database request are made to my local server. So you won't get any data. However, your name sounds french to me, so this means awe could be on the same time zone and could easily make a screensharing session if this could help. You can message me to arrange that, I'm available today until 16h45

mathieudutour commented 1 year ago

I found the bug for the tag color not updating, it was a bit different from the one before.

I haven't been able to reproduce the crash tho. Could you create a log.txt on your desktop and add console.log(require("fs").appendFileSync(require("os").homedir() + "/Desktop/extension-log.log", JSON.stringify(results) + "\n")); just below export default function myPuzzleRaycast() {, and then run the extension, and then send me the extension-log.log that should have been created on your desktop? If it doesn't crash, delete that file and run it again until it crashes 😅

Tazintosh commented 1 year ago

Hi @mathieudutour, I've sent you the log privately on iMessage. Thanks for your time and solving those bugs!!!

Tazintosh commented 10 months ago

This issue seems to be fixed since a few updates. Don't know what have be done neither if it's just a coincidence with another fix, but anyway thank to whoever fixed it and to @mathieudutour for his help.