Home » U++ Library support » ArrayCtrl, HeaderCtrl & GridCtrl » Assertion in GridCtrl on Linux
Assertion in GridCtrl on Linux [message #20025] |
Wed, 11 February 2009 05:37  |
Novo
Messages: 1430 Registered: December 2006
|
Ultimate Contributor |
|
|
Assertion in GridCtrl on Linux x86_64 (Ubuntu 7.10, UPP revision 848).
It happens when I'm trying to move mouse over a GridCtrl. Actually, it happens when I'm trying to move mouse over cells, which have a tooltip (or cells, which are right to cells with a tooltip). Moving over regular cells doesn't cause problems.
This application is working pretty normal in Windows x86.
Theoretically, that shouldn't be a problem with my code.
Does somebody have any idea about this assertion?
sPanicMessageBox (title=0x86e8ed "Fatal error", text=0x7fff9be41050 "Assertion failed in /home/ssg/dvlp/cpp/upp/svn/uppsrc/CtrlCore/X11Wnd.cpp, line 362\n!IsChild() && !IsOpen()\n") at /home/ssg/dvlp/cpp/upp/svn/uppsrc/CtrlCore/X11App.cpp:185
Upp::PanicMessageBox (title=0x86e8ed "Fatal error", text=0x7fff9be41050 "Assertion failed in /home/ssg/dvlp/cpp/upp/svn/uppsrc/CtrlCore/X11Wnd.cpp, line 362\n!IsChild() && !IsOpen()\n") at /home/ssg/dvlp/cpp/upp/svn/uppsrc/Core/Util.cpp:30
Upp::AssertFailed (file=0x862c28 "/home/ssg/dvlp/cpp/upp/svn/uppsrc/CtrlCore/X11Wnd.cpp", line=362, cond=0x862c09 "!IsChild() && !IsOpen()") at /home/ssg/dvlp/cpp/upp/svn/uppsrc/Core/Util.cpp:99
Upp::Ctrl::Create (this=0x7fff9be4a338, owner=0x7fff9be44730, redirect=true, savebits=true) at /home/ssg/dvlp/cpp/upp/svn/uppsrc/CtrlCore/X11Wnd.cpp:362
Upp::Ctrl::PopUp (this=0x7fff9be4a338, owner=0x7fff9be492f8, savebits=true, activate=false) at /home/ssg/dvlp/cpp/upp/svn/uppsrc/CtrlCore/X11Wnd.cpp:487
Upp::GridPopUp::PopUp (this=0x7fff9be4a338, owner=0x7fff9be492f8, x=564, y=403, width=190, height=20) at /home/ssg/dvlp/cpp/upp/svn/uppsrc/GridCtrl/GridCtrl.cpp:7586
Upp::GridCtrl::MouseMove (this=0x7fff9be492f8, p=@0x7fff9be41f20, keyflags=0) at /home/ssg/dvlp/cpp/upp/svn/uppsrc/GridCtrl/GridCtrl.cpp:1922
Upp::GridPopUp::MouseMove (this=0x7fff9be4a338, p=@0x7fff9be41fa0, flags=0) at /home/ssg/dvlp/cpp/upp/svn/uppsrc/GridCtrl/GridCtrl.cpp:7567
Upp::Ctrl::MouseEvent (this=0x7fff9be4a338, event=32, p=@0x7fff9be421b0, zdelta=0, keyflags=0) at /home/ssg/dvlp/cpp/upp/svn/uppsrc/CtrlCore/CtrlMouse.cpp:110
Upp::Ctrl::MouseEventH (this=0x7fff9be4a338, event=32, p=@0x7fff9be42300, zdelta=0, keyflags=0) at /home/ssg/dvlp/cpp/upp/svn/uppsrc/CtrlCore/CtrlMouse.cpp:87
Upp::Ctrl::MEvent0 (this=0x7fff9be4a338, e=32, p=@0x7fff9be42460, zd=0) at /home/ssg/dvlp/cpp/upp/svn/uppsrc/CtrlCore/CtrlMouse.cpp:283
Upp::Ctrl::DispatchMouseEvent (this=0x7fff9be4a338, e=32, p=@0x7fff9be426d0, zd=0) at /home/ssg/dvlp/cpp/upp/svn/uppsrc/CtrlCore/CtrlMouse.cpp:524
Upp::Ctrl::DispatchMouse (this=0x7fff9be4a338, e=32, p=@0x7fff9be42830, zd=0) at /home/ssg/dvlp/cpp/upp/svn/uppsrc/CtrlCore/CtrlMouse.cpp:503
Upp::Ctrl::Create (this=0x7fff9be4a338, owner=0x7fff9be44730, redirect=true, savebits=true) at /home/ssg/dvlp/cpp/upp/svn/uppsrc/CtrlCore/X11Wnd.cpp:407
Upp::Ctrl::PopUp (this=0x7fff9be4a338, owner=0x7fff9be492f8, savebits=true, activate=false) at /home/ssg/dvlp/cpp/upp/svn/uppsrc/CtrlCore/X11Wnd.cpp:487
Upp::GridPopUp::PopUp (this=0x7fff9be4a338, owner=0x7fff9be492f8, x=564, y=403, width=190, height=20) at /home/ssg/dvlp/cpp/upp/svn/uppsrc/GridCtrl/GridCtrl.cpp:7586
Upp::GridCtrl::MouseMove (this=0x7fff9be492f8, p=@0x7fff9be42d80, keyflags=0) at /home/ssg/dvlp/cpp/upp/svn/uppsrc/GridCtrl/GridCtrl.cpp:1922
Upp::CtrlsHolder::MouseMove (this=0x7fff9be49480, p=@0x7fff9be42e10, flags=0) at /home/ssg/dvlp/cpp/upp/svn/uppsrc/GridCtrl/GridCtrl.h:203
Upp::Ctrl::MouseEvent (this=0x7fff9be49480, event=32, p=@0x7fff9be43020, zdelta=0, keyflags=0) at /home/ssg/dvlp/cpp/upp/svn/uppsrc/CtrlCore/CtrlMouse.cpp:110
Upp::Ctrl::MouseEventH (this=0x7fff9be49480, event=32, p=@0x7fff9be43170, zdelta=0, keyflags=0) at /home/ssg/dvlp/cpp/upp/svn/uppsrc/CtrlCore/CtrlMouse.cpp:87
Upp::Ctrl::MEvent0 (this=0x7fff9be49480, e=32, p=@0x7fff9be432d0, zd=0) at /home/ssg/dvlp/cpp/upp/svn/uppsrc/CtrlCore/CtrlMouse.cpp:283
Upp::Ctrl::DispatchMouseEvent (this=0x7fff9be49480, e=32, p=@0x7fff9be43420, zd=0) at /home/ssg/dvlp/cpp/upp/svn/uppsrc/CtrlCore/CtrlMouse.cpp:524
Upp::Ctrl::DispatchMouseEvent (this=0x7fff9be492f8, e=32, p=@0x7fff9be43580, zd=0) at /home/ssg/dvlp/cpp/upp/svn/uppsrc/CtrlCore/CtrlMouse.cpp:524
Upp::Ctrl::DispatchMouseEvent (this=0x2aaaaaab21c0, e=32, p=@0x7fff9be436e0, zd=0) at /home/ssg/dvlp/cpp/upp/svn/uppsrc/CtrlCore/CtrlMouse.cpp:524
Upp::Ctrl::DispatchMouseEvent (this=0x2aaab0aac098, e=32, p=@0x7fff9be43840, zd=0) at /home/ssg/dvlp/cpp/upp/svn/uppsrc/CtrlCore/CtrlMouse.cpp:524
Upp::Ctrl::DispatchMouseEvent (this=0x7fff9be450c8, e=32, p=@0x7fff9be439a0, zd=0) at /home/ssg/dvlp/cpp/upp/svn/uppsrc/CtrlCore/CtrlMouse.cpp:524
Upp::Ctrl::DispatchMouseEvent (this=0x7fff9be45530, e=32, p=@0x7fff9be43b00, zd=0) at /home/ssg/dvlp/cpp/upp/svn/uppsrc/CtrlCore/CtrlMouse.cpp:524
Upp::Ctrl::DispatchMouseEvent (this=0x7fff9be44730, e=32, p=@0x7fff9be43d80, zd=0) at /home/ssg/dvlp/cpp/upp/svn/uppsrc/CtrlCore/CtrlMouse.cpp:524
Upp::Ctrl::DispatchMouse (this=0x7fff9be44730, e=32, p=@0x7fff9be44200, zd=0) at /home/ssg/dvlp/cpp/upp/svn/uppsrc/CtrlCore/CtrlMouse.cpp:503
Upp::Ctrl::EventProc (this=0x7fff9be44730, w=@0x2aaab0b21420, event=0x7fff9be445a0) at /home/ssg/dvlp/cpp/upp/svn/uppsrc/CtrlCore/X11Proc.cpp:366
Upp::TopWindow::EventProc (this=0x7fff9be44730, w=@0x2aaab0b21420, event=0x7fff9be445a0) at /home/ssg/dvlp/cpp/upp/svn/uppsrc/CtrlCore/TopWinX11.cpp:53
Upp::Ctrl::ProcessEvent (event=0x7fff9be445a0) at /home/ssg/dvlp/cpp/upp/svn/uppsrc/CtrlCore/X11Wnd.cpp:227
Upp::Ctrl::EventLoop (ctrl=0x7fff9be44730) at /home/ssg/dvlp/cpp/upp/svn/uppsrc/CtrlCore/X11Wnd.cpp:337
Upp::TopWindow::Run (this=0x7fff9be44730, appmodal=false) at /home/ssg/dvlp/cpp/upp/svn/uppsrc/CtrlCore/TopWindow.cpp:301
GuiMainFn_ () at /home/ssg/dvlp/cpp/sergey/upp/PythagorasSquare/main.cpp:1106
main (argc=1, argv=0x7fff9be4d368, envptr=0x7fff9be4d378) at /home/ssg/dvlp/cpp/sergey/upp/PythagorasSquare/main.cpp:1104
Regards,
Novo
[Updated on: Wed, 11 February 2009 05:58] Report message to a moderator
|
|
|
Re: Assertion in GridCtrl on Linux [message #20026 is a reply to message #20025] |
Wed, 11 February 2009 08:13   |
|
Hi!
I didn't test tooltips in x11, but IMO they should work in linux, as u++ provides the same api in both systems ;)Unfortunately there are some differences in handling popup windows in win32 and x11 so I'll try to take a look at it and fix it.
|
|
|
|
Re: Assertion in GridCtrl on Linux [message #20106 is a reply to message #20037] |
Tue, 17 February 2009 22:25   |
|
sergeynikitin wrote on Wed, 11 February 2009 20:41 | I have same problem with popups in linux ( http://www.ultimatepp.org/forum/index.php?t=msg&goto=196 14&#msg_19614)
.
When I looked in UBUNTU debuger in my program then noticed that GridCtrl twice opens popup window, and once it closes. Maybe in this case. Himself, I understand it was not possible.
I change GridCtrl.cpp file to disable tooltips and any popups. I hope that in next versions this problem is go away.
|
I have added your patch to disable popups (sorry for taking it so long ). Just type grid.Popups(false) to disable popups.
I'm in the process of restoring my linux - so popups on x11 should be fixed soon.
|
|
|
|
|
|
|
|
|
Re: Assertion in GridCtrl on Linux [message #20148 is a reply to message #20130] |
Sat, 21 February 2009 23:15   |
Novo
Messages: 1430 Registered: December 2006
|
Ultimate Contributor |
|
|
unodgs wrote on Fri, 20 February 2009 04:20 | Ok fixed and in svn. Tomorrow I'll commit one more fix related to popups (closing popup when start resizing column and displaying heder popup in incorrect postition when scrollbar is moved down)
|
Thanks a lot! Popups are working pretty fine now.
Regards,
Novo
|
|
|
|
Goto Forum:
Current Time: Mon Apr 28 18:00:36 CEST 2025
Total time taken to generate the page: 0.00684 seconds
|