hluk / CopyQ

Clipboard manager with advanced features
GNU General Public License v3.0
8.25k stars 430 forks source link

CopyQ 7.1.0 on the Mac mini M2, When copying, error pops up: Exception in command: ScriptError: ReferenceError: zwlZ is not defined #2628

Open GoTop opened 3 months ago

GoTop commented 3 months ago

Before creating a new issue, see list of known issues.

Describe the bug I have installed CopyQ 7.1.0 on the Mac mini M2. When copying, an error message pops up:

Note [2024-03-09 12:38:48.785] <Server-2796>:    --- backtrace ---
Note [2024-03-09 12:38:48.785] <Server-2796>:    @eval code:3
Note [2024-03-09 12:38:48.785] <Server-2796>:    %entry@eval code:5
Note [2024-03-09 12:38:48.785] <Server-2796>:    eval:onClipboardChanged()
Note [2024-03-09 12:38:48.785] <Server-2796>:    eval(arguments[0])()
Note [2024-03-09 12:38:48.785] <Server-2796>:    --- end backtrace ---
Note [2024-03-09 12:38:48.988] <Server-2796>: Exception in command: ScriptError: ReferenceError: zwlZ is not defined
Note [2024-03-09 12:38:48.988] <Server-2796>:   

Version, OS and Environment (Get details from copyq version command if possible.)

hluk commented 3 months ago

Can you check if you get the error with the new version? https://github.com/hluk/CopyQ/releases/tag/v8.0.0

GoTop commented 3 months ago

I deleted version 6.0 of CopyQ, then installed the new version :CopyQ 8.0 in the terminal. brew install --cask copyq

When I ran CopyQ 8.0, it told me the file was damaged: "CopyQ" is damaged and can't be opened. You should move it to the Trash

According to the solution I found online, I run this command in the terminal : xattr -cr /Applications/CopyQ.app

When I ran CopyQ 8.0 again, it showed an error:

CopyQ quit unexpectedly.

This report will be sent automatically to Apple.

Problem Details and System Configuration:

-------------------------------------
Translated Report (Full Report Below)
-------------------------------------

Process:               CopyQ [82909]
Path:                  /Applications/CopyQ.app/Contents/MacOS/CopyQ
Identifier:            io.github.hluk.CopyQ
Version:               8.0 (8.0.0-g73afa309-v8.0.0)
Code Type:             ARM-64 (Native)
Parent Process:        launchd [1]
User ID:               501

Date/Time:             2024-03-19 21:31:32.1993 +0800
OS Version:            macOS 14.1.2 (23B92)
Report Version:        12
Anonymous UUID:        08D369A6-C142-5808-1173-73A377E319EC

Sleep/Wake UUID:       147B620E-7A03-49AD-86A5-79A5CCA6B1D9

Time Awake Since Boot: 270000 seconds
Time Since Wake:       48402 seconds

System Integrity Protection: enabled

Crashed Thread:        0

Exception Type:        EXC_BAD_ACCESS (SIGKILL (Code Signature Invalid))
Exception Codes:       UNKNOWN_0x32 at 0x0000000101c18000
Exception Codes:       0x0000000000000032, 0x0000000101c18000

Termination Reason:    Namespace CODESIGNING, Code 2 Invalid Page

VM Region Info: 0x101c18000 is in 0x101c18000-0x101c74000;  bytes after start: 0  bytes before end: 376831
      REGION TYPE                    START - END         [ VSIZE] PRT/MAX SHRMOD  REGION DETAIL
      dyld private memory         101c14000-101c18000    [   16K] ---/--- SM=NUL  
--->  mapped file                 101c18000-101c74000    [  368K] r--/rwx SM=COW  ...t_id=49a1c2b7
      GAP OF 0x69190000 BYTES
      Stack Guard                 16ae04000-16e608000    [ 56.0M] ---/rwx SM=NUL  

