Skip to content

ws.client crash on Mac and win32  #26

@matcham

Description

@matcham

instant crash on Mac and windows 32bits (Max 7) when instantiating ws.client @PORT 6437
(trying to receive a json from leapmotion websocket)

works fine on windows 64 / Max8

Process: Max [28298]
Path: /Applications/Max.app/Contents/MacOS/Max
Identifier: com.cycling74.Max
Version: 8.0.7 [b9fac37] (8.0.7)
Code Type: X86-64 (Native)
Parent Process: ??? [1]
Responsible: Max [28298]
User ID: 501

Date/Time: 2019-07-02 11:21:25.666 +0200
OS Version: Mac OS X 10.14.5 (18F132)
Report Version: 12
Bridge OS Version: 3.0 (14Y901)
Anonymous UUID: 8A53FE83-7B27-FC54-6F73-68BEFF454900

Sleep/Wake UUID: A53343C4-3F49-4970-9A3D-92610751D282

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

System Integrity Protection: enabled

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

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

Termination Signal: Segmentation fault: 11
Termination Reason: Namespace SIGNAL, Code 0xb
Terminating Process: exc handler [28298]

VM Regions Near 0:
-->
__TEXT 0000000106d8d000-00000001079e8000 [ 12.4M] r-x/rwx SM=COW /Applications/Max.app/Contents/MacOS/Max

Thread 0 Crashed:: CrBrowserMain Dispatch queue: com.apple.main-thread
0 com.cycling74.ws-client 0x000000011d16c33d asio::io_context::strand::strand(asio::io_context&) + 15
1 com.cycling74.ws-client 0x000000011d16c2b1 std::__1::shared_ptrasio::io_context::strand std::__1::shared_ptrasio::io_context::strand::make_shared<std::__1::reference_wrapperasio::io_context >(std::__1::reference_wrapperasio::io_context&&) + 69
2 com.cycling74.ws-client 0x000000011d16be6d websocketpp::transport::asio::connectionwebsocketpp::config::asio_client::transport_config::init_asio(asio::io_context*) + 45
3 com.cycling74.ws-client 0x000000011d154743 websocketpp::transport::asio::endpointwebsocketpp::config::asio_client::transport_config::init(std::__1::shared_ptr<websocketpp::transport::asio::connectionwebsocketpp::config::asio_client::transport_config >) + 175
4 com.cycling74.ws-client 0x000000011d154344 websocketpp::endpoint<websocketpp::connectionwebsocketpp::config::asio_client, websocketpp::config::asio_client>::create_connection() + 1264
5 com.cycling74.ws-client 0x000000011d1534af websocketpp::clientwebsocketpp::config::asio_client::get_connection(std::__1::shared_ptrwebsocketpp::uri, std::__1::error_code&) + 91
6 com.cycling74.ws-client 0x000000011d1530e4 websocketpp::clientwebsocketpp::config::asio_client::get_connection(std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator > const&, std::__1::error_code&) + 88
7 com.cycling74.ws-client 0x000000011d14c292 ws_client::open() + 532
8 com.cycling74.ws-client 0x000000011d14d474 ws_port_set(ws_client*, object*, long, atom*) + 29
9 com.cycling74.Max 0x0000000106ebd711 object_method_imp + 603
10 com.cycling74.Max 0x0000000106ea8589 attr_args_process + 340
11 com.cycling74.ws-client 0x000000011d14bc35 ws_new(symbol*, long, atom*) + 59
12 com.cycling74.Max 0x0000000106dcdf94 typedmess_fun + 374
13 com.cycling74.Max 0x0000000106ebf89f object_new_typed_flags + 135
14 com.cycling74.Max 0x0000000106db1203 newload_internal + 108
15 com.cycling74.Max 0x0000000106db1182 newload + 14
16 com.cycling74.Max 0x0000000106dcdf94 typedmess_fun + 374
17 com.cycling74.Max 0x0000000106dcea5b aeval + 1038
18 com.cycling74.Max 0x0000000106d9ef03 atombuf_eval + 135
19 com.cycling74.Max 0x0000000106f92834 jnewobj_new + 1813
20 com.cycling74.Max 0x0000000106dcdf94 typedmess_fun + 374
21 com.cycling74.Max 0x0000000106ebf950 object_new_typed_flags + 312
22 com.cycling74.Max 0x0000000106fa8f04 jpatcher_newobject + 625
23 com.cycling74.Max 0x0000000106fb52df jpatcher_pastefromdictionary + 1135
24 com.cycling74.Max 0x0000000106fa9bc0 jpatcher_replace + 1501
25 com.cycling74.Max 0x0000000106ec0736 object_method_typedfun + 119
26 com.cycling74.Max 0x0000000106f4bf37 jbox_swapme + 127
27 com.cycling74.Max 0x0000000106f93be0 jnewobj_enter + 1996
28 com.cycling74.Max 0x0000000106ebd617 object_method_imp + 353
29 com.cycling74.Max 0x0000000106fc5220 jpatchercontroller_entertext_imp + 554
30 com.cycling74.Max 0x0000000106fcc45f jpatchercontroller_entertext + 191
31 com.cycling74.Max 0x0000000106efdd00 TextfieldComponent::endEdit() + 562
32 com.cycling74.Max 0x0000000106f1cef2 BoxComponent::endEdit() + 112
33 com.cycling74.Max 0x00000001075ac129 juce::TextEditor::handleCommandMessage(int) + 601
34 com.cycling74.Max 0x0000000107591a6e juce::MessageManager::AsyncCallInvokerjuce::Component::postCommandMessage(int)::$_7::messageCallback() + 62
35 com.cycling74.Max 0x00000001074d8be7 juce::MessageQueue::runLoopSourceCallback(void*) + 135
36 com.apple.CoreFoundation 0x00007fff4dc50083 CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION + 17
37 com.apple.CoreFoundation 0x00007fff4dc50029 __CFRunLoopDoSource0 + 108
38 com.apple.CoreFoundation 0x00007fff4dc339eb __CFRunLoopDoSources0 + 195
39 com.apple.CoreFoundation 0x00007fff4dc32fb5 __CFRunLoopRun + 1189
40 com.apple.CoreFoundation 0x00007fff4dc328be CFRunLoopRunSpecific + 455
41 com.apple.HIToolbox 0x00007fff4cf1e96b RunCurrentEventLoopInMode + 292
42 com.apple.HIToolbox 0x00007fff4cf1e5ad ReceiveNextEventCommon + 355
43 com.apple.HIToolbox 0x00007fff4cf1e436 _BlockUntilNextEventMatchingListInModeWithFilter + 64
44 com.apple.AppKit 0x00007fff4b2b8987 _DPSNextEvent + 965
45 com.apple.AppKit 0x00007fff4b2b771f -[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 1361
46 com.apple.AppKit 0x00007fff4b2b183c -[NSApplication run] + 699
47 com.cycling74.Max 0x000000010712ca7d -[MaxCefApplication run] + 77
48 com.cycling74.chromium 0x000000010d11c0dc 0x10b25e000 + 32235740
49 com.cycling74.chromium 0x000000010d11adbe 0x10b25e000 + 32230846
50 com.cycling74.chromium 0x000000010d139dc5 0x10b25e000 + 32357829
51 com.cycling74.chromium 0x000000010ce3d4af 0x10b25e000 + 29226159
52 com.cycling74.Max 0x0000000107135a52 MaxCefEventLoopHandler::runMessageLoop() + 18
53 com.cycling74.Max 0x00000001074da85b juce::JUCEApplicationBase::main(int, char const**) + 251
54 libdyld.dylib 0x00007fff79b613d5 start + 1

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions