Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crash khi vừa mở ứng dụng #52

Closed
maphim opened this issue Mar 25, 2023 · 3 comments
Closed

Crash khi vừa mở ứng dụng #52

maphim opened this issue Mar 25, 2023 · 3 comments

Comments

@maphim
Copy link

maphim commented Mar 25, 2023

Screen Shot 2023-03-25 at 22 55 47

Screen Shot 2023-03-25 at 22 55 02

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

Process:               goxkey [19124]
Path:                  /Applications/Gõ Key.app/Contents/MacOS/goxkey
Identifier:            com.goxkey.ui
Version:               0.0.1 (20230320.232415)
Code Type:             X86-64 (Native)
Parent Process:        launchd [1]
User ID:               501

Date/Time:             2023-03-25 22:49:30.2065 +0700
OS Version:            macOS 12.6 (21G115)
Report Version:        12
Bridge OS Version:     6.6 (19P6067)
Anonymous UUID:        0D9F6076-70EB-178D-66C7-4CC2A91A4E21

Sleep/Wake UUID:       C55E8367-874A-4926-80EB-AB3BE843DF41

Time Awake Since Boot: 57000 seconds
Time Since Wake:       1405 seconds

System Integrity Protection: enabled

Crashed Thread:        0  main  Dispatch queue: com.apple.main-thread

Exception Type:        EXC_BAD_ACCESS (SIGSEGV)
Exception Codes:       KERN_INVALID_ADDRESS at 0x0000000000000000
Exception Codes:       0x0000000000000001, 0x0000000000000000
Exception Note:        EXC_CORPSE_NOTIFY

Termination Reason:    Namespace SIGNAL, Code 11 Segmentation fault: 11
Terminating Process:   exc handler [19124]

VM Region Info: 0 is not in any region.  Bytes before following region: 4315750400
      REGION TYPE                    START - END         [ VSIZE] PRT/MAX SHRMOD  REGION DETAIL
      UNUSED SPACE AT START
--->  
      __TEXT                      1013d2000-10168e000    [ 2800K] r-x/r-x SM=COW  .../MacOS/goxkey

Thread 0 Crashed:: main Dispatch queue: com.apple.main-thread
0   CoreFoundation                	    0x7ff807f3590d CFDataGetBytePtr + 6
1   goxkey                        	       0x10153622f rdev::macos::keyboard::Keyboard::string_from_code::h30a5b8c915d6f05f + 63
2   goxkey                        	       0x101536367 _$LT$rdev..macos..keyboard..Keyboard$u20$as$u20$rdev..rdev..KeyboardState$GT$::add::h86a93639157b1a20 + 119
3   goxkey                        	       0x101422fe2 goxkey::input::build_keyboard_layout_map::h432c08493bce46be + 306
4   goxkey                        	       0x10142332a goxkey::input::rebuild_keyboard_layout_map::h74d69ad26f4a8a05 + 362
5   goxkey                        	       0x10143d3c7 goxkey::main::h64da65ddf89dbedb + 39
6   goxkey                        	       0x1014099a6 std::sys_common::backtrace::__rust_begin_short_backtrace::h30ab29c12f42fe74 + 6
7   goxkey                        	       0x10143e02c std::rt::lang_start::_$u7b$$u7b$closure$u7d$$u7d$::h659a2a62d2f5f24f + 12
8   goxkey                        	       0x1015d5e20 std::rt::lang_start_internal::h72dc55d09e0a2397 + 784
9   goxkey                        	       0x10143d7fc main + 44
10  dyld                          	       0x107f9e52e start + 462

Thread 1:
0   libsystem_pthread.dylib       	    0x7ff807ecdf48 start_wqthread + 0

Thread 2:
0   libsystem_pthread.dylib       	    0x7ff807ecdf48 start_wqthread + 0


Thread 0 crashed with X86 Thread State (64-bit):
  rax: 0x0000000000000000  rbx: 0x0000000000000000  rcx: 0xf673e0bd3b5700c4  rdx: 0x00007ff849cf0f58
  rdi: 0x0000000000000000  rsi: 0x00007ff849cf0e98  rbp: 0x00007ff7beb2cf00  rsp: 0x00007ff7beb2ce98
   r8: 0x00007ff7beb2ce30   r9: 0x000000000000dc37  r10: 0x00007ff810ed486b  r11: 0x2bbf1914c968046a
  r12: 0x0000000000000000  r13: 0x00007f928ab0a360  r14: 0x00007ff7beb2d058  r15: 0x00007ff7beb2d030
  rip: 0x00007ff807f3590d  rfl: 0x0000000000010246  cr2: 0x0000000000000000
  