Thread 0 Crashed:
0   dyld                                   0x18d0cd508 dyld3::MachOFile::hasMachOMagic() const + 0
1   dyld                                   0x18d0a063c dyld4::SyscallDelegate::mapFileReadOnly(Diagnostics&, char const*, unsigned long*, dyld4::FileID*, bool*, char*) const + 228
2   dyld                                   0x18d09ffa0 dyld4::SyscallDelegate::withReadOnlyMappedFile(Diagnostics&, char const*, bool, void (void const*, unsigned long, bool, dyld4::FileID const&, char const*) block_pointer) const + 88
3   dyld                                   0x18d099000 dyld4::JustInTimeLoader::makeJustInTimeLoaderDisk(Diagnostics&, dyld4::RuntimeState&, char const*, dyld4::Loader::LoadOptions const&, bool, unsigned int, mach_o::Layout const*) + 208
4   dyld                                   0x18d08dfe8 dyld4::Loader::makeDiskLoader(Diagnostics&, dyld4::RuntimeState&, char const*, dyld4::Loader::LoadOptions const&, bool, unsigned int, mach_o::Layout const*) + 172
5   dyld                                   0x18d08f584 invocation function for block in dyld4::Loader::getLoader(Diagnostics&, dyld4::RuntimeState&, char const*, dyld4::Loader::LoadOptions const&) + 2056
6   dyld                                   0x18d08e694 dyld4::Loader::forEachResolvedAtPathVar(dyld4::RuntimeState&, char const*, dyld4::Loader::LoadOptions const&, dyld4::ProcessConfig::PathOverrides::Type, bool&, void (char const*, dyld4::ProcessConfig::PathOverrides::Type, bool&) block_pointer) + 776
7   dyld                                   0x18d07bb8c dyld4::ProcessConfig::PathOverrides::forEachPathVariant(char const*, dyld3::Platform, bool, bool, bool&, void (char const*, dyld4::ProcessConfig::PathOverrides::Type, bool&) block_pointer) const + 556
8   dyld                                   0x18d08e1cc dyld4::Loader::forEachPath(Diagnostics&, dyld4::RuntimeState&, char const*, dyld4::Loader::LoadOptions const&, void (char const*, dyld4::ProcessConfig::PathOverrides::Type, bool&) block_pointer) + 248
9   dyld                                   0x18d08e9fc dyld4::Loader::getLoader(Diagnostics&, dyld4::RuntimeState&, char const*, dyld4::Loader::LoadOptions const&) + 808
10  dyld                                   0x18d096f2c invocation function for block in dyld4::JustInTimeLoader::loadDependents(Diagnostics&, dyld4::RuntimeState&, dyld4::Loader::LoadOptions const&) + 412
11  dyld                                   0x18d0cdcd0 invocation function for block in dyld3::MachOFile::forEachDependentDylib(void (char const*, bool, bool, bool, unsigned int, unsigned int, bool&) block_pointer) const + 148
12  dyld                                   0x18d0752fc dyld3::MachOFile::forEachLoadCommand(Diagnostics&, void (load_command const*, bool&) block_pointer) const + 300
13  dyld                                   0x18d0cdb04 dyld3::MachOFile::forEachDependentDylib(void (char const*, bool, bool, bool, unsigned int, unsigned int, bool&) block_pointer) const + 172
14  dyld                                   0x18d096c70 dyld4::JustInTimeLoader::loadDependents(Diagnostics&, dyld4::RuntimeState&, dyld4::Loader::LoadOptions const&) + 164
15  dyld                                   0x18d0797c0 dyld4::prepare(dyld4::APIs&, dyld3::MachOAnalyzer const*) + 1176
16  dyld                                   0x18d078edc start + 1844

Thread 0 crashed with ARM Thread State (64-bit):
    x0: 0x0000000101c18000   x1: 0x0000000000000000   x2: 0x000000016ee01c08   x3: 0x0000000000040002
    x4: 0x0000000000000003   x5: 0x0000000000000000   x6: 0x000000016ee01c08   x7: 0x0000000000000fa0
    x8: 0x000000016ee01aa0   x9: 0x000000016ee01aa8  x10: 0x000000000100000d  x11: 0x0000000000000001
   x12: 0x000000016ee022a2  x13: 0x0000000000000000  x14: 0x000000024520cefa  x15: 0x0000000000008000
   x16: 0x000000000000005c  x17: 0x000000018d076f90  x18: 0x0000000000000000  x19: 0x000000016ee02190
   x20: 0x0000000000000003  x21: 0x000000016ee01bdf  x22: 0x0000000101c18000  x23: 0x000000016ee01c08
   x24: 0x000000016ee01be0  x25: 0x000000016ee01c00  x26: 0x000000016ee020a0  x27: 0x0000000101bd6d98
   x28: 0x0000000000000000   fp: 0x000000016ee01bc0   lr: 0x000000018d0a063c
    sp: 0x000000016ee01aa0   pc: 0x000000018d0cd508 cpsr: 0x80001000
   far: 0x0000000101c18000  esr: 0x92000007 (Data Abort) byte read Translation fault

