User forums > Help
V 20.03 startup fails w/debugging assertion failure if not running as admin
caonen8425:
Obfuscated,
Sorry for the delay in responding. Hitting 'continue' results in a repetition of the same assertion failure. I see that a patch has been offered. I have never before applied a patch...I will check this out.
stahta01:
--- Quote from: caonen8425 on April 16, 2020, 05:44:27 pm ---Obfuscated,
Sorry for the delay in responding. Hitting 'continue' results in a repetition of the same assertion failure. I see that a patch has been offered. I have never before applied a patch...I will check this out.
--- End quote ---
My patch had to do with fonts; I have no idea if it will help the debugging issue.
Edit: oBFusCATed suggested it would.
Edit2: You also need or should apply the other wxWidgets changes done by Killerbot.
And, use the same build/make options. This should result in wxWidgets DLL that could be replacing the current one. Note: The same GCC Compiler is needed to avoid have to rebuild Code::Blocks.
Tim S.
caonen8425:
This is my first experience with C::B patches, and I see it is in source form.
I am not currently set up to build C::B components from source. Before I go down that road to apply a patch, I'd like more certainty this patch will fix my specific problem. If there is more documentation I can provide to verify this, please advise. Secondly, where do I find a list (and access) to any pre/co-req patches that must be applied with this patch. And, finally, since I've never applied a patch, is there some 'how to' documentation for applying patches (haven't found any yet)?.
And then, none of this discussion explains (to me) why this debugging assertion failure vanishes when I run C::B as Administrator.
oBFusCATed:
Because the administrator has a different config file probably.
Can you find the default.conf in AppData/Codeblocks and open it in text editor and search for something like
--- Code: --- <FONT>
<str>
<![CDATA[Fira Code Light 9]]>
</str>
</FONT>
--- End code ---
What is the value you're using?
sodev:
I am pretty sure this is the fontsize bug of wxWidgets, the easiest way to fix it is to simply edit the configuration file and choose another font size that doesn't cause the rounding error. However depending on the chosen value, editing codeblocks settings through its dialogs might change the value again to something that causes the error.
The bug is not in CodeBlocks but wxWidgets, you need to update that library. Instead of applying that patch i would simply build a recent snapshot of master instead.
About fixing the issue by launching CodeBlocks as admin, most probably your regular user account doesn't have admin rights so launching as admin does not simply upgrade your rights through UAC but switches to another account and on that one you have your own configuration file that uses other settings that don't trigger that bug.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version