Hi John, Thanks for the changes. I've merged them but when I move the mouse over the widget I get a crash right away, see output below. I'm working on Kubnutu 10.10.
Any ideas? Robert. $ osgQtWidgets --useWidgetImage cow.osg (28735) KSharedDataCache::Private::mapSharedMemory: Opening cache "/var/tmp/kdecache-robert/icon-cache.kcache" page size is 4096 (28735) KSharedDataCache::Private::mapSharedMemory: Attached to cache, determining if it must be initialized (28735) KSharedDataCache::Private::mapSharedMemory: Cache fully initialized -- attached to memory mapping (28735) KSharedDataCache::Private::mapSharedMemory: 4390912 bytes available out of 10485760 QInotifyFileSystemWatcherEngine::addPaths: inotify_add_watch failed: No such file or directory QFileSystemWatcher: failed to add paths: /home/robert/.config/ibus/bus Bus::open: Can not get ibus-daemon's address. IBusInputContext::createInputContext: no connection to ibus-daemon robert@ledi:~/Contributions/JohnIvarHaugland$ osgQtWidgets --useWidgetImage cow.osg (28739) KSharedDataCache::Private::mapSharedMemory: Opening cache "/var/tmp/kdecache-robert/icon-cache.kcache" page size is 4096 (28739) KSharedDataCache::Private::mapSharedMemory: Attached to cache, determining if it must be initialized (28739) KSharedDataCache::Private::mapSharedMemory: Cache fully initialized -- attached to memory mapping (28739) KSharedDataCache::Private::mapSharedMemory: 4390912 bytes available out of 10485760 QInotifyFileSystemWatcherEngine::addPaths: inotify_add_watch failed: No such file or directory QFileSystemWatcher: failed to add paths: /home/robert/.config/ibus/bus Bus::open: Can not get ibus-daemon's address. IBusInputContext::createInputContext: no connection to ibus-daemon *** glibc detected *** osgQtWidgets: double free or corruption (fasttop): 0x094fc720 *** ======= Backtrace: ========= /lib/libc.so.6(+0x6c501)[0x3abf501] /lib/libc.so.6(+0x6dd70)[0x3ac0d70] /lib/libc.so.6(cfree+0x6d)[0x3ac3e5d] /usr/lib/nvidia-current/tls/libnvidia-tls.so.260.19.06(+0xa20)[0x49ba20] /usr/lib/libX11.so.6(_XReply+0x106)[0x4ef036] /usr/lib/libXinerama.so.1(XineramaIsActive+0x90)[0xd52b50] /usr/lib/libQtGui.so.4(+0x1d48d0)[0x16858d0] /usr/lib/libQtGui.so.4(_ZN14QDesktopWidgetC1Ev+0x73)[0x1685c73] /usr/lib/libQtGui.so.4(_ZN12QApplication7desktopEv+0x45)[0x15dc045] /usr/lib/libQtGui.so.4(_ZNK7QWidget13mapFromGlobalERK6QPoint+0x94)[0x168b574] /home/robert/OpenSceneGraph/lib/libosgQt.so.71(_ZN5osgQt20QGraphicsViewAdapter11getWidgetAtERK6QPoint+0xfd)[0x31ea7d] /home/robert/OpenSceneGraph/lib/libosgQt.so.71(_ZN5osgQt20QGraphicsViewAdapter16sendPointerEventEiii+0x47)[0x320337] /home/robert/OpenSceneGraph/lib/libosgQt.so.71(_ZN5osgQt12QWidgetImage16sendPointerEventEiii+0x35)[0x326275] /home/robert/OpenSceneGraph/lib/libosgViewer.so.71(_ZN9osgViewer23InteractiveImageHandler6handleERKN5osgGA15GUIEventAdapterERNS1_16GUIActionAdapterEPN3osg6ObjectEPNS7_11NodeVisitorE+0x115)[0x6a6625] /home/robert/OpenSceneGraph/lib/libosgGA.so.71(_ZN5osgGA15GUIEventHandler5eventEPN3osg11NodeVisitorEPNS1_8DrawableE+0x91)[0xbc7491] /home/robert/OpenSceneGraph/lib/libosgGA.so.71(_ZN5osgGA12EventVisitor5applyERN3osg5GeodeE+0xe8)[0xbc12d8] osgQtWidgets(_ZN3osg5Geode6acceptERNS_11NodeVisitorE+0x47)[0x8051b37] /home/robert/OpenSceneGraph/lib/libosg.so.71(_ZN3osg5Group8traverseERNS_11NodeVisitorE+0x34)[0x881554] /home/robert/OpenSceneGraph/lib/libosgGA.so.71(_ZN5osgGA12EventVisitor5applyERN3osg9TransformE+0x87)[0xbc18c7] /home/robert/OpenSceneGraph/lib/libosg.so.71(_ZN3osg11NodeVisitor5applyERNS_15MatrixTransformE+0x18)[0x8c0e38] /home/robert/OpenSceneGraph/lib/libosg.so.71(_ZN3osg15MatrixTransform6acceptERNS_11NodeVisitorE+0x59)[0x8bace9] /home/robert/OpenSceneGraph/lib/libosg.so.71(_ZN3osg5Group8traverseERNS_11NodeVisitorE+0x34)[0x881554] /home/robert/OpenSceneGraph/lib/libosgGA.so.71(_ZN5osgGA12EventVisitor5applyERN3osg5GroupE+0x87)[0xbc1a47] /home/robert/OpenSceneGraph/lib/libosg.so.71(_ZN3osg5Group6acceptERNS_11NodeVisitorE+0x59)[0x883249] /home/robert/OpenSceneGraph/lib/libosg.so.71(_ZN3osg5Group8traverseERNS_11NodeVisitorE+0x34)[0x881554] /home/robert/OpenSceneGraph/lib/libosgGA.so.71(_ZN5osgGA12EventVisitor5applyERN3osg5GroupE+0x87)[0xbc1a47] /home/robert/OpenSceneGraph/lib/libosg.so.71(_ZN3osg5Group6acceptERNS_11NodeVisitorE+0x59)[0x883249] /home/robert/OpenSceneGraph/lib/libosgViewer.so.71(_ZN9osgViewer6Viewer14eventTraversalEv+0xed8)[0x68fba8] /home/robert/OpenSceneGraph/lib/libosgViewer.so.71(_ZN9osgViewer10ViewerBase5frameEd+0x2d)[0x69bd2d] /home/robert/OpenSceneGraph/lib/libosgViewer.so.71(_ZN9osgViewer10ViewerBase3runEv+0x24d)[0x69bfdd] /home/robert/OpenSceneGraph/lib/libosgViewer.so.71(_ZN9osgViewer6Viewer3runEv+0x33)[0x68d7c3] osgQtWidgets(_ZN17ViewerFrameThread3runEv+0x15)[0x80513a5] /home/robert/OpenSceneGraph/lib/libOpenThreads.so.12(_ZN11OpenThreads20ThreadPrivateActions11StartThreadEPv+0xb9)[0x4a7f29] /usr/lib/nvidia-current/libGL.so.1(+0x7dba8)[0xafdba8] ======= Memory map: ======== 00110000-002a9000 r-xp 00000000 08:16 17432710 /home/robert/OpenSceneGraph/lib/libosgUtil.so.2.9.11 002a9000-002b3000 r--p 00198000 08:16 17432710 /home/robert/OpenSceneGraph/lib/libosgUtil.so.2.9.11 002b3000-002b5000 rw-p 001a2000 08:16 17432710 /home/robert/OpenSceneGraph/lib/libosgUtil.so.2.9.11 002b5000-0030d000 r-xp 00000000 08:16 17433551 /home/robert/OpenSceneGraph/lib/libosgWidget.so.2.9.11 0030d000-00310000 r--p 00058000 08:16 17433551 /home/robert/OpenSceneGraph/lib/libosgWidget.so.2.9.11 00310000-00311000 rw-p 0005b000 08:16 17433551 /home/robert/OpenSceneGraph/lib/libosgWidget.so.2.9.11 00311000-0032a000 r-xp 00000000 08:16 17433562 /home/robert/OpenSceneGraph/lib/libosgQt.so.2.9.11 0032a000-0032b000 r--p 00018000 08:16 17433562 /home/robert/OpenSceneGraph/lib/libosgQt.so.2.9.11 0032b000-0032c000 rw-p 00019000 08:16 17433562 /home/robert/OpenSceneGraph/lib/libosgQt.so.2.9.11 0032c000-00332000 r-xp 00000000 08:11 1954 /usr/lib/libXrandr.so.2.2.0 00332000-00333000 r--p 00005000 08:11 1954 /usr/lib/libXrandr.so.2.2.0 00333000-00334000 rw-p 00006000 08:11 1954 /usr/lib/libXrandr.so.2.2.0 00334000-00347000 r-xp 00000000 08:11 132517 /lib/libz.so.1.2.3.4 00347000-00348000 r--p 00012000 08:11 132517 /lib/libz.so.1.2.3.4 00348000-00349000 rw-p 00013000 08:11 132517 /lib/libz.so.1.2.3.4 00349000-0035e000 r-xp 00000000 08:11 185569 /lib/libpthread-2.12.1.so 0035e000-0035f000 ---p 00015000 08:11 185569 /lib/libpthread-2.12.1.so 0035f000-00360000 r--p 00015000 08:11 185569 /lib/libpthread-2.12.1.so 00360000-00361000 rw-p 00016000 08:11 185569 /lib/libpthread-2.12.1.so 00361000-00363000 rw-p 00000000 00:00 0 00363000-00365000 r-xp 00000000 08:11 136376 /lib/libdl-2.12.1.so 00365000-00366000 r--p 00001000 08:11 136376 /lib/libdl-2.12.1.so 00366000-00367000 rw-p 00002000 08:11 136376 /lib/libdl-2.12.1.so 00367000-0038b000 r-xp 00000000 08:11 136377 /lib/libm-2.12.1.so 0038b000-0038c000 r--p 00023000 08:11 136377 /lib/libm-2.12.1.so 0038c000-0038d000 rw-p 00024000 08:11 136377 /lib/libm-2.12.1.so 0038d000-003a7000 r-xp 00000000 08:11 132398 /lib/libgcc_s.so.1 003a7000-003a8000 r--p 00019000 08:11 132398 /lib/libgcc_s.so.1 003a8000-003a9000 rw-p 0001a000 08:11 132398 /lib/libgcc_s.so.1 003a9000-003ac000 r-xp 00000000 08:11 6607 /usr/lib/libgthread-2.0.so.0.2600.1 003ac000-003ad000 r--p 00003000 08:11 6607 /usr/lib/libgthread-2.0.so.0.2600.1 003ad000-003ae000 rw-p 00004000 08:11 6607 /usr/lib/libgthread-2.0.so.0.2600.1 003ae000-003b5000 r-xp 00000000 08:11 1915 /usr/lib/libSM.so.6.0.1 003b5000-003b6000 r--p 00006000 08:11 1915 /usr/lib/libSM.so.6.0.1 003b6000-003b7000 rw-p 00007000 08:11 1915 /usr/lib/libSM.so.6.0.1 003b7000-00494000 r-xp 00000000 08:11 1860 /usr/lib/libQtOpenGL.so.4.7.0 00494000-00496000 r--p 000dd000 08:11 1860 /usr/lib/libQtOpenGL.so.4.7.0 00496000-0049a000 rw-p 000df000 08:11 1860 /usr/lib/libQtOpenGL.so.4.7.0 0049a000-0049b000 rw-p 00000000 00:00 0 0049b000-0049c000 r-xp 00000000 08:11 5466 /usr/lib/nvidia-current/tls/libnvidia-tls.so.260.19.06 0049c000-0049d000 rw-p 00000000 08:11 5466 /usr/lib/nvidia-current/tls/libnvidia-tls.so.260.19.06 0049d000-0049f000 r-xp 00000000 08:11 1921 /usr/lib/libXau.so.6.0.0 0049f000-004a0000 r--p 00001000 08:11 1921 /usr/lib/libXau.so.6.0.0 004a0000-004a1000 rw-p 00002000 08:11 1921 /usr/lib/libXau.so.6.0.0 004a1000-004a2000 r-xp 00000000 08:11 1917 /usr/lib/libX11-xcb.so.1.0.0 004a2000-004a3000 r--p 00000000 08:11 1917 /usr/lib/libX11-xcb.so.1.0.0 004a3000-004a4000 rw-p 00001000 08:11 1917 /usr/lib/libX11-xcb.so.1.0.0 004a4000-004ab000 r-xp 00000000 08:16 17432597 /home/robert/OpenSceneGraph/lib/libOpenThreads.so.2.5.0 004ab000-004ac000 r--p 00006000 08:16 17432597 /home/robert/OpenSceneGraph/lib/libOpenThreads.so.2.5.0 004ac000-004ad000 rw-p 00007000 08:16 17432597 /home/robert/OpenSceneGraph/lib/libOpenThreads.so.2.5.0Aborted On Thu, Feb 17, 2011 at 3:08 PM, John Ivar Haugland <[email protected]> wrote: > Robert, > > This is a bug fix to the osgQTWidgets example. There was a problem with the > command "osgqtwidgets --useWidgetImage cow.osg" that no input events was > received by the Qt widgets. The fix was to use the correct version of > the constructor for osgViewer::IntercativeImageHandler. > > Kind regards > John Ivar Haugland > > Ref. email from J-S 15.12.2010: Subject: [osg-submissions] QWidgetImage > improvements > >>Hello Aitor, >>I do it, I'm using osgQtWidgets example as base code... >>Hmm. I just tried osgQtWidgets with the following two commands: >>osgqtwidgets --useWidgetImage --fullscreen cow.osg >>osgqtwidgets --useWidgetImage cow.osg >>The first works (I can select text and click the button) but the second >> doesn't (no input events seem to get to the Qt widgets). >>I'm not sure why. I'll have to check. No time right now though, so if you >> have some time you can try to debug in a debugger to see why >QWidgetImage >> isn't getting any events. >>J-S > _______________________________________________ > osg-submissions mailing list > [email protected] > http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org > > _______________________________________________ osg-submissions mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org
