overtake / TelegramSwift

Source code of Telegram for macos on Swift 5.0
https://macos.telegram.org
GNU General Public License v2.0
5.03k stars 852 forks source link

Error when click on send `Location` #655

Open VitaliyShulik opened 3 years ago

VitaliyShulik commented 3 years ago

Steps to reproduce

  1. Open any chat
  2. Hover on attach
  3. Click on "Location"

Expected behaviour

Tell us what should happen:

Send my location

Actual behaviour

Tell us what happens instead:

Error is occurred

Configuration

Operating system: macOS Big Sur 11.3.1 (with M1)

Version of Telegram Desktop: 7.9

Installation source (Linux Only) - the official website / GitHub releases / flatpak / snap / distribution package: App Store

Used theme: System > Colorful

Logs: Process: Telegram [934] Path: /Applications/Telegram.app/Contents/MacOS/Telegram Identifier: ru.keepcoder.Telegram Version: 7.9 (220098) App Item ID: 747648890 App External ID: 843443355 Code Type: ARM-64 (Native) Parent Process: ??? [1] Responsible: Telegram [934] User ID: 501 Date/Time: 2021-08-20 10:21:36.830 +0600 OS Version: macOS 11.3.1 (20E241) Report Version: 12 Anonymous UUID: 16BD47FC-32DA-5B70-9D68-1066FCE837B9 Time Awake Since Boot: 3000 seconds System Integrity Protection: enabled Crashed Thread: 24 Dispatch queue: com.apple.CoreLocation.0x12dff70f0 Exception Type: EXC_CRASH (SIGABRT) Exception Codes: 0x0000000000000000, 0x0000000000000000 Exception Note: EXC_CORPSE_NOTIFY
rschiang commented 3 years ago

Can confirm the issue still persist on Telegram 8.1.3 (222037) AppStore running on macOS 11.6.

Crash Log attached as follow:

Crashed Thread:        27  Dispatch queue: com.apple.CoreLocation.0x7fe51f2fefb0

Exception Type:        EXC_CRASH (SIGABRT)
Exception Codes:       0x0000000000000000, 0x0000000000000000
Exception Note:        EXC_CORPSE_NOTIFY

Application Specific Information:
abort() called
Thread 32 Crashed:: Dispatch queue: com.apple.CoreLocation.0x7fdef5a1de40
0   libsystem_kernel.dylib          0x00007fff2033f92e __pthread_kill + 10
1   libsystem_pthread.dylib         0x00007fff2036e5bd pthread_kill + 263
2   libsystem_c.dylib               0x00007fff202c3406 abort + 125
3   com.apple.corelocation          0x00007fff28250c29 0x7fff28248000 + 35881
4   com.apple.locationsupport       0x00007fff2cb6a246 0x7fff2cb59000 + 70214
5   com.apple.locationsupport       0x00007fff2cb6a1a5 0x7fff2cb59000 + 70053
6   com.apple.locationsupport       0x00007fff2cb5cd44 CLConnection::handleMessage(std::__1::shared_ptr) + 360
7   com.apple.locationsupport       0x00007fff2cb659fd 0x7fff2cb59000 + 51709
8   com.apple.locationsupport       0x00007fff2cb670c5 0x7fff2cb59000 + 57541
9   libxpc.dylib                    0x00007fff200b4c24 _xpc_connection_call_event_handler + 56
10  libxpc.dylib                    0x00007fff200b3a9b _xpc_connection_mach_event + 938
11  libdispatch.dylib               0x00007fff201c48a6 _dispatch_client_callout4 + 9
12  libdispatch.dylib               0x00007fff201dbaa0 _dispatch_mach_msg_invoke + 444
13  libdispatch.dylib               0x00007fff201ca493 _dispatch_lane_serial_drain + 263
14  libdispatch.dylib               0x00007fff201dc5e2 _dispatch_mach_invoke + 484
15  libdispatch.dylib               0x00007fff201ca493 _dispatch_lane_serial_drain + 263
16  libdispatch.dylib               0x00007fff201cb0ad _dispatch_lane_invoke + 366
17  libdispatch.dylib               0x00007fff201d4c0d _dispatch_workloop_worker_thread + 811
18  libsystem_pthread.dylib         0x00007fff2036b45d _pthread_wqthread + 314
19  libsystem_pthread.dylib         0x00007fff2036a42f start_wqthread + 15
rschiang commented 3 years ago

Possibly related: #576 (“works for me”), #682 (crash if denied location access)

rschiang commented 3 years ago

So I took a peek at the error log and submitted a quick PR. Let’s hope this get merged. :P