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

SIGSEVs when trying to use Serenade on macOS Big Sur #24

Open
samueldemoura opened this issue Jan 13, 2023 · 0 comments
Open

SIGSEVs when trying to use Serenade on macOS Big Sur #24

samueldemoura opened this issue Jan 13, 2023 · 0 comments

Comments

@samueldemoura
Copy link

Hello! I just installed Serenade and was trying to make it through the Python tutorial, but it keeps consistently crashing after one or two commands. Another interesting thing is that after the crash, my input method is switched for some reason (as in: switches from English to Japanese if I have these configured, for example).

I'm on Big Sur, 11.6. Backtrace of the main thread looks like this:

0   com.apple.CoreFoundation      	0x00007fff20564f0f CFDataGetBytePtr + 6
1   serenade-driver.node          	0x000000011b428ae0 driver::GetVirtualKeyAndModifiers(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) + 3328
2   serenade-driver.node          	0x000000011b429318 driver::ToggleKey(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::vector<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > > const&, bool) + 40
3   serenade-driver.node          	0x000000011b4278e7 driver::PressKey(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::vector<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > > const&) + 23
4   serenade-driver.node          	0x000000011b421992 PressKey(Napi::CallbackInfo const&) + 898
5   serenade-driver.node          	0x000000011b422ecc Napi::details::CallbackData<Napi::Promise (*)(Napi::CallbackInfo const&), Napi::Promise>::Wrapper(napi_env__*, napi_callback_info__*) + 44
6   com.github.Electron.framework 	0x0000000113dc537b napi_is_detached_arraybuffer + 299
7   com.github.Electron.framework 	0x000000010ea88e5f v8::internal::Accessors::MakeAccessor(v8::internal::Isolate*, v8::internal::Handle<v8::internal::Name>, void (*)(v8::Local<v8::Name>, v8::PropertyCallbackInfo<v8::Value> const&), void (*)(v8::Local<v8::Name>, v8::Local<v8::Value>, v8::PropertyCallbackInfo<v8::Boolean> const&)) + 11503
8   ???                           	0x0000001907f0cf78 0 + 107507404664
9   ???                           	0x0000001907e8c7a2 0 + 107506878370
10  ???                           	0x0000001907e8c7a2 0 + 107506878370
11  ???                           	0x0000001907e8c7a2 0 + 107506878370
12  ???                           	0x0000001907e8c7a2 0 + 107506878370
13  ???                           	0x0000001907ec22c1 0 + 107507098305
14  ???                           	0x0000001907f5f8b8 0 + 107507742904
15  ???                           	0x0000001907eb3d9e 0 + 107507039646
16  ???                           	0x0000001907e8a707 0 + 107506870023
17  com.github.Electron.framework 	0x000000010eb3e38e v8::internal::Execution::Call(v8::internal::Isolate*, v8::internal::Handle<v8::internal::Object>, v8::internal::Handle<v8::internal::Object>, int, v8::internal::Handle<v8::internal::Object>*) + 6078
18  com.github.Electron.framework 	0x000000010eb3ee23 v8::internal::Execution::TryCallScript(v8::internal::Isolate*, v8::internal::Handle<v8::internal::JSFunction>, v8::internal::Handle<v8::internal::Object>, v8::internal::Handle<v8::internal::FixedArray>, v8::internal::Execution::MessageHandling, v8::internal::MaybeHandle<v8::internal::Object>*, bool) + 387
19  com.github.Electron.framework 	0x000000010eb3ef90 v8::internal::Execution::TryCall(v8::internal::Isolate*, v8::internal::Handle<v8::internal::Object>, v8::internal::Handle<v8::internal::Object>, int, v8::internal::Handle<v8::internal::Object>*, v8::internal::Execution::MessageHandling, v8::internal::MaybeHandle<v8::internal::Object>*, bool) + 224
20  com.github.Electron.framework 	0x000000010eb6a731 v8::internal::MicrotaskQueue::PerformCheckpointInternal(v8::Isolate*) + 417
21  com.github.Electron.framework 	0x0000000113d72618 node::CallbackScope::~CallbackScope() + 1256
22  com.github.Electron.framework 	0x0000000113d729d4 node::CallbackScope::~CallbackScope() + 2212
23  com.github.Electron.framework 	0x0000000113d888ef node::EmitAsyncDestroy(node::Environment*, node::async_context) + 72783
24  com.github.Electron.framework 	0x0000000113e1e0fa node::OnFatalError(char const*, char const*) + 31882
25  com.github.Electron.framework 	0x0000000113e1e7f7 node::OnFatalError(char const*, char const*) + 33671
26  com.github.Electron.framework 	0x000000010d961658 uv_random + 1432
27  com.github.Electron.framework 	0x000000010d9656ff uv_async_send + 927
28  com.github.Electron.framework 	0x000000010d977a96 uv_free_interface_addresses + 2486
29  com.github.Electron.framework 	0x000000010d965b20 uv_run + 320
30  com.github.Electron.framework 	0x000000010dac99fc node::FreeArrayBufferAllocator(node::ArrayBufferAllocator*) + 20988
31  com.github.Electron.framework 	0x0000000110778e5d node::AsyncResource::get_async_id() const + 8574797
32  com.github.Electron.framework 	0x0000000110796455 node::AsyncResource::get_async_id() const + 8695109
33  com.github.Electron.framework 	0x00000001107d351c node::AsyncResource::get_async_id() const + 8945164
34  com.github.Electron.framework 	0x000000010d7b094a 0x10d624000 + 1624394
35  com.github.Electron.framework 	0x00000001107d2c7f node::AsyncResource::get_async_id() const + 8942959
36  com.apple.CoreFoundation      	0x00007fff205c92bc __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17
37  com.apple.CoreFoundation      	0x00007fff205c9224 __CFRunLoopDoSource0 + 180
38  com.apple.CoreFoundation      	0x00007fff205c8fa4 __CFRunLoopDoSources0 + 242
39  com.apple.CoreFoundation      	0x00007fff205c79cc __CFRunLoopRun + 893
40  com.apple.CoreFoundation      	0x00007fff205c6f8c CFRunLoopRunSpecific + 563
41  com.apple.HIToolbox           	0x00007fff2880f1f3 RunCurrentEventLoopInMode + 292
42  com.apple.HIToolbox           	0x00007fff2880ef55 ReceiveNextEventCommon + 587
43  com.apple.HIToolbox           	0x00007fff2880ecf3 _BlockUntilNextEventMatchingListInModeWithFilter + 70
44  com.apple.AppKit              	0x00007fff22dd0172 0x7fff22d91000 + 258418
45  com.apple.AppKit              	0x00007fff22dce945 0x7fff22d91000 + 252229
46  com.apple.AppKit              	0x00007fff22dc0c69 0x7fff22d91000 + 195689
47  com.github.Electron.framework 	0x00000001107d3e26 node::AsyncResource::get_async_id() const + 8947478
48  com.github.Electron.framework 	0x00000001107d2721 node::AsyncResource::get_async_id() const + 8941585
49  com.github.Electron.framework 	0x0000000110796f6a node::AsyncResource::get_async_id() const + 8697946
50  com.github.Electron.framework 	0x0000000110761d8c node::AsyncResource::get_async_id() const + 8480380
51  com.github.Electron.framework 	0x000000010fa47422 v8::internal::SetupIsolateDelegate::SetupHeap(v8::internal::Heap*) + 3737602
52  com.github.Electron.framework 	0x000000010fa48cc2 v8::internal::SetupIsolateDelegate::SetupHeap(v8::internal::Heap*) + 3743906
53  com.github.Electron.framework 	0x000000010fa44ca4 v8::internal::SetupIsolateDelegate::SetupHeap(v8::internal::Heap*) + 3727492
54  com.github.Electron.framework 	0x000000010dc22801 v8::internal::compiler::BasicBlock::set_loop_header(v8::internal::compiler::BasicBlock*) + 15697
55  com.github.Electron.framework 	0x000000010dc2392b v8::internal::compiler::BasicBlock::set_loop_header(v8::internal::compiler::BasicBlock*) + 20091
56  com.github.Electron.framework 	0x000000010dc2341f v8::internal::compiler::BasicBlock::set_loop_header(v8::internal::compiler::BasicBlock*) + 18799
57  com.github.Electron.framework 	0x000000010dc22284 v8::internal::compiler::BasicBlock::set_loop_header(v8::internal::compiler::BasicBlock*) + 14292
58  com.github.Electron.framework 	0x000000010dc223a6 v8::internal::compiler::BasicBlock::set_loop_header(v8::internal::compiler::BasicBlock*) + 14582
59  com.github.Electron.framework 	0x000000010d978098 ElectronMain + 152
60  libdyld.dylib                 	0x00007fff204ecf3d start + 1

Which seems to point to this line:

reinterpret_cast<const UCKeyboardLayout*>(CFDataGetBytePtr(layoutData));

Let me know if I can provide any more information to help with debugging.

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

1 participant