Closed Bug 1679359 Opened 6 years ago Closed 5 years ago

[TSF] Restoring previous session at start up may hit assertion in debug build if logging is enabled

Categories

(Core :: DOM: UI Events & Focus Handling, defect, P3)

x86_64
Windows 10
defect

Tracking

()

RESOLVED FIXED
85 Branch
Tracking Status
firefox84 --- wontfix
firefox85 --- fixed

People

(Reporter: masayuki, Assigned: masayuki)

References

(Depends on 1 open bug)

Details

(Keywords: inputmethod)

Assertion failure: !mDirty, at m:/src/widget/windows/TSFTextStore.h:611
#01: tsfGetKeyboardState[C:\WINDOWS\SYSTEM32\textinputframework.dll +0x9cc61]
#02: tsfGetKeyboardState[C:\WINDOWS\SYSTEM32\textinputframework.dll +0xaba9f]
#03: tsfGetKeyboardState[C:\WINDOWS\SYSTEM32\textinputframework.dll +0xa6b2a]
#04: tsfGetKeyboardState[C:\WINDOWS\SYSTEM32\textinputframework.dll +0xa65f0]
#05: tsfGetKeyboardState[C:\WINDOWS\SYSTEM32\textinputframework.dll +0xa9cfa]
#06: tsfGetKeyboardState[C:\WINDOWS\SYSTEM32\textinputframework.dll +0xa6e41]
#07: TextInputHostCreate[C:\WINDOWS\SYSTEM32\textinputframework.dll +0x3d84a]
#08: NavigateFocusInfoCreate[C:\WINDOWS\SYSTEM32\textinputframework.dll +0x1f47c]
#09: TextInputHostSiteCreate[C:\WINDOWS\SYSTEM32\textinputframework.dll +0x16472]
#10: TextInputHostSiteCreate[C:\WINDOWS\SYSTEM32\textinputframework.dll +0x16e18]
#11: TextInputHostSiteCreate[C:\WINDOWS\SYSTEM32\textinputframework.dll +0x7326]
#12: TextInputHostCreate[C:\WINDOWS\SYSTEM32\textinputframework.dll +0x3a260]
#13: TextInputHostCreateEx[C:\WINDOWS\SYSTEM32\textinputframework.dll +0x2d67b]
#14: TextInputHostCreateEx[C:\WINDOWS\SYSTEM32\textinputframework.dll +0x2d22c]
#15: TsfOneCreate[C:\WINDOWS\SYSTEM32\textinputframework.dll +0x2fb59]
#16: mozilla::widget::TSFTextStore::RequestLock (m:\src\widget\windows\TSFTextStore.cpp:2181)
#17: TextInputHostSiteCreate[C:\WINDOWS\SYSTEM32\textinputframework.dll +0x15f7a]
#18: mozilla::widget::TSFTextStore::NotifyTSFOfLayoutChange (m:\src\widget\windows\TSFTextStore.cpp:6180)
#19: mozilla::widget::TSFTextStore::OnLayoutChangeInternal (m:\src\widget\windows\TSFTextStore.cpp:6128)
#20: mozilla::widget::TSFTextStore::OnLayoutChange (m:\src\widget\windows\TSFTextStore.h:165)
#21: mozilla::widget::TextEventDispatcher::NotifyIME (m:\src\widget\TextEventDispatcher.cpp:443)
#22: nsBaseWidget::NotifyIME (m:\src\widget\nsBaseWidget.cpp:1721)
#23: mozilla::IMEStateManager::NotifyIME (m:\src\dom\events\IMEStateManager.cpp:1728)
#24: mozilla::dom::BrowserParent::RecvNotifyIMEPositionChange (m:\src\dom\ipc\BrowserParent.cpp:2227)
#25: mozilla::dom::PBrowserParent::OnMessageReceived (m:\fx64-dbg\ipc\ipdl\PBrowserParent.cpp:3328)
#26: mozilla::dom::PContentParent::OnMessageReceived (m:\fx64-dbg\ipc\ipdl\PContentParent.cpp:6736)
#27: mozilla::ipc::MessageChannel::DispatchAsyncMessage (m:\src\ipc\glue\MessageChannel.cpp:2154)
#28: mozilla::ipc::MessageChannel::DispatchMessage (m:\src\ipc\glue\MessageChannel.cpp:2077)
#29: mozilla::ipc::MessageChannel::RunMessage (m:\src\ipc\glue\MessageChannel.cpp:1926)
#30: mozilla::ipc::MessageChannel::MessageTask::Run (m:\src\ipc\glue\MessageChannel.cpp:1958)
#31: mozilla::RunnableTask::Run (m:\src\xpcom\threads\TaskController.cpp:451)
#32: mozilla::TaskController::DoExecuteNextTaskOnlyMainThreadInternal (m:\src\xpcom\threads\TaskController.cpp:720)
#33: mozilla::TaskController::ExecuteNextTaskOnlyMainThreadInternal (m:\src\xpcom\threads\TaskController.cpp:579)
#34: mozilla::TaskController::ProcessPendingMTTask (m:\src\xpcom\threads\TaskController.cpp:373)
#35: mozilla::detail::RunnableFunction<`lambda at m:/src/xpcom/threads/TaskController.cpp:120:7'>::Run (m:\src\xpcom\threads\nsThreadUtils.h:486)
#36: nsThread::ProcessNextEvent (m:\src\xpcom\threads\nsThread.cpp:1199)
#37: NS_ProcessNextEvent (m:\src\xpcom\threads\nsThreadUtils.cpp:513)
#38: mozilla::ipc::MessagePump::Run (m:\src\ipc\glue\MessagePump.cpp:87)
#39: MessageLoop::RunHandler (m:\src\ipc\chromium\src\base\message_loop.cc:328)
#40: MessageLoop::Run (m:\src\ipc\chromium\src\base\message_loop.cc:310)
#41: nsBaseAppShell::Run (m:\src\widget\nsBaseAppShell.cpp:139)
#42: nsAppShell::Run (m:\src\widget\windows\nsAppShell.cpp:602)
#43: nsAppStartup::Run (m:\src\toolkit\components\startup\nsAppStartup.cpp:272)
#44: XREMain::XRE_mainRun (m:\src\toolkit\xre\nsAppRunner.cpp:5105)
#45: XREMain::XRE_main (m:\src\toolkit\xre\nsAppRunner.cpp:5297)
#46: XRE_main (m:\src\toolkit\xre\nsAppRunner.cpp:5353)
#47: NS_internal_main (m:\src\browser\app\nsBrowserApp.cpp:337)
#48: wmain (m:\src\toolkit\xre\nsWindowsWMain.cpp:131)
#49: __scrt_common_main_seh (D:\agent\_work\9\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl:288)
#50: BaseThreadInitThunk[C:\WINDOWS\System32\KERNEL32.DLL +0x17034]
#51: RtlUserThreadStart[C:\WINDOWS\SYSTEM32\ntdll.dll +0x4cec1]

With some TIPs, you may fail to start your debug build if restoring the last session and and an editor has focus with some TIPs.

Ah, this is only when you run it with MOZ_LOG=nsTextStoreWidgets:5. And Bug 1678553 will fix this because the assertion will be deleted.

Depends on: 1678553
Priority: P2 → P3
Summary: [TSF] Restoring previous session at start up may hit assertion in debug build → [TSF] Restoring previous session at start up may hit assertion in debug build if logging is enabled
Status: ASSIGNED → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → 85 Branch
You need to log in before you can comment on or make changes to this bug.