Logical CPU:     4
Error Code:      0x00000004 (no mapping for user data read)
Trap Number:     14

Thread 0 instruction stream:
  00 48 8b 5d 80 48 85 db-74 0f 48 8d 3d 62 cd ca  .H.].H..t.H.=b..
  42 e8 1e 79 fe ff 48 89-03 31 db 48 8b 7d 88 e8  B..y..H..1.H.}..
  b7 e8 fe ff 48 8b 05 50-fc af 42 48 8b 00 48 3b  ....H..P..BH..H;
  45 d0 75 14 89 d8 48 81-c4 88 00 00 00 5b 41 5c  E.u...H......[A\
  41 5d 41 5e 41 5f 5d c3-e8 f0 60 1a 00 90 90 90  A]A^A_]...`.....
  90 90 90 90 90 90 90 90-90 90 40 f6 c7 01 75 35  [email protected]
 [48]8b 07 48 85 c0 74 1f-48 8b 0d 24 9b 72 41 48  H..H..t.H..$.rAH	<==
  39 c8 74 13 a8 01 74 1d-48 8b 15 ac 05 b0 42 48  9.t...t.H.....BH
  23 02 48 39 c8 75 0e 48-8b 47 08 a8 04 75 13 48  #.H9.u.H.G...u.H
  8b 7f 28 eb 15 48 8b 35-3f 2a 72 41 ff 25 29 06  ..(..H.5?*rA.%).
  b0 42 48 83 c7 3f 48 83-e7 f0 48 89 f8 c3 90 90  .BH..?H...H.....
  90 90 90 90 90 90 90 90-90 90 90 90 90 55 41 57  .............UAW

Binary Images:
    0x7ff807f19000 -     0x7ff80841bfff com.apple.CoreFoundation (6.9) <93c48919-68af-367e-9a67-db4159bc962c> /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
       0x1013d2000 -        0x10168dfff com.goxkey.ui (0.0.1) <0a2e292d-c2e4-372a-8a22-eeb41a21b2bb> /Applications/Gõ Key.app/Contents/MacOS/goxkey
       0x107f99000 -        0x108004fff dyld (*) <71febccd-d9dc-3599-9971-2b3407c588a8> /usr/lib/dyld
    0x7ff807ecc000 -     0x7ff807ed7fff libsystem_pthread.dylib (*) <b5454e27-e8c7-3fdb-b77f-714f1e82e70b> /usr/lib/system/libsystem_pthread.dylib

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=830.2M resident=0K(0%) swapped_out_or_unallocated=830.2M(100%)
Writable regions: Total=137.5M written=0K(0%) resident=0K(0%) swapped_out=0K(0%) unallocated=137.5M(100%)

                                VIRTUAL   REGION 
REGION TYPE                        SIZE    COUNT (non-coalesced) 
===========                     =======  ======= 
Activity Tracing                   256K        1 
Dispatch continuations            64.0M        1 
Kernel Alloc Once                    8K        1 
MALLOC                            64.1M       20 
MALLOC guard page                   16K        4 
ObjC additional data                15K        1 
STACK GUARD                          8K        2 
Stack                             9228K        3 
Stack Guard                       56.0M        1 
VM_ALLOCATE                        144K        5 
__DATA                            15.2M      240 
__DATA_CONST                      11.1M      149 
__DATA_DIRTY                       485K       86 
__FONT_DATA                          4K        1 
__LINKEDIT                       646.4M        8 
__TEXT                           183.8M      259 
__UNICODE                          592K        1 
dyld private memory               1024K        1 
mapped file                       36.6M        5 
shared memory                      212K       10 
===========                     =======  ======= 
TOTAL                              1.1G      799 



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

{"app_name":"goxkey","timestamp":"2023-03-25 22:49:30.00 +0700","app_version":"0.0.1","slice_uuid":"0a2e292d-c2e4-372a-8a22-eeb41a21b2bb","build_version":"20230320.232415","platform":1,"bundleID":"com.goxkey.ui","share_with_app_devs":0,"is_first_party":0,"bug_type":"309","os_version":"macOS 12.6 (21G115)","incident_id":"0741A85C-5CD1-4D83-85F7-CD5086F1DED5","name":"goxkey"}
{
  "uptime" : 57000,
  "procLaunch" : "2023-03-25 22:49:30.1484 +0700",
  "procRole" : "Default",
  "version" : 2,
  "userID" : 501,
  "deployVersion" : 210,
  "modelCode" : "MacBookPro16,3",
  "procStartAbsTime" : 57511529401194,
  "coalitionID" : 13302,
  "osVersion" : {
    "train" : "macOS 12.6",
    "build" : "21G115",
    "releaseType" : "User"
  },
  "captureTime" : "2023-03-25 22:49:30.2065 +0700",
  "incident" : "0741A85C-5CD1-4D83-85F7-CD5086F1DED5",
  "bug_type" : "309",
  "pid" : 19124,
  "procExitAbsTime" : 57511586874411,
  "cpuType" : "X86-64",
  "procName" : "goxkey",
  "procPath" : "\/Applications\/Gõ Key.app\/Contents\/MacOS\/goxkey",
  "bundleInfo" : {"CFBundleShortVersionString":"0.0.1","CFBundleVersion":"20230320.232415","CFBundleIdentifier":"com.goxkey.ui"},
  "storeInfo" : {"deviceIdentifierForVendor":"D3A6A81B-72BE-5212-B718-1E3AEE5B8E68","thirdParty":true},
  "parentProc" : "launchd",
  "parentPid" : 1,
  "coalitionName" : "com.goxkey.ui",
  "crashReporterKey" : "0D9F6076-70EB-178D-66C7-4CC2A91A4E21",
  "wakeTime" : 1405,
  "bridgeVersion" : {"build":"19P6067","train":"6.6"},
  "sleepWakeUUID" : "C55E8367-874A-4926-80EB-AB3BE843DF41",
  "sip" : "enabled",
  "vmRegionInfo" : "0 is not in any region.  Bytes before following region: 4315750400\n      REGION TYPE                    START - END         [ VSIZE] PRT\/MAX SHRMOD  REGION DETAIL\n      UNUSED SPACE AT START\n--->  \n      __TEXT                      1013d2000-10168e000    [ 2800K] r-x\/r-x SM=COW  ...\/MacOS\/goxkey",
  "isCorpse" : 1,
  "exception" : {"codes":"0x0000000000000001, 0x0000000000000000","rawCodes":[1,0],"type":"EXC_BAD_ACCESS","signal":"SIGSEGV","subtype":"KERN_INVALID_ADDRESS at 0x0000000000000000"},
  "termination" : {"flags":0,"code":11,"namespace":"SIGNAL","indicator":"Segmentation fault: 11","byProc":"exc handler","byPid":19124},
  "vmregioninfo" : "0 is not in any region.  Bytes before following region: 4315750400\n      REGION TYPE                    START - END         [ VSIZE] PRT\/MAX SHRMOD  REGION DETAIL\n      UNUSED SPACE AT START\n--->  \n      __TEXT                      1013d2000-10168e000    [ 2800K] r-x\/r-x SM=COW  ...\/MacOS\/goxkey",
  "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" : [{"queue":"com.apple.main-thread","instructionState":{"instructionStream":{"bytes":[0,72,139,93,128,72,133,219,116,15,72,141,61,98,205,202,66,232,30,121,254,255,72,137,3,49,219,72,139,125,136,232,183,232,254,255,72,139,5,80,252,175,66,72,139,0,72,59,69,208,117,20,137,216,72,129,196,136,0,0,0,91,65,92,65,93,65,94,65,95,93,195,232,240,96,26,0,144,144,144,144,144,144,144,144,144,144,144,144,144,64,246,199,1,117,53,72,139,7,72,133,192,116,31,72,139,13,36,155,114,65,72,57,200,116,19,168,1,116,29,72,139,21,172,5,176,66,72,35,2,72,57,200,117,14,72,139,71,8,168,4,117,19,72,139,127,40,235,21,72,139,53,63,42,114,65,255,37,41,6,176,66,72,131,199,63,72,131,231,240,72,137,248,195,144,144,144,144,144,144,144,144,144,144,144,144,144,144,144,85,65,87],"offset":96}},"frames":[{"imageOffset":117005,"symbol":"CFDataGetBytePtr","symbolLocation":6,"imageIndex":0},{"imageOffset":1458735,"symbol":"rdev::macos::keyboard::Keyboard::string_from_code::h30a5b8c915d6f05f","symbolLocation":63,"imageIndex":1},{"imageOffset":1459047,"symbol":"_$LT$rdev..macos..keyboard..Keyboard$u20$as$u20$rdev..rdev..KeyboardState$GT$::add::h86a93639157b1a20","symbolLocation":119,"imageIndex":1},{"imageOffset":331746,"symbol":"goxkey::input::build_keyboard_layout_map::h432c08493bce46be","symbolLocation":306,"imageIndex":1},{"imageOffset":332586,"symbol":"goxkey::input::rebuild_keyboard_layout_map::h74d69ad26f4a8a05","symbolLocation":362,"imageIndex":1},{"imageOffset":439239,"symbol":"goxkey::main::h64da65ddf89dbedb","symbolLocation":39,"imageIndex":1},{"imageOffset":227750,"symbol":"std::sys_common::backtrace::__rust_begin_short_backtrace::h30ab29c12f42fe74","symbolLocation":6,"imageIndex":1},{"imageOffset":442412,"symbol":"std::rt::lang_start::_$u7b$$u7b$closure$u7d$$u7d$::h659a2a62d2f5f24f","symbolLocation":12,"imageIndex":1},{"imageOffset":2113056,"symbol":"std::rt::lang_start_internal::h72dc55d09e0a2397","symbolLocation":784,"imageIndex":1},{"imageOffset":440316,"symbol":"main","symbolLocation":44,"imageIndex":1},{"imageOffset":21806,"symbol":"start","symbolLocation":462,"imageIndex":2}],"id":572287,"triggered":true,"threadState":{"r13":{"value":140267368784736},"rax":{"value":0},"rflags":{"value":66118},"cpu":{"value":4},"r14":{"value":140702033039448},"rsi":{"value":140704366923416},"r8":{"value":140702033038896},"cr2":{"value":0},"rdx":{"value":140704366923608},"r10":{"value":140703412602987},"r9":{"value":56375},"r15":{"value":140702033039408},"rbx":{"value":0},"trap":{"value":14,"description":"(no mapping for user data read)"},"err":{"value":4},"r11":{"value":3152265841251714154},"rip":{"value":140703262005517,"matchesCrashFrame":1},"rbp":{"value":140702033039104},"rsp":{"value":140702033039000},"r12":{"value":0},"rcx":{"value":17758784859000996036},"flavor":"x86_THREAD_STATE","rdi":{"value":0}},"name":"main"},{"id":572296,"frames":[{"imageOffset":8008,"symbol":"start_wqthread","symbolLocation":0,"imageIndex":3}]},{"id":572298,"frames":[{"imageOffset":8008,"symbol":"start_wqthread","symbolLocation":0,"imageIndex":3}]}],
  "usedImages" : [
  {
    "source" : "P",
    "arch" : "x86_64h",
    "base" : 140703261888512,
    "CFBundleShortVersionString" : "6.9",
    "CFBundleIdentifier" : "com.apple.CoreFoundation",
    "size" : 5255168,
    "uuid" : "93c48919-68af-367e-9a67-db4159bc962c",
    "path" : "\/System\/Library\/Frameworks\/CoreFoundation.framework\/Versions\/A\/CoreFoundation",
    "name" : "CoreFoundation",
    "CFBundleVersion" : "1866"
  },
  {
    "source" : "P",
    "arch" : "x86_64",
    "base" : 4315750400,
    "CFBundleShortVersionString" : "0.0.1",
    "CFBundleIdentifier" : "com.goxkey.ui",
    "size" : 2867200,
    "uuid" : "0a2e292d-c2e4-372a-8a22-eeb41a21b2bb",
    "path" : "\/Applications\/Gõ Key.app\/Contents\/MacOS\/goxkey",
    "name" : "goxkey",
    "CFBundleVersion" : "20230320.232415"
  },
  {
    "source" : "P",
    "arch" : "x86_64",
    "base" : 4428763136,
    "size" : 442368,
    "uuid" : "71febccd-d9dc-3599-9971-2b3407c588a8",
    "path" : "\/usr\/lib\/dyld",
    "name" : "dyld"
  },
  {
    "source" : "P",
    "arch" : "x86_64",
    "base" : 140703261573120,
    "size" : 49152,
    "uuid" : "b5454e27-e8c7-3fdb-b77f-714f1e82e70b",
    "path" : "\/usr\/lib\/system\/libsystem_pthread.dylib",
    "name" : "libsystem_pthread.dylib"
  }
],
  "sharedCache" : {
  "base" : 140703258316800,
  "size" : 19331678208,
  "uuid" : "73669942-bd8a-3e40-951f-7fbe07b51cb8"
},
  "vmSummary" : "ReadOnly portion of Libraries: Total=830.2M resident=0K(0%) swapped_out_or_unallocated=830.2M(100%)\nWritable regions: Total=137.5M written=0K(0%) resident=0K(0%) swapped_out=0K(0%) unallocated=137.5M(100%)\n\n                                VIRTUAL   REGION \nREGION TYPE                        SIZE    COUNT (non-coalesced) \n===========                     =======  ======= \nActivity Tracing                   256K        1 \nDispatch continuations            64.0M        1 \nKernel Alloc Once                    8K        1 \nMALLOC                            64.1M       20 \nMALLOC guard page                   16K        4 \nObjC additional data                15K        1 \nSTACK GUARD                          8K        2 \nStack                             9228K        3 \nStack Guard                       56.0M        1 \nVM_ALLOCATE                        144K        5 \n__DATA                            15.2M      240 \n__DATA_CONST                      11.1M      149 \n__DATA_DIRTY                       485K       86 \n__FONT_DATA                          4K        1 \n__LINKEDIT                       646.4M        8 \n__TEXT                           183.8M      259 \n__UNICODE                          592K        1 \ndyld private memory               1024K        1 \nmapped file                       36.6M        5 \nshared memory                      212K       10 \n===========                     =======  ======= \nTOTAL                              1.1G      799 \n",
  "legacyInfo" : {
  "threadTriggered" : {
    "name" : "main",
    "queue" : "com.apple.main-thread"
  }
},
  "trialInfo" : {
  "rollouts" : [
    {
      "rolloutId" : "5fb4245a1bbfe8005e33a1e1",
      "factorPackIds" : {

      },
      "deploymentId" : 240000021
    },
    {
      "rolloutId" : "6112e14f37f5d11121dcd519",
      "factorPackIds" : {
        "SIRI_TEXT_TO_SPEECH" : "634710168e8be655c1316aaa"
      },
      "deploymentId" : 240000231
    }
  ],
  "experiments" : [

  ]
}
}

Model: MacBookPro16,3, BootROM 1731.140.2.0.0 (iBridge: 19.16.16067.0.0,0), 4 processors, Quad-Core Intel Core i5, 1,4 GHz, 8 GB, SMC 
Graphics: Intel Iris Plus Graphics 645, Intel Iris Plus Graphics 645, Built-In
Display: Color LCD, 2560 x 1600 Retina, Main, MirrorOff, Online
Memory Module: BANK 0/ChannelA-DIMM0, 4 GB, LPDDR3, 2133 MHz, SK Hynix, H9CCNNNBJTALAR-NVD
Memory Module: BANK 2/ChannelB-DIMM0, 4 GB, LPDDR3, 2133 MHz, SK Hynix, H9CCNNNBJTALAR-NVD
AirPort: spairport_wireless_card_type_wifi (0x14E4, 0x870), wl0: Jul 16 2021 18:25:13 version 16.20.328.0.3.6.105 FWID 01-30be2b3a
Bluetooth: Version (null), 0 services, 0 devices, 0 incoming serial ports
Network Service: Wi-Fi, AirPort, en0
USB Device: USB31Bus
USB Device: T2Bus
USB Device: Touch Bar Backlight
USB Device: Touch Bar Display
USB Device: Apple Internal Keyboard / Trackpad
USB Device: Headset
USB Device: Ambient Light Sensor
USB Device: FaceTime HD Camera (Built-in)
USB Device: Apple T2 Controller
Thunderbolt Bus: MacBook Pro, Apple Inc., 63.5

@huytd
Copy link
Owner

huytd commented Mar 26, 2023

Có vẻ như lỗi này giống với một lỗi khác đã được reported. Lúc khởi động GõKey thì bạn có đang chọn input source nào khác (bộ gõ mặc định của mac) không? Và trước đso thì bạn đã cấp quyền accessibility cho GõKey chưa?

@dao-phuong
Copy link

Gặp lỗi tương tự và đã fix được, phải remove cái Input source gõ tiếng vịêt default của mac đi là ok
Screen Shot 2023-05-18 at 03 14 43

@huytd
Copy link
Owner

huytd commented Jun 27, 2023

Mình tạm close issue này. Bug sẽ tiếp trục được track ở #48

@huytd huytd closed this as completed Jun 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants