Chrome Crash how to investigate
Chrome is randomly crashing during playing when clicking on a certain type of field in our application. Chrome just completely goes away and when it is reopened it will have a statement about not closing properly and asking if you want to restore the page.There is no type of error when the crash occurs, Chrome just goes poof.
The field I clicked on is techincally a "textnode" but it is sort of a lift of custom combobox items in our application. In my test, I click one field that expose this list of textnodes and then click on the desired item.
The crash does not occur all the time and not on the same field but it is always the same field type. I am testing on Chrome 79 using TestComplet 14.3
So is this most likely an issue with our application, TestComplete or Chrome? I am not sure where to even begin troublshooting this and I hate to send something to our developers without more details.
Solved! Go to Solution.
I have not duplicated it manually, only when running through TestComplete.
I have a function that performs all the needed steps for my "custom combobox" in my applications. We have dozens of custom combobox fields and they all funnel through this same code. It is the same line of code in that function that always fails, but it is various different fields. It doesn't fail every time, just randomly.
This is the code for part of the function. It is the ListItems(i).Click line that causes Chrome to crash.
ListItems = objField.EvaluateXPath("//LI[contains(@class, 'MuiMenuItem-root')]", false) Found = False For i = 0 to UBound(ListItems) If LCase(ListItems(i).textContent) = LCase(Value) Then Found = True Exit For End If Next If Found Then ListItems(i).Click Else fLogFail "fDigiInput error. Item not found. Item: " & Value Exit Function End If
I would recommend to consider Report Generator (https://support.smartbear.com/testcomplete/docs/testing-with/advanced/tracing-critical-errors/report...) as a monitoring and crash dump creation tool.
Also consider creating Support ticket via the https://support.smartbear.com/message/?prod=TestComplete form and ask guys for their recommendations as for setup for Report Generator.
/Alex [Community Champion]
[Community Champions] are not employed by SmartBear Software but
are just volunteers who have some experience with the tools by SmartBear Software
and a desire to help others. Posts made by [Community Champions]
may differ from the official policies of SmartBear Software and should be treated
as the own private opinion of their authors and under no circumstances as an
official answer from SmartBear Software.
The [Community Champion] signature is assigned on quarterly basis and is used with permission by SmartBear Software.
Thanks Alex, Marsha!
@mfoster711 I see you have contacted support regarding this. Keep the investigation going and please share the results with us
Community and Education Specialist