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++ Library support » ArrayCtrl, HeaderCtrl & GridCtrl » Assertion in GridCtrl on Linux
Assertion in GridCtrl on Linux [message #20025] Wed, 11 February 2009 05:37 Go to next message
Novo is currently offline  Novo
Messages: 1358
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 Go to previous messageGo to next message
unodgs is currently offline  unodgs
Messages: 1366
Registered: November 2005
Location: Poland
Ultimate Contributor

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 #20037 is a reply to message #20026] Thu, 12 February 2009 02:41 Go to previous messageGo to next message
sergeynikitin is currently offline  sergeynikitin
Messages: 748
Registered: January 2008
Location: Moscow, Russia
Contributor

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.



SergeyNikitin<U++>( linux, wine )
{
    under( Ubuntu || Debian || Raspbian );
}
Re: Assertion in GridCtrl on Linux [message #20106 is a reply to message #20037] Tue, 17 February 2009 22:25 Go to previous messageGo to next message
unodgs is currently offline  unodgs
Messages: 1366
Registered: November 2005
Location: Poland
Ultimate Contributor

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 Smile ). 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 #20114 is a reply to message #20106] Thu, 19 February 2009 04:18 Go to previous messageGo to next message
sergeynikitin is currently offline  sergeynikitin
Messages: 748
Registered: January 2008
Location: Moscow, Russia
Contributor

I read that last SVN succeeded resolve the multiple opening popup. Therefore, this problem may be already solved itself.

SergeyNikitin<U++>( linux, wine )
{
    under( Ubuntu || Debian || Raspbian );
}
Re: Assertion in GridCtrl on Linux [message #20129 is a reply to message #20114] Fri, 20 February 2009 09:46 Go to previous messageGo to next message
unodgs is currently offline  unodgs
Messages: 1366
Registered: November 2005
Location: Poland
Ultimate Contributor

I have finally compiled theide under archlinux and then tested newest grid and the problem with popups still exists. I will fix it ASAP.
Re: Assertion in GridCtrl on Linux [message #20130 is a reply to message #20129] Fri, 20 February 2009 10:20 Go to previous messageGo to next message
unodgs is currently offline  unodgs
Messages: 1366
Registered: November 2005
Location: Poland
Ultimate Contributor

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)
Re: Assertion in GridCtrl on Linux [message #20132 is a reply to message #20130] Fri, 20 February 2009 13:18 Go to previous messageGo to next message
sergeynikitin is currently offline  sergeynikitin
Messages: 748
Registered: January 2008
Location: Moscow, Russia
Contributor

Great!.This is good news.

What version of SVN that was?


SergeyNikitin<U++>( linux, wine )
{
    under( Ubuntu || Debian || Raspbian );
}
Re: Assertion in GridCtrl on Linux [message #20133 is a reply to message #20132] Fri, 20 February 2009 13:45 Go to previous messageGo to next message
unodgs is currently offline  unodgs
Messages: 1366
Registered: November 2005
Location: Poland
Ultimate Contributor

I don't remeber Smile Just follow revision description (Fixed popup crash).
Re: Assertion in GridCtrl on Linux [message #20134 is a reply to message #20133] Fri, 20 February 2009 15:02 Go to previous messageGo to next message
sergeynikitin is currently offline  sergeynikitin
Messages: 748
Registered: January 2008
Location: Moscow, Russia
Contributor

Thanks!

SergeyNikitin<U++>( linux, wine )
{
    under( Ubuntu || Debian || Raspbian );
}

[Updated on: Fri, 20 February 2009 15:03]

Report message to a moderator

Re: Assertion in GridCtrl on Linux [message #20148 is a reply to message #20130] Sat, 21 February 2009 23:15 Go to previous messageGo to next message
Novo is currently offline  Novo
Messages: 1358
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
Re: Assertion in GridCtrl on Linux [message #20153 is a reply to message #20148] Sun, 22 February 2009 14:43 Go to previous message
unodgs is currently offline  unodgs
Messages: 1366
Registered: November 2005
Location: Poland
Ultimate Contributor

Please sync your svn once again. I did fixes I wrote about 2 days ago + popups are synchornized when doing wheel scrolling.
Previous Topic: Add Ctrls to ArrayCtrl
Next Topic: Question about GridCtrl
Goto Forum:
  


Current Time: Mon Apr 29 00:52:34 CEST 2024

Total time taken to generate the page: 0.81874 seconds