|
|
Home » U++ TheIDE » U++ TheIDE: Other Features Wishlist and/or Bugs » ColorPopup widget crashes TheIDE with "Invaild memory Access" on latest Daily builds of U+
ColorPopup widget crashes TheIDE with "Invaild memory Access" on latest Daily builds of U+ [message #32490] |
Fri, 20 May 2011 20:56  |
Oblivion
Messages: 1204 Registered: August 2007
|
Senior Contributor |
|
|
Hello guys,
There seems to be a crucial bug in Colorpopup.cpp which crashes any application, including TheIDE itself, using ColorPopup widget due to an "invalid memory access". Tested on both Ubuntu + Kubuntu 11.04
Crash can be reproduced while changing Syntax highlighting colors through Setup/Environment/Syntax Highlighting/Color buttons
Crash occures when SetFocus() method is invoked in CtrlLib/ColorPopup.cpp, line 317:
popup->SetRect(rt);
if(!popup->IsOpen())
popup->PopUp(owner, true, true, true);
SetFocus(); // **************** Crashes any application using Colorpopup
I didn't have the time to examine the source code further, but shouldn't it be popup->SetFocus() ?
Regards.
Github page: https://github.com/ismail-yilmaz
upp-components: https://github.com/ismail-yilmaz/upp-components
Bobcat the terminal emulator: https://github.com/ismail-yilmaz/Bobcat
[Updated on: Fri, 20 May 2011 21:02] Report message to a moderator
|
|
|
|
Re: ColorPopup widget crashes TheIDE with "Invaild memory Access" on latest Daily builds o [message #32912 is a reply to message #32515] |
Sun, 19 June 2011 14:24   |
|
SOLVED (maybe )
Very strange!!!
I kill one row and all become correct!!!
Let's try!!!:
svn: 3546
file: X11Wnd.cpp
comment line: 875 (function void Ctrl::SetWndFocus0(bool *b):
void Ctrl::SetWndFocus0(bool *b)
{
GuiLock __;
LLOG("SetWndFocus " << Name());
*b = false;
if(top && top->window != focusWindow && IsEnabled() && IsVisible()) {
LLOG("Setting focus... ");
LTIMING("XSetInfputFocus");
// KillFocus(focusWindow); // <<<----- Comment this line
XSetInputFocus(Xdisplay, top->window, RevertToParent, CurrentTime);
focusWindow = top->window;
SetFocusWnd();
*b = true;
}
}
SergeyNikitin<U++>( linux, wine )
{
under( Ubuntu || Debian || Raspbian );
}
[Updated on: Sun, 19 June 2011 15:08] Report message to a moderator
|
|
|
|
|
|
|
|
Goto Forum:
Current Time: Tue Apr 29 09:38:40 CEST 2025
Total time taken to generate the page: 0.01408 seconds
|
|
|