Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ TheIDE » U++ TheIDE: Other Features Wishlist and/or Bugs » Compilation warnings and random crashes
Re: Compilation warnings and random crashes [message #61021 is a reply to message #61020] Sat, 19 October 2024 17:32 Go to previous messageGo to previous message
mirek is currently offline  mirek
Messages: 14266
Registered: November 2005
Ultimate Member
[quote title=Oblivion wrote on Sat, 19 October 2024 17:09]Quote:
And the last obligatory question: It really is crashing only on opening new main package, right?
However, I'm suspecting this is a compiler error now. (maybe O3 optimization level related?). I'll try other options (O2 and GCC), report back asap.


Well, clang got picky over unaligned access undefined behaviour, simply ignoring code like dword x[2]; dword y = *(dword )((const char *)x + 1); which caused some problems, but I think compiler error there would appear with some regularity. Irregular pattern like this is usually a race condition or uninitialised data...

Anyway, other things to try

	for(int i = 0; i < packages.GetCount(); i++) {
		const PkInfo& pkg = packages[i];
		DDUMP(IdeImg::GetCount());


Adding this log should might help to resolve whether IdeImg iml indeed gets damaged

And possibly

//		alist.SetDisplay(alist.GetCount() - 1, 0, pkg.main ? bpd : pd);


Comment display out, just to test if it is somehow related (the only other thing that does something with icons in the loop).

[Updated on: Sat, 19 October 2024 17:33]

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: fix Core\Diag.h
Next Topic: Help & Topics (in window) dark mode toolbar icon
Goto Forum:
  


Current Time: Fri Jul 18 13:56:04 CEST 2025

Total time taken to generate the page: 0.03720 seconds