Binary Images:
       0x100ffc000 -        0x10154ffff io.github.hluk.CopyQ (8.0) <c3de0e83-f19a-3a2c-9a1a-c21cbad99b9c> /Applications/CopyQ.app/Contents/MacOS/CopyQ
       0x18d073000 -        0x18d107317 dyld (*) <ec7a3ba0-f9bf-3ab8-a0f4-8622e5606b20> /usr/lib/dyld
               0x0 - 0xffffffffffffffff ??? (*) <00000000-0000-0000-0000-000000000000> ???

External Modification Summary:
  Calls made by other processes targeting this process:
    task_for_pid: 0
    thread_create: 0
    thread_set_state: 0
  Calls made by this process:
    task_for_pid: 0
    thread_create: 0
    thread_set_state: 0
  Calls made by all processes on this machine:
    task_for_pid: 0
    thread_create: 0
    thread_set_state: 0

VM Region Summary:
ReadOnly portion of Libraries: Total=894.7M resident=0K(0%) swapped_out_or_unallocated=894.7M(100%)
Writable regions: Total=12.2M written=0K(0%) resident=0K(0%) swapped_out=0K(0%) unallocated=12.2M(100%)

                                VIRTUAL   REGION 
REGION TYPE                        SIZE    COUNT (non-coalesced) 
===========                     =======  ======= 
STACK GUARD                       56.0M        1 
Stack                             8176K        1 
__DATA                              43K        3 
__DATA_CONST                       198K        2 
__DATA_DIRTY                         7K        1 
__LINKEDIT                       888.8M        2 
__TEXT                            6052K        2 
dyld private memory               4384K        4 
mapped file                        368K        1 
===========                     =======  ======= 
TOTAL                            963.5M       17 

-----------
Full Report
-----------

{"app_name":"CopyQ","timestamp":"2024-03-19 21:31:32.00 +0800","app_version":"8.0","slice_uuid":"c3de0e83-f19a-3a2c-9a1a-c21cbad99b9c","build_version":"8.0.0-g73afa309-v8.0.0","platform":1,"bundleID":"io.github.hluk.CopyQ","share_with_app_devs":0,"is_first_party":0,"bug_type":"309","os_version":"macOS 14.1.2 (23B92)","roots_installed":0,"name":"CopyQ","incident_id":"991B176D-C719-4EA2-A74C-4E7A26339415"}
{
  "uptime" : 270000,
  "procRole" : "Default",
  "version" : 2,
  "userID" : 501,
  "deployVersion" : 210,
  "modelCode" : "Mac14,3",
  "coalitionID" : 41566,
  "osVersion" : {
    "train" : "macOS 14.1.2",
    "build" : "23B92",
    "releaseType" : "User"
  },
  "captureTime" : "2024-03-19 21:31:32.1993 +0800",
  "codeSigningMonitor" : 1,
  "incident" : "991B176D-C719-4EA2-A74C-4E7A26339415",
  "pid" : 82909,
  "translated" : false,
  "cpuType" : "ARM-64",
  "roots_installed" : 0,
  "bug_type" : "309",
  "procLaunch" : "2024-03-19 21:31:32.0544 +0800",
  "procStartAbsTime" : 6703849238533,
  "procExitAbsTime" : 6703849987369,
  "procName" : "CopyQ",
  "procPath" : "\/Applications\/CopyQ.app\/Contents\/MacOS\/CopyQ",
  "bundleInfo" : {"CFBundleShortVersionString":"8.0","CFBundleVersion":"8.0.0-g73afa309-v8.0.0","CFBundleIdentifier":"io.github.hluk.CopyQ"},
  "storeInfo" : {"deviceIdentifierForVendor":"D888C3AB-E570-59DD-B61B-3A66A55AF8AA","thirdParty":true},
  "parentProc" : "launchd",
  "parentPid" : 1,
  "coalitionName" : "io.github.hluk.CopyQ",
  "crashReporterKey" : "08D369A6-C142-5808-1173-73A377E319EC",
  "codeSigningID" : "CopyQ",
  "codeSigningTeamID" : "",
  "codeSigningFlags" : 587334144,
  "codeSigningValidationCategory" : 0,
  "codeSigningTrustLevel" : 4294967295,
  "instructionByteStream" : {"beforePC":"SwEJi2sJQLl\/AQhroAAAVClBAJE\/gQPxQf\/\/VMADX9ZAaWn4wANf1g==","atPC":"CABAuemsn1LJ7q9yPwVIa+AXnxrAA1\/WwANf1ggAQLnprJ9Sye6vcg=="},
  "wakeTime" : 48402,
  "sleepWakeUUID" : "147B620E-7A03-49AD-86A5-79A5CCA6B1D9",
  "sip" : "enabled",
  "vmRegionInfo" : "0x101c18000 is in 0x101c18000-0x101c74000;  bytes after start: 0  bytes before end: 376831\n      REGION TYPE                    START - END         [ VSIZE] PRT\/MAX SHRMOD  REGION DETAIL\n      dyld private memory         101c14000-101c18000    [   16K] ---\/--- SM=NUL  \n--->  mapped file                 101c18000-101c74000    [  368K] r--\/rwx SM=COW  ...t_id=49a1c2b7\n      GAP OF 0x69190000 BYTES\n      Stack Guard                 16ae04000-16e608000    [ 56.0M] ---\/rwx SM=NUL  ",
  "exception" : {"codes":"0x0000000000000032, 0x0000000101c18000","rawCodes":[50,4324425728],"type":"EXC_BAD_ACCESS","signal":"SIGKILL (Code Signature Invalid)","subtype":"UNKNOWN_0x32 at 0x0000000101c18000"},
  "termination" : {"flags":0,"code":2,"namespace":"CODESIGNING","indicator":"Invalid Page"},
  "vmregioninfo" : "0x101c18000 is in 0x101c18000-0x101c74000;  bytes after start: 0  bytes before end: 376831\n      REGION TYPE                    START - END         [ VSIZE] PRT\/MAX SHRMOD  REGION DETAIL\n      dyld private memory         101c14000-101c18000    [   16K] ---\/--- SM=NUL  \n--->  mapped file                 101c18000-101c74000    [  368K] r--\/rwx SM=COW  ...t_id=49a1c2b7\n      GAP OF 0x69190000 BYTES\n      Stack Guard                 16ae04000-16e608000    [ 56.0M] ---\/rwx SM=NUL  ",
  "extMods" : {"caller":{"thread_create":0,"thread_set_state":0,"task_for_pid":0},"system":{"thread_create":0,"thread_set_state":0,"task_for_pid":0},"targeted":{"thread_create":0,"thread_set_state":0,"task_for_pid":0},"warnings":0},
  "faultingThread" : 0,
  "threads" : [{"triggered":true,"id":3039161,"threadState":{"x":[{"value":4324425728},{"value":0},{"value":6155148296},{"value":262146},{"value":3},{"value":0},{"value":6155148296},{"value":4000},{"value":6155147936},{"value":6155147944},{"value":16777229},{"value":1},{"value":6155149986},{"value":0},{"value":9749712634},{"value":32768},{"value":92},{"value":6661042064,"symbolLocation":56,"symbol":"fcntl"},{"value":0},{"value":6155149712},{"value":3},{"value":6155148255},{"value":4324425728},{"value":6155148296},{"value":6155148256},{"value":6155148288},{"value":6155149472},{"value":4324158872},{"value":0}],"flavor":"ARM_THREAD_STATE64","lr":{"value":6661211708},"cpsr":{"value":2147487744},"fp":{"value":6155148224},"sp":{"value":6155147936},"esr":{"value":2449473543,"description":"(Data Abort) byte read Translation fault"},"pc":{"value":6661395720,"matchesCrashFrame":1},"far":{"value":4324425728}},"frames":[{"imageOffset":369928,"symbol":"dyld3::MachOFile::hasMachOMagic() const","symbolLocation":0,"imageIndex":1},{"imageOffset":185916,"symbol":"dyld4::SyscallDelegate::mapFileReadOnly(Diagnostics&, char const*, unsigned long*, dyld4::FileID*, bool*, char*) const","symbolLocation":228,"imageIndex":1},{"imageOffset":184224,"symbol":"dyld4::SyscallDelegate::withReadOnlyMappedFile(Diagnostics&, char const*, bool, void (void const*, unsigned long, bool, dyld4::FileID const&, char const*) block_pointer) const","symbolLocation":88,"imageIndex":1},{"imageOffset":155648,"symbol":"dyld4::JustInTimeLoader::makeJustInTimeLoaderDisk(Diagnostics&, dyld4::RuntimeState&, char const*, dyld4::Loader::LoadOptions const&, bool, unsigned int, mach_o::Layout const*)","symbolLocation":208,"imageIndex":1},{"imageOffset":110568,"symbol":"dyld4::Loader::makeDiskLoader(Diagnostics&, dyld4::RuntimeState&, char const*, dyld4::Loader::LoadOptions const&, bool, unsigned int, mach_o::Layout const*)","symbolLocation":172,"imageIndex":1},{"imageOffset":116100,"symbol":"invocation function for block in dyld4::Loader::getLoader(Diagnostics&, dyld4::RuntimeState&, char const*, dyld4::Loader::LoadOptions const&)","symbolLocation":2056,"imageIndex":1},{"imageOffset":112276,"symbol":"dyld4::Loader::forEachResolvedAtPathVar(dyld4::RuntimeState&, char const*, dyld4::Loader::LoadOptions const&, dyld4::ProcessConfig::PathOverrides::Type, bool&, void (char const*, dyld4::ProcessConfig::PathOverrides::Type, bool&) block_pointer)","symbolLocation":776,"imageIndex":1},{"imageOffset":35724,"symbol":"dyld4::ProcessConfig::PathOverrides::forEachPathVariant(char const*, dyld3::Platform, bool, bool, bool&, void (char const*, dyld4::ProcessConfig::PathOverrides::Type, bool&) block_pointer) const","symbolLocation":556,"imageIndex":1},{"imageOffset":111052,"symbol":"dyld4::Loader::forEachPath(Diagnostics&, dyld4::RuntimeState&, char const*, dyld4::Loader::LoadOptions const&, void (char const*, dyld4::ProcessConfig::PathOverrides::Type, bool&) block_pointer)","symbolLocation":248,"imageIndex":1},{"imageOffset":113148,"symbol":"dyld4::Loader::getLoader(Diagnostics&, dyld4::RuntimeState&, char const*, dyld4::Loader::LoadOptions const&)","symbolLocation":808,"imageIndex":1},{"imageOffset":147244,"symbol":"invocation function for block in dyld4::JustInTimeLoader::loadDependents(Diagnostics&, dyld4::RuntimeState&, dyld4::Loader::LoadOptions const&)","symbolLocation":412,"imageIndex":1},{"imageOffset":371920,"symbol":"invocation function for block in dyld3::MachOFile::forEachDependentDylib(void (char const*, bool, bool, bool, unsigned int, unsigned int, bool&) block_pointer) const","symbolLocation":148,"imageIndex":1},{"imageOffset":8956,"symbol":"dyld3::MachOFile::forEachLoadCommand(Diagnostics&, void (load_command const*, bool&) block_pointer) const","symbolLocation":300,"imageIndex":1},{"imageOffset":371460,"symbol":"dyld3::MachOFile::forEachDependentDylib(void (char const*, bool, bool, bool, unsigned int, unsigned int, bool&) block_pointer) const","symbolLocation":172,"imageIndex":1},{"imageOffset":146544,"symbol":"dyld4::JustInTimeLoader::loadDependents(Diagnostics&, dyld4::RuntimeState&, dyld4::Loader::LoadOptions const&)","symbolLocation":164,"imageIndex":1},{"imageOffset":26560,"symbol":"dyld4::prepare(dyld4::APIs&, dyld3::MachOAnalyzer const*)","symbolLocation":1176,"imageIndex":1},{"imageOffset":24284,"symbol":"start","symbolLocation":1844,"imageIndex":1}]}],
  "usedImages" : [
  {
    "source" : "P",
    "arch" : "arm64",
    "base" : 4311728128,
    "CFBundleShortVersionString" : "8.0",
    "CFBundleIdentifier" : "io.github.hluk.CopyQ",
    "size" : 5586944,
    "uuid" : "c3de0e83-f19a-3a2c-9a1a-c21cbad99b9c",
    "path" : "\/Applications\/CopyQ.app\/Contents\/MacOS\/CopyQ",
    "name" : "CopyQ",
    "CFBundleVersion" : "8.0.0-g73afa309-v8.0.0"
  },
  {
    "source" : "P",
    "arch" : "arm64e",
    "base" : 6661025792,
    "size" : 607000,
    "uuid" : "ec7a3ba0-f9bf-3ab8-a0f4-8622e5606b20",
    "path" : "\/usr\/lib\/dyld",
    "name" : "dyld"
  },
  {
    "size" : 0,
    "source" : "A",
    "base" : 0,
    "uuid" : "00000000-0000-0000-0000-000000000000"
  }
],
  "sharedCache" : {
  "base" : 6660276224,
  "size" : 4018896896,
  "uuid" : "6d1aeeac-d56f-3513-9ae1-3894fde828f3"
},
  "vmSummary" : "ReadOnly portion of Libraries: Total=894.7M resident=0K(0%) swapped_out_or_unallocated=894.7M(100%)\nWritable regions: Total=12.2M written=0K(0%) resident=0K(0%) swapped_out=0K(0%) unallocated=12.2M(100%)\n\n                                VIRTUAL   REGION \nREGION TYPE                        SIZE    COUNT (non-coalesced) \n===========                     =======  ======= \nSTACK GUARD                       56.0M        1 \nStack                             8176K        1 \n__DATA                              43K        3 \n__DATA_CONST                       198K        2 \n__DATA_DIRTY                         7K        1 \n__LINKEDIT                       888.8M        2 \n__TEXT                            6052K        2 \ndyld private memory               4384K        4 \nmapped file                        368K        1 \n===========                     =======  ======= \nTOTAL                            963.5M       17 \n",
  "legacyInfo" : {
  "threadTriggered" : {

  }
},
  "logWritingSignature" : "147570aa7f2b07a7c6a8be9fc130f15503609f6f",
  "trialInfo" : {
  "rollouts" : [
    {
      "rolloutId" : "60356660bbe37970735c5624",
      "factorPackIds" : {

      },
      "deploymentId" : 240000027
    },
    {
      "rolloutId" : "60f8ddccefea4203d95cbeef",
      "factorPackIds" : {

      },
      "deploymentId" : 240000025
    }
  ],
  "experiments" : [

  ]
}
}

Model: Mac14,3, BootROM 10151.41.12, proc 8:4:4 processors, 8 GB, SMC 
Graphics: Apple M2, Apple M2, Built-In
Display: BenQ EW3270U, 3840 x 2160 (2160p/4K UHD 1 - Ultra High Definition), Main, MirrorOff, Online
Memory Module: LPDDR5, Hynix
AirPort: spairport_wireless_card_type_wifi (0x14E4, 0x4388), wl0: Sep  1 2023 19:33:27 version 23.10.765.4.41.51.121 FWID 01-8bb7c684
Bluetooth: Version (null), 0 services, 0 devices, 0 incoming serial ports
Network Service: Ethernet, Ethernet, en0
USB Device: USB31Bus
USB Device: USB31Bus
USB Device: USB31Bus
USB Device: G102 LIGHTSYNC Gaming Mouse
USB Device: Keyboard -- QuickFire XT
Thunderbolt Bus: Mac mini, Apple Inc.
Thunderbolt Bus: Mac mini, Apple Inc.
hluk commented 3 months ago

This looks similar to #2637.

GoTop commented 3 months ago

This looks similar to #2637.

xattr -d com.apple.quarantine /Applications/CopyQ.app
codesign --force --deep --sign - /Applications/CopyQ.app

This workaround worked for me. Thank you!