invisible hcaptcha image challenge triggers fatal exception EXCEPTION_ACCESS_VIOLATION
leanderhamzoui opened this issue · comments
Upon clicking submit button with invisible hcaptcha, when it pops up image challenge, if i then call solveCaptcha it will always cause the following error. The image-challenge popup also breaks and visually shows the chrome error like if a tab crashed within the frame the challenge popup was.
Received fatal exception E
![acccessviolation](https://user-images.githubusercontent.com/117991528/201343822-3f6f8319-8eab-4b32-9710-7c1b775a9d84.JPG)
XCEPTION_ACCESS_VIOLATION
[11/11/2022, 00:42:25] [puppeteer]: CHROMIUM: Received fatal exception EXCEPTION_ACCESS_VIOLATION
Backtrace:
[11/11/2022, 00:42:25] [puppeteer]: CHROMIUM: Backtrace:
GetHandleVerifier [0x00007FFF15679A13+28527139]
CrashForExceptionInNonABICompliantCodeRange [0x00007FFF126D04FF+6179695]
CrashForExceptionInNonABICompliantCodeRange [0x00007FFF121AA9D6+782406]
GetHandleVerifier [0x00007FFF156646DB+28440299]
GetHandleVerifier [0x00007FFF156644B6+28439750]
CrashForExceptionInNonABICompliantCodeRange [0x00007FFF124F4E63+4232403]
GetMainTargetServices [0x00007FFF12F7C5A1+2210497]
GetHandleVerifier [0x00007FFF13BC5C5F+527471]
GetMainTargetServices [0x00007FFF12F7D706+2214950]
GetMainTargetServices [0x00007FFF130348E6+2964998]
GetMainTargetServices [0x00007FFF12F7EC38+2220376]
GetMainTargetServices [0x00007FFF12E74367+1128583]
RelaunchChromeBrowserWithNewCommandLineIfNeeded [0x00007FFF13B38F95+[11/11/2022, 00:42:25] [puppeteer]: CHROMIUM: GetHandleVerifier [0x00007FFF15679
![acccessviolation](https://user-images.githubusercontent.com/117991528/201343886-4a90d541-56eb-442b-8eac-92f0267af1da.JPG)
A13+28527139]
CrashForExceptionInNonABICompliantCodeRange [0x00007FFF126D04FF+6179695]
CrashForExceptionInNonABICompliantCodeRange [0x00007FFF121AA9D6+782406]
GetHandleVerifier [0x00007FFF156646DB+28440299]
GetHandleVerifier [0x00007FFF156644B6+28439750]
CrashForExceptionInNonABICompliantCodeRange [0x00007FFF124F4E63+4232403]
GetMainTargetServices [0x00007FFF12F7C5A1+2210497]
GetHandleVerifier [0x00007FFF13BC5C5F+527471]
GetMainTargetServices [0x00007FFF12F7D706+2214950]
GetMainTargetServices [0x00007FFF130348E6+2964998]
GetMainTargetServices [0x00007FFF12F7EC38+2220376]
GetMainTargetServices [0x00007FFF12E74367+1128583]
RelaunchChromeBrowserWithNewCommandLineIfNeeded [0x00007FFF13B38F95+
887173]
RelaunchChromeBrowserWithNewCommandLineIfNeeded [0x00007FFF13B38A25+885781]
RelaunchChromeBrowserWithNewCommandLineIfNeeded [0x00007FFF13B2CC29+837145]
RelaunchChromeBrowserWithNewCommandLineIfNeeded [0x00007FFF13B399DB+889803]
GetMainTargetServices [0x00007FFF12E53F3D+996445]
GetMainTargetServices [0x00007FFF139C5A22+12996418]
CrashForExceptionInNonABICompliantCodeRange [0x00007FFF12D0B52B+12712859]
CrashForExceptionInNonABICompliantCodeRange [0x00007FFF12D0C1FC+12716140]
CrashForExceptionInNonABICompliantCodeRange [0x00007FFF12D0ADF2+12711010]
CrashForExceptionInNonABICompliantCodeRange [0x00007FFF12D0AF1F+12711311]
ChromeMain [0x00007FFF0FC6127C+476]
[11/11/2022, 00:42:25] [puppeteer]: CHROMIUM: 887173]
RelaunchChromeBrowserWithNewCommandLineIfNeeded [0x00007FFF13B38A25+885781]
RelaunchChromeBrowserWithNewCommandLineIfNeeded [0x00007FFF13B2CC29+837145]
RelaunchChromeBrowserWithNewCommandLineIfNeeded [0x00007FFF13B399DB+889803]
GetMainTargetServices [0x00007FFF12E53F3D+996445]
GetMainTargetServices [0x00007FFF139C5A22+12996418]
CrashForExceptionInNonABICompliantCodeRange [0x00007FFF12D0B52B+12712859]
CrashForExceptionInNonABICompliantCodeRange [0x00007FFF12D0C1FC+12716140]
CrashForExceptionInNonABICompliantCodeRange [0x00007FFF12D0ADF2+12711010]
CrashForExceptionInNonABICompliantCodeRange [0x00007FFF12D0AF1F+12711311]
ChromeMain [0x00007FFF0FC6127C+476]
GetPakFileHashes [0x00007FF718F927A4+6052]
GetPakFileHashes [0x00007FF718F91B3B+2875]
GetHandleVerifier [0x00007FF7190FC072+981570]
[11/11/2022, 00:42:25] [puppeteer]: CHROMIUM: GetPakFileHashes [0x00007FF718F927A4+6052]
GetPakFileHashes [0x00007FF718F91B3B+2875]
GetHandleVerifier [0x00007FF7190FC072+981570]
BaseThreadInitThunk [0x00007FFF48E97034+20]
[11/11/2022, 00:42:25] [puppeteer]: CHROMIUM: BaseThreadInitThunk [0x00007FFF48E97034+20]
RtlUserThreadStart [0x00007FFF49822651+33]
[11/11/2022, 00:42:25] [puppeteer]: CHROMIUM: RtlUserThreadStart [0x00007FF
```F49822651+33]
I think this might be due to the fact that calling SolveCaptcha looks for a non-existing outerFrame. because i experienced access violation errors previously when looking for stuff that isnt there (dont know why it doesnt throw the regular node or element not found blabla error)
const outer = await page.waitForSelector('iframe[data-hcaptcha-response]');
const outerFrame = await outer?.contentFrame();
//const inner = await page.waitForSelector('iframe:not([data-hcaptcha-response])');
const inner = await page.$("iframe[title='Main content of the hCaptcha challenge']",);
...
try{
...
while ((await outerFrame.$('#checkbox[aria-checked=false]')) !== null) {
...
whereas on hcaptcha invisible image challenge popup, there is no outerframe and especially no checkbox
@MohamadKh75 if you can take a look. Thanks
cannot reproduce, probably error with my script