Page 1 of 1

Debug Assertion Failed: only on URL redirect

PostPosted: Mon Jun 27, 2022 9:08 am
by rkcef
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?

Re: Debug Assertion Failed: only on URL redirect

PostPosted: Mon Jun 27, 2022 3:16 pm
by magreenblatt
Looks like some code is using an STL iterator incorrectly. What is the symbolized call stack for the crash?