<ul dir="auto">
<li>Electron version: 1.6.6</li>
<li>Operating system: Windows 7 and 8</li>
</ul>
<h3 dir="auto">Actual behavior</h3>
<p dir="auto">When selecting content of a text input using a touch device on Windows (double tap), electron crash.<br>
This will not happen using pointer device.</p>
<h3 dir="auto">How to reproduce</h3>
<p dir="auto">I've made a super simple test available in <a href="https://github.com/lowki/electron-input-crash">this repo</a></p>
<ul dir="auto">
<li>Electron version: 1.6.2 (also on latest 1.6.6)</li>
<li>Operating system: Windows</li>
</ul>
<h3 dir="auto">Expected behavior</h3>
<p dir="auto">No crash.</p>
<h3 dir="auto">Actual behavior</h3>
<p dir="auto">Crash</p>
<h3 dir="auto">How to reproduce</h3>
<p dir="auto">Launch electron (default app). Select text using touch gestures.</p>
<p dir="auto">stack trace</p>
<h1 dir="auto">ChildEBP RetAddr</h1>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="00 03b7d854 00b717d0 electron!base::ObserverListBase&lt;aura::client::TransientWindowClientObserver&gt;::begin+0x3
01 03b7d940 008c908f electron!wm::TransientWindowManager::AddTransientChild+0x5a
02 03b7d94c 0062961c electron!wm::AddTransientChild+0x16
03 03b7da48 00602a41 electron!views::NativeWidgetAura::InitNativeWidget+0x10a
04 03b7db74 00b70af5 electron!views::Widget::Init+0x2ba
05 03b7dc6c 00b70a0d electron!views::BubbleDialogDelegateView::CreateBubble+0x10c
06 03b7dc80 008c8b3d electron!views::BubbleDialogDelegateView::CreateBubble+0x24
07 03b7dcc0 008c8ff2 electron!views::TouchSelectionMenuRunnerViews::Menu::Menu+0x136
08 03b7dce0 009ab0d3 electron!views::TouchSelectionMenuRunnerViews::OpenMenu+0x3b
09 03b7dd70 00bea44d electron!content::TouchSelectionControllerClientAura::ShowQuickMenu+0x1ba
0a 03b7e4f8 005fa67c electron!content::RenderWidgetHostViewEventHandler::OnTouchEvent+0x175
0b 03b7e510 008887cd electron!ui::EventHandler::OnEvent+0x6d
0c 03b7e528 00888b0c electron!ui::EventDispatcher::DispatchEvent+0x3d
0d 03b7e544 008889d7 electron!ui::EventDispatcher::ProcessEvent+0x8e
0e 03b7e578 00888874 electron!ui::EventDispatcherDelegate::DispatchEventToTarget+0x2a
0f 03b7e650 00ab718d electron!ui::EventDispatcherDelegate::DispatchEvent+0x87
10 03b7e738 008910fd electron!ui::EventProcessor::OnEventFromSource+0x130
11 03b7e804 0089120f electron!ui::EventSource::DeliverEventToProcessor+0x50
12 03b7e8e8 00614e61 electron!ui::EventSource::SendEventToProcessor+0xd6
13 03b7ec40 008a8653 electron!views::DesktopWindowTreeHostWin::HandleTouchEvent+0x1c2
14 03b7ec6c 008a67a9 electron!views::HWNDMessageHandler::HandleTouchEvents+0x54
15 03b7ec80 008aad49 electron!base::internal::InvokeHelper&lt;1,void&gt;::MakeItSo&lt;void (__thiscall views::HWNDMessageHandler::*const &amp;)(std::vector&lt;ui::TouchEvent,std::allocator&lt;ui::TouchEvent&gt; &gt; const &amp;),base::WeakPtr&lt;views::HWNDMessageHandler&gt; const &amp;,std::vector&lt;ui::TouchEvent,std::allocator&lt;ui::TouchEvent&gt; &gt; const &amp;&gt;+0x29
16 03b7ec94 0045382e electron!base::internal::Invoker&lt;base::internal::BindState&lt;void (__thiscall views::HWNDMessageHandler::*)(std::vector&lt;ui::TouchEvent,std::allocator&lt;ui::TouchEvent&gt; &gt; const &amp;),base::WeakPtr&lt;views::HWNDMessageHandler&gt;,std::vector&lt;ui::TouchEvent,std::allocator&lt;ui::TouchEvent&gt; &gt; &gt;,void __cdecl(void)&gt;::Run+0x17
17 03b7ecfc 00409b2d electron!base::debug::TaskAnnotator::RunTask+0x11e
18 03b7f960 004089b6 electron!base::MessageLoop::RunTask+0x4cd
19 03b7fad0 0045499d electron!base::MessageLoop::DoWork+0x276
1a 03b7fb00 0045507a electron!base::MessagePumpForUI::DoRunLoop+0x5d
1b 03b7fb28 0040964e electron!base::MessagePumpWin::Run+0x4a
1c 03b7fbf0 00400275 electron!base::MessageLoop::RunHandler+0x5e
1d 03b7fc14 006eebf9 electron!base::RunLoop::Run+0x65
1e 03b7fc4c 006ef9e3 electron!content::BrowserMainLoop::MainMessageLoopRun+0x6e
1f 03b7fc6c 00904462 electron!content::BrowserMainLoop::RunMainMessageLoopParts+0x5b
20 03b7fc84 0063b6af electron!content::BrowserMain+0x82
21 03b7fc98 0063b5ff electron!content::RunNamedProcessTypeMain+0x7f
22 03b7fcec 00490b85 electron!content::ContentMainRunnerImpl::Run+0x91
23 03b7fcfc 002134a2 electron!content::ContentMain+0x23
24 03b7fd9c 0277850d electron!wWinMain+0x163
25 03b7fde8 75058744 electron!operator new[]+0x1c7
26 03b7fdfc 7771587d KERNEL32!BaseThreadInitThunk+0x24
27 03b7fe44 7771584d ntdll_776b0000!__RtlUserThreadStart+0x2f
28 03b7fe54 00000000 ntdll_776b0000!_RtlUserThreadStart+0x1b
"><pre class="notranslate"><code class="notranslate">00 03b7d854 00b717d0 electron!base::ObserverListBase&lt;aura::client::TransientWindowClientObserver&gt;::begin+0x3
01 03b7d940 008c908f electron!wm::TransientWindowManager::AddTransientChild+0x5a
02 03b7d94c 0062961c electron!wm::AddTransientChild+0x16
03 03b7da48 00602a41 electron!views::NativeWidgetAura::InitNativeWidget+0x10a
04 03b7db74 00b70af5 electron!views::Widget::Init+0x2ba
05 03b7dc6c 00b70a0d electron!views::BubbleDialogDelegateView::CreateBubble+0x10c
06 03b7dc80 008c8b3d electron!views::BubbleDialogDelegateView::CreateBubble+0x24
07 03b7dcc0 008c8ff2 electron!views::TouchSelectionMenuRunnerViews::Menu::Menu+0x136
08 03b7dce0 009ab0d3 electron!views::TouchSelectionMenuRunnerViews::OpenMenu+0x3b
09 03b7dd70 00bea44d electron!content::TouchSelectionControllerClientAura::ShowQuickMenu+0x1ba
0a 03b7e4f8 005fa67c electron!content::RenderWidgetHostViewEventHandler::OnTouchEvent+0x175
0b 03b7e510 008887cd electron!ui::EventHandler::OnEvent+0x6d
0c 03b7e528 00888b0c electron!ui::EventDispatcher::DispatchEvent+0x3d
0d 03b7e544 008889d7 electron!ui::EventDispatcher::ProcessEvent+0x8e
0e 03b7e578 00888874 electron!ui::EventDispatcherDelegate::DispatchEventToTarget+0x2a
0f 03b7e650 00ab718d electron!ui::EventDispatcherDelegate::DispatchEvent+0x87
10 03b7e738 008910fd electron!ui::EventProcessor::OnEventFromSource+0x130
11 03b7e804 0089120f electron!ui::EventSource::DeliverEventToProcessor+0x50
12 03b7e8e8 00614e61 electron!ui::EventSource::SendEventToProcessor+0xd6
13 03b7ec40 008a8653 electron!views::DesktopWindowTreeHostWin::HandleTouchEvent+0x1c2
14 03b7ec6c 008a67a9 electron!views::HWNDMessageHandler::HandleTouchEvents+0x54
15 03b7ec80 008aad49 electron!base::internal::InvokeHelper&lt;1,void&gt;::MakeItSo&lt;void (__thiscall views::HWNDMessageHandler::*const &amp;)(std::vector&lt;ui::TouchEvent,std::allocator&lt;ui::TouchEvent&gt; &gt; const &amp;),base::WeakPtr&lt;views::HWNDMessageHandler&gt; const &amp;,std::vector&lt;ui::TouchEvent,std::allocator&lt;ui::TouchEvent&gt; &gt; const &amp;&gt;+0x29
16 03b7ec94 0045382e electron!base::internal::Invoker&lt;base::internal::BindState&lt;void (__thiscall views::HWNDMessageHandler::*)(std::vector&lt;ui::TouchEvent,std::allocator&lt;ui::TouchEvent&gt; &gt; const &amp;),base::WeakPtr&lt;views::HWNDMessageHandler&gt;,std::vector&lt;ui::TouchEvent,std::allocator&lt;ui::TouchEvent&gt; &gt; &gt;,void __cdecl(void)&gt;::Run+0x17
17 03b7ecfc 00409b2d electron!base::debug::TaskAnnotator::RunTask+0x11e
18 03b7f960 004089b6 electron!base::MessageLoop::RunTask+0x4cd
19 03b7fad0 0045499d electron!base::MessageLoop::DoWork+0x276
1a 03b7fb00 0045507a electron!base::MessagePumpForUI::DoRunLoop+0x5d
1b 03b7fb28 0040964e electron!base::MessagePumpWin::Run+0x4a
1c 03b7fbf0 00400275 electron!base::MessageLoop::RunHandler+0x5e
1d 03b7fc14 006eebf9 electron!base::RunLoop::Run+0x65
1e 03b7fc4c 006ef9e3 electron!content::BrowserMainLoop::MainMessageLoopRun+0x6e
1f 03b7fc6c 00904462 electron!content::BrowserMainLoop::RunMainMessageLoopParts+0x5b
20 03b7fc84 0063b6af electron!content::BrowserMain+0x82
21 03b7fc98 0063b5ff electron!content::RunNamedProcessTypeMain+0x7f
22 03b7fcec 00490b85 electron!content::ContentMainRunnerImpl::Run+0x91
23 03b7fcfc 002134a2 electron!content::ContentMain+0x23
24 03b7fd9c 0277850d electron!wWinMain+0x163
25 03b7fde8 75058744 electron!operator new[]+0x1c7
26 03b7fdfc 7771587d KERNEL32!BaseThreadInitThunk+0x24
27 03b7fe44 7771584d ntdll_776b0000!__RtlUserThreadStart+0x2f
28 03b7fe54 00000000 ntdll_776b0000!_RtlUserThreadStart+0x1b

</code></pre></div>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/11049886/25059870/cd957c28-2143-11e7-8f59-db10310bc653.png"><img src="https://cloud.githubusercontent.com/assets/11049886/25059870/cd957c28-2143-11e7-8f59-db10310bc653.png" alt="image" style="max-width: 100%;"></a></p>