Debug Assertion Failed: only on URL redirect

Having problems with building or using CEF's C/C++ APIs? This forum is here to help. Please do not post bug reports or feature requests here.

Debug Assertion Failed: only on URL redirect

Postby rkcef » Mon Jun 27, 2022 9:08 am

Hi,

In Debug mode, I get the error message "Debug Assertion Failed" when the javascript/render engine tries to reload/redirect to another URL. This only happens in Debug mode and never in Release mode. See attached screenshot of error message.

I've altered the example project "cefclient" to the point that no address bar or any menu items, buttons or other controls are visible. The user sees only the "canvas" area (where the content gets rendered) and can only interact with the loaded website/webapplication.

Sometimes the predefined website/webapplication has to redirect to another URL. This other URL is still part of the same webapplication, so that's fine. For example: when the client app gets started, a login form will be shown. After logging in, the webapplication redirects to the actual content.

Complete error message:
Code: Select all
Title: Debug Assertion Failed
Program: C:\...\client.exe
File: C:\Programm Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30133\include\xtree
Line: 195
Expression: cannot increment value-initialized map/set iterator


Clicking on "Retry" (second button with the label "Wiederholen") doesn't help. The client freezes for a couple of seconds and then just shows a white canvas area. Sometimes the client crashes all together and all processes are terminated.

What could be the reason for this behavior? Why does it happen in Debug mode but not in Release mode?
Attachments
error_debug_assertion.jpg
Screenshot Debug Assertion Failed
error_debug_assertion.jpg (143.71 KiB) Viewed 966 times
rkcef
Techie
 
Posts: 27
Joined: Fri Feb 26, 2021 9:11 am

Re: Debug Assertion Failed: only on URL redirect

Postby magreenblatt » Mon Jun 27, 2022 3:16 pm

Looks like some code is using an STL iterator incorrectly. What is the symbolized call stack for the crash?
magreenblatt
Site Admin
 
Posts: 12382
Joined: Fri May 29, 2009 6:57 pm


Return to Support Forum

Who is online

Users browsing this forum: Google [Bot] and 25 guests