Ginsburg, Daniel | 1 Jun 2010 21:05
Picon

Wt 3.1.3 crashes my app


I tried upgrading to Wt 3.1.3 and my (previously working) application crashes with the following stack trace:

Wt::WWidget::jsRef (this=0x0) at /chb/users/ginsburg/Downloads/wt-3.1.3/src/Wt/WWidget.C:183
183      return "$('#" + id() + "').get(0)";
(gdb) backtrace
#0  Wt::WWidget::jsRef (this=0x0) at /chb/users/ginsburg/Downloads/wt-3.1.3/src/Wt/WWidget.C:183
#1  0x00007ffff7a41e6c in Wt::WTreeView::defineJavaScript (this=0x7fc090) at /chb/users/ginsburg/Downloads/wt-3.1.3/src/Wt/WTreeView.C:1194
#2  0x00007ffff7a4d8e2 in Wt::WTreeView::render (this=0x7fc090, flags=DWARF-2 expression error:
DW_OP_reg operations must be used either alone or in conjuction with DW_OP_piece.
) at /chb/users/ginsburg/Downloads/wt-3.1.3/src/Wt/WTreeView.C:1494
#3  0x00007ffff7a78a9e in Wt::WWidget::createSDomElement (this=0x7fc090, app=0x7ed720) at /chb/users/ginsburg/Downloads/wt-3.1.3/src/Wt/WWidget.C:265
#4  0x00007ffff78eaa79 in Wt::StdWidgetItemImpl::createDomElement (this=<value optimized out>,
fitWidth=<value optimized out>, fitHeight=<value optimized out>, app=<value optimized out>) at /chb/users/ginsburg/Downloads/wt-3.1.3/src/Wt/StdWidgetItemImpl.C:56
#5  0x00007ffff78e7d88 in Wt::StdGridLayoutImpl::createDomElement (this=<value optimized out>,
fitWidth=<value optimized out>, fitHeight=<value optimized out>, app=<value optimized out>) at /chb/users/ginsburg/Downloads/wt-3.1.3/src/Wt/StdGridLayoutImpl.C:441
#6  0x00007ffff7957b49 in Wt::WContainerWidget::createDomChildren (this=0x7f5240, parent=...,
app=0x7ed720) at /chb/users/ginsburg/Downloads/wt-3.1.3/src/Wt/WContainerWidget.C:644
#7  0x00007ffff7958119 in Wt::WContainerWidget::createDomElement (this=0x7f5240, app=0x7ed720) at /chb/users/ginsburg/Downloads/wt-3.1.3/src/Wt/WContainerWidget.C:632
#8  0x00007ffff7a78ab5 in Wt::WWidget::createSDomElement (this=0x7f5240, app=0x7ed720) at /chb/users/ginsburg/Downloads/wt-3.1.3/src/Wt/WWidget.C:266
#9  0x00007ffff78eaa79 in Wt::StdWidgetItemImpl::createDomElement (this=<value optimized out>,
fitWidth=<value optimized out>, fitHeight=<value optimized out>, app=<value optimized out>) at /chb/users/ginsburg/Downloads/wt-3.1.3/src/Wt/StdWidgetItemImpl.C:56
#10 0x00007ffff78e7d88 in Wt::StdGridLayoutImpl::createDomElement (this=<value optimized out>,
fitWidth=<value optimized out>, fitHeight=<value optimized out>, app=<value optimized out>) at /chb/users/ginsburg/Downloads/wt-3.1.3/src/Wt/StdGridLayoutImpl.C:441
#11 0x00007ffff7957b49 in Wt::WContainerWidget::createDomChildren (this=0x7f4cc0, parent=...,
app=0x7ed720) at /chb/users/ginsburg/Downloads/wt-3.1.3/src/Wt/WContainerWidget.C:644
#12 0x00007ffff7958119 in Wt::WContainerWidget::createDomElement (this=0x7f4cc0, app=0x7ed720)
at /chb/users/ginsburg/Downloads/wt-3.1.3/src/Wt/WContainerWidget.C:632
#13 0x00007ffff7a78ab5 in Wt::WWidget::createSDomElement (this=0x7f4cc0, app=0x7ed720) at /chb/users/ginsburg/Downloads/wt-3.1.3/src/Wt/WWidget.C:266
#14 0x00007ffff7957c68 in Wt::WContainerWidget::createDomChildren (this=0x7fffe8063370,
(Continue reading)

Joseph VanAndel | 2 Jun 2010 00:30
Picon
Favicon

Re: suppressing POST messages?

Actually, I just wanted to avoid seeing these messages on the console, since I'm saving the console messages into a file, and I don't want the file to grow too fast.

(My application shows the time every second, which causes a server push, which caused a POST message every second).

Thanks for your assistance.

On May 27, 2010, at 12:06 PM, omer katz wrote:

And I thought he meant he sees those in firebug.
I couldn't figure out why he would want that.

2010/5/27 Koen Deforche <koen-fsvWVe5cvas@public.gmane.org>
Hey Joseph,

2010/5/26 Joseph VanAndel <vanandel-7+Xl0Hirbic@public.gmane.org>:
> As I run my Wt application, I see lots of messages of the form:
>
> 128.117.85.129 - - [2010-May-26 18:39:29.045502] "POST /?wtd=bwO2QMjSMf1d7HFt&rand=6845 HTTP/1.1" 200 0
>
> Is there any way to suppress these messages?  (I've checked the FAQ and Tips and Tricks on the Wt Wiki).

These messages are the access log (and the particular one is one
related to server push). You can use the --accesslog argument to
redirect this to some other place (e.g. /dev/null).

Regards,
koen

------------------------------------------------------------------------------

_______________________________________________
witty-interest mailing list
witty-interest-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
https://lists.sourceforge.net/lists/listinfo/witty-interest
#avg_ls_inline_popup { position:absolute; z-index:9999; padding: 0px 0px; margin-left: 0px; margin-top: 0px; width: 240px; overflow: hidden; word-wrap: break-word; color: black; font-size: 10px; text-align: left; line-height: 13px;}
------------------------------------------------------------------------------

_______________________________________________
witty-interest mailing list
witty-interest-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
https://lists.sourceforge.net/lists/listinfo/witty-interest

------------------------------------------------------------------------------

_______________________________________________
witty-interest mailing list
witty-interest@...
https://lists.sourceforge.net/lists/listinfo/witty-interest
Koen Deforche | 2 Jun 2010 01:00
Picon
Favicon

Re: Wt 3.1.3 crashes my app

Hey Daniel,

Are you using progressive bootstrap mode? Intentionally? It seems that
this WTreeView did not receive the enableAjax() event because it
wasn't inserted at that time in the tree.

Regards,
koen

2010/6/1 Ginsburg, Daniel <Daniel.Ginsburg@...>:
>
> I tried upgrading to Wt 3.1.3 and my (previously working) application crashes with the following stack trace:
>
> Wt::WWidget::jsRef (this=0x0) at /chb/users/ginsburg/Downloads/wt-3.1.3/src/Wt/WWidget.C:183
> 183      return "$('#" + id() + "').get(0)";
> (gdb) backtrace
> #0  Wt::WWidget::jsRef (this=0x0) at /chb/users/ginsburg/Downloads/wt-3.1.3/src/Wt/WWidget.C:183
> #1  0x00007ffff7a41e6c in Wt::WTreeView::defineJavaScript (this=0x7fc090) at /chb/users/ginsburg/Downloads/wt-3.1.3/src/Wt/WTreeView.C:1194
> #2  0x00007ffff7a4d8e2 in Wt::WTreeView::render (this=0x7fc090, flags=DWARF-2 expression error:
DW_OP_reg operations must be used either alone or in conjuction with DW_OP_piece.
> ) at /chb/users/ginsburg/Downloads/wt-3.1.3/src/Wt/WTreeView.C:1494
> #3  0x00007ffff7a78a9e in Wt::WWidget::createSDomElement (this=0x7fc090, app=0x7ed720) at /chb/users/ginsburg/Downloads/wt-3.1.3/src/Wt/WWidget.C:265
> #4  0x00007ffff78eaa79 in Wt::StdWidgetItemImpl::createDomElement (this=<value optimized out>,
fitWidth=<value optimized out>, fitHeight=<value optimized out>, app=<value optimized out>) at /chb/users/ginsburg/Downloads/wt-3.1.3/src/Wt/StdWidgetItemImpl.C:56
> #5  0x00007ffff78e7d88 in Wt::StdGridLayoutImpl::createDomElement (this=<value optimized out>,
fitWidth=<value optimized out>, fitHeight=<value optimized out>, app=<value optimized out>) at /chb/users/ginsburg/Downloads/wt-3.1.3/src/Wt/StdGridLayoutImpl.C:441
> #6  0x00007ffff7957b49 in Wt::WContainerWidget::createDomChildren (this=0x7f5240, parent=...,
app=0x7ed720) at /chb/users/ginsburg/Downloads/wt-3.1.3/src/Wt/WContainerWidget.C:644
> #7  0x00007ffff7958119 in Wt::WContainerWidget::createDomElement (this=0x7f5240,
app=0x7ed720) at /chb/users/ginsburg/Downloads/wt-3.1.3/src/Wt/WContainerWidget.C:632
> #8  0x00007ffff7a78ab5 in Wt::WWidget::createSDomElement (this=0x7f5240, app=0x7ed720) at /chb/users/ginsburg/Downloads/wt-3.1.3/src/Wt/WWidget.C:266
> #9  0x00007ffff78eaa79 in Wt::StdWidgetItemImpl::createDomElement (this=<value optimized out>,
fitWidth=<value optimized out>, fitHeight=<value optimized out>, app=<value optimized out>) at /chb/users/ginsburg/Downloads/wt-3.1.3/src/Wt/StdWidgetItemImpl.C:56
> #10 0x00007ffff78e7d88 in Wt::StdGridLayoutImpl::createDomElement (this=<value optimized out>,
fitWidth=<value optimized out>, fitHeight=<value optimized out>, app=<value optimized out>) at /chb/users/ginsburg/Downloads/wt-3.1.3/src/Wt/StdGridLayoutImpl.C:441
> #11 0x00007ffff7957b49 in Wt::WContainerWidget::createDomChildren (this=0x7f4cc0, parent=...,
app=0x7ed720) at /chb/users/ginsburg/Downloads/wt-3.1.3/src/Wt/WContainerWidget.C:644
> #12 0x00007ffff7958119 in Wt::WContainerWidget::createDomElement (this=0x7f4cc0, app=0x7ed720)
at /chb/users/ginsburg/Downloads/wt-3.1.3/src/Wt/WContainerWidget.C:632
> #13 0x00007ffff7a78ab5 in Wt::WWidget::createSDomElement (this=0x7f4cc0, app=0x7ed720) at /chb/users/ginsburg/Downloads/wt-3.1.3/src/Wt/WWidget.C:266
> #14 0x00007ffff7957c68 in Wt::WContainerWidget::createDomChildren (this=0x7fffe8063370,
parent=..., app=0x7ed720) at /chb/users/ginsburg/Downloads/wt-3.1.3/src/Wt/WContainerWidget.C:691
> #15 0x00007ffff7958119 in Wt::WContainerWidget::createDomElement (this=0x7fffe8063370,
app=0x7ed720) at /chb/users/ginsburg/Downloads/wt-3.1.3/src/Wt/WContainerWidget.C:632
> #16 0x00007ffff7a78ab5 in Wt::WWidget::createSDomElement (this=0x7fffe8063370, app=0x7ed720) at /chb/users/ginsburg/Downloads/wt-3.1.3/src/Wt/WWidget.C:266
> #17 0x00007ffff78eaa79 in Wt::StdWidgetItemImpl::createDomElement (this=<value optimized out>,
fitWidth=<value optimized out>, fitHeight=<value optimized out>, app=<value optimized out>) at /chb/users/ginsburg/Downloads/wt-3.1.3/src/Wt/StdWidgetItemImpl.C:56
> #18 0x00007ffff78e7d88 in Wt::StdGridLayoutImpl::createDomElement (this=<value optimized out>,
fitWidth=<value optimized out>, fitHeight=<value optimized out>, app=<value optimized out>) at /chb/users/ginsburg/Downloads/wt-3.1.3/src/Wt/StdGridLayoutImpl.C:441
> #19 0x00007ffff7957b49 in Wt::WContainerWidget::createDomChildren (this=0x7f4a40, parent=...,
app=0x7ed720) at /chb/users/ginsburg/Downloads/wt-3.1.3/src/Wt/WContainerWidget.C:644
> #20 0x00007ffff7958119 in Wt::WContainerWidget::createDomElement (this=0x7f4a40, app=0x7ed720)
at /chb/users/ginsburg/Downloads/wt-3.1.3/src/Wt/WContainerWidget.C:632
> #21 0x00007ffff7a78ab5 in Wt::WWidget::createSDomElement (this=0x7f4a40, app=0x7ed720) at /chb/users/ginsburg/Downloads/wt-3.1.3/src/Wt/WWidget.C:266
> #22 0x00007ffff7957c68 in Wt::WContainerWidget::createDomChildren (this=0x7fffe81d2fc0,
parent=..., app=0x7ed720) at /chb/users/ginsburg/Downloads/wt-3.1.3/src/Wt/WContainerWidget.C:691
> #23 0x00007ffff7958119 in Wt::WContainerWidget::createDomElement (this=0x7fffe81d2fc0,
app=0x7ed720) at /chb/users/ginsburg/Downloads/wt-3.1.3/src/Wt/WContainerWidget.C:632
> #24 0x00007ffff7a78ab5 in Wt::WWidget::createSDomElement (this=0x7fffe81d2fc0, app=0x7ed720) at /chb/users/ginsburg/Downloads/wt-3.1.3/src/Wt/WWidget.C:266
> #25 0x00007ffff7957c68 in Wt::WContainerWidget::createDomChildren (this=0x7f3ff0, parent=...,
app=0x7ed720) at /chb/users/ginsburg/Downloads/wt-3.1.3/src/Wt/WContainerWidget.C:691
> #26 0x00007ffff7958119 in Wt::WContainerWidget::createDomElement (this=0x7f3ff0, app=0x7ed720)
at /chb/users/ginsburg/Downloads/wt-3.1.3/src/Wt/WContainerWidget.C:632
> #27 0x00007ffff7a78ab5 in Wt::WWidget::createSDomElement (this=0x7f3ff0, app=0x7ed720) at /chb/users/ginsburg/Downloads/wt-3.1.3/src/Wt/WWidget.C:266
> #28 0x00007ffff7957c68 in Wt::WContainerWidget::createDomChildren (this=0x7f3ed0, parent=...,
app=0x7ed720) at /chb/users/ginsburg/Downloads/wt-3.1.3/src/Wt/WContainerWidget.C:691
> #29 0x00007ffff7958119 in Wt::WContainerWidget::createDomElement (this=0x7f3ed0, app=0x7ed720)
at /chb/users/ginsburg/Downloads/wt-3.1.3/src/Wt/WContainerWidget.C:632
> #30 0x00007ffff7a78ab5 in Wt::WWidget::createSDomElement (this=0x7f3dc0, app=0x7ed720) at /chb/users/ginsburg/Downloads/wt-3.1.3/src/Wt/WWidget.C:266
> #31 0x00007ffff78eaa79 in Wt::StdWidgetItemImpl::createDomElement (this=<value optimized out>,
fitWidth=<value optimized out>, fitHeight=<value optimized out>, app=<value optimized out>) at /chb/users/ginsburg/Downloads/wt-3.1.3/src/Wt/StdWidgetItemImpl.C:56
> #32 0x00007ffff78e7d88 in Wt::StdGridLayoutImpl::createDomElement (this=<value optimized out>,
fitWidth=<value optimized out>, fitHeight=<value optimized out>, app=<value optimized out>) at /chb/users/ginsburg/Downloads/wt-3.1.3/src/Wt/StdGridLayoutImpl.C:441
> #33 0x00007ffff7957b49 in Wt::WContainerWidget::createDomChildren (this=0x7fffe81d7e80,
parent=..., app=0x7ed720) at /chb/users/ginsburg/Downloads/wt-3.1.3/src/Wt/WContainerWidget.C:644
> #34 0x00007ffff7958119 in Wt::WContainerWidget::createDomElement (this=0x7fffe81d7e80,
app=0x7ed720) at /chb/users/ginsburg/Downloads/wt-3.1.3/src/Wt/WContainerWidget.C:632
> #35 0x00007ffff7a78ab5 in Wt::WWidget::createSDomElement (this=0x7fffe81d7e80, app=0x7ed720) at /chb/users/ginsburg/Downloads/wt-3.1.3/src/Wt/WWidget.C:266
> #36 0x00007ffff7957200 in Wt::WContainerWidget::updateDom (this=0x7fffe8240f10, element=...,
all=<value optimized out>) at /chb/users/ginsburg/Downloads/wt-3.1.3/src/Wt/WContainerWidget.C:507
> #37 0x00007ffff7955aef in Wt::WContainerWidget::getDomChanges (this=0x7fffe8240f10,
result=..., app=0x7ed720) at /chb/users/ginsburg/Downloads/wt-3.1.3/src/Wt/WContainerWidget.C:621
> #38 0x00007ffff7a6bddc in Wt::WWebWidget::getSDomChanges (this=0x7fffe8240f10, result=...,
app=0x7ed720) at /chb/users/ginsburg/Downloads/wt-3.1.3/src/Wt/WWebWidget.C:1419
> #39 0x00007ffff7ac40bd in Wt::WebRenderer::collectChanges (this=0x7eb6e0, changes=<value
optimized out>) at /chb/users/ginsburg/Downloads/wt-3.1.3/src/web/WebRenderer.C:1000
> #40 0x00007ffff7ac595c in Wt::WebRenderer::collectJS (this=0x7fffe2ff0040, js=0x7eb768) at /chb/users/ginsburg/Downloads/wt-3.1.3/src/web/WebRenderer.C:1090
> #41 0x00007ffff7ac64df in Wt::WebRenderer::collectJavaScriptUpdate (this=0x7eb6e0, out=...) at /chb/users/ginsburg/Downloads/wt-3.1.3/src/web/WebRenderer.C:1013
> #42 0x00007ffff7acaca8 in Wt::WebRenderer::collectJavaScript (this=0x7eb6e0) at /chb/users/ginsburg/Downloads/wt-3.1.3/src/web/WebRenderer.C:371
> #43 0x00007ffff7acd68b in Wt::WebRenderer::serveJavaScriptUpdate (this=0x7eb6e0, response=...)
at /chb/users/ginsburg/Downloads/wt-3.1.3/src/web/WebRenderer.C:316
> #44 0x00007ffff7ab80e1 in Wt::WebSession::serveResponse (this=<value optimized out>,
handler=..., responseType=Wt::WebRenderer::Script) at /chb/users/ginsburg/Downloads/wt-3.1.3/src/web/WebSession.C:1355
> #45 0x00007ffff7abb74e in Wt::WebSession::render (this=0x7eb690, handler=...,
responseType=Wt::WebRenderer::Update) at /chb/users/ginsburg/Downloads/wt-3.1.3/src/web/WebSession.C:1328
> #46 0x00007ffff7abc5b0 in Wt::WebSession::notify (this=0x7eb690, event=...) at /chb/users/ginsburg/Downloads/wt-3.1.3/src/web/WebSession.C:1297
> #47 0x00000000004f92da in Wt::DispatchThread::doEvent (this=0x7fffe8242e30) at /chb/users/ginsburg/workspace2/trunk/www/wt/src/pl_gui/lib/DispatchThread.C:150
> #48 0x00000000004fa011 in Wt::DispatchObject::qt_metacall (this=0x7f6410,
_c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=<value optimized out>) at /chb/users/ginsburg/workspace2/trunk/www/wt/build/src/pl_gui/lib/moccedDispatchThread.C:70
> ---Type <return> to continue, or q <return> to quit---
> #49 0x00007ffff60db0f9 in QObject::event(QEvent*) () from /usr/lib/libQtCore.so.4
> #50 0x00007ffff60cbc2c in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib/libQtCore.so.4
> #51 0x00007ffff60cc80a in QCoreApplicationPrivate::sendPostedEvents(QObject*, int,
QThreadData*) () from /usr/lib/libQtCore.so.4
> #52 0x00007ffff60f4533 in ?? () from /usr/lib/libQtCore.so.4
> #53 0x00007ffff2726bce in g_main_context_dispatch () from /lib/libglib-2.0.so.0
> #54 0x00007ffff272a598 in ?? () from /lib/libglib-2.0.so.0
> #55 0x00007ffff272a6c0 in g_main_context_iteration () from /lib/libglib-2.0.so.0
> #56 0x00007ffff60f41a6 in
QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
> #57 0x00007ffff60ca532 in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) ()
from /usr/lib/libQtCore.so.4
> #58 0x00007ffff60ca904 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
> #59 0x00007ffff5fe26cb in QThread::exec() () from /usr/lib/libQtCore.so.4
> #60 0x00000000004f9457 in Wt::DispatchThread::run (this=0x7fffe8242e30) at /chb/users/ginsburg/workspace2/trunk/www/wt/src/pl_gui/lib/DispatchThread.C:69
> #61 0x00007ffff5fe5445 in ?? () from /usr/lib/libQtCore.so.4
> #62 0x00007ffff5d71a04 in start_thread (arg=<value optimized out>) at pthread_create.c:300
> #63 0x00007ffff3bdf80d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
> #64 0x0000000000000000 in ?? ()
>
> --
> Dan Ginsburg / email: daniel.ginsburg@...
> Principal Software Architect
> Fetal-Neonatal Neuroimaging and Development Science Center
> Children's Hospital Boston
> 300 Longwood Avenue
> Boston, MA 02115
> Phone: 857-218-5140
>
> ------------------------------------------------------------------------------
>
> _______________________________________________
> witty-interest mailing list
> witty-interest@...
> https://lists.sourceforge.net/lists/listinfo/witty-interest
>

------------------------------------------------------------------------------
Ginsburg, Daniel | 2 Jun 2010 13:36
Picon

Re: Wt 3.1.3 crashes my app

Hi Koen,

Thanks.  That was indeed the problem.  I did not know that I had progressive-bootstrap turned on (I guess I
enabled it at some point, but I have no recollection of why unless it was at one time a default in
wt_config.xml).  You are right that the WTreeView is inserted into the tree at a later time.  Is it OK to do this?

Thanks.

-- Dan

________________________________________
From: Koen Deforche [koen@...]
Sent: Tuesday, June 01, 2010 7:00 PM
To: witty-interest@...
Subject: Re: [Wt-interest] Wt 3.1.3 crashes my app

Hey Daniel,

Are you using progressive bootstrap mode? Intentionally? It seems that
this WTreeView did not receive the enableAjax() event because it
wasn't inserted at that time in the tree.

Regards,
koen

2010/6/1 Ginsburg, Daniel <Daniel.Ginsburg@...>:
>
> I tried upgrading to Wt 3.1.3 and my (previously working) application crashes with the following stack trace:
>
> Wt::WWidget::jsRef (this=0x0) at /chb/users/ginsburg/Downloads/wt-3.1.3/src/Wt/WWidget.C:183
> 183      return "$('#" + id() + "').get(0)";
> (gdb) backtrace
> #0  Wt::WWidget::jsRef (this=0x0) at /chb/users/ginsburg/Downloads/wt-3.1.3/src/Wt/WWidget.C:183
> #1  0x00007ffff7a41e6c in Wt::WTreeView::defineJavaScript (this=0x7fc090) at /chb/users/ginsburg/Downloads/wt-3.1.3/src/Wt/WTreeView.C:1194
> #2  0x00007ffff7a4d8e2 in Wt::WTreeView::render (this=0x7fc090, flags=DWARF-2 expression error:
DW_OP_reg operations must be used either alone or in conjuction with DW_OP_piece.
> ) at /chb/users/ginsburg/Downloads/wt-3.1.3/src/Wt/WTreeView.C:1494
> #3  0x00007ffff7a78a9e in Wt::WWidget::createSDomElement (this=0x7fc090, app=0x7ed720) at /chb/users/ginsburg/Downloads/wt-3.1.3/src/Wt/WWidget.C:265
> #4  0x00007ffff78eaa79 in Wt::StdWidgetItemImpl::createDomElement (this=<value optimized out>,
fitWidth=<value optimized out>, fitHeight=<value optimized out>, app=<value optimized out>) at /chb/users/ginsburg/Downloads/wt-3.1.3/src/Wt/StdWidgetItemImpl.C:56
> #5  0x00007ffff78e7d88 in Wt::StdGridLayoutImpl::createDomElement (this=<value optimized out>,
fitWidth=<value optimized out>, fitHeight=<value optimized out>, app=<value optimized out>) at /chb/users/ginsburg/Downloads/wt-3.1.3/src/Wt/StdGridLayoutImpl.C:441
> #6  0x00007ffff7957b49 in Wt::WContainerWidget::createDomChildren (this=0x7f5240, parent=...,
app=0x7ed720) at /chb/users/ginsburg/Downloads/wt-3.1.3/src/Wt/WContainerWidget.C:644
> #7  0x00007ffff7958119 in Wt::WContainerWidget::createDomElement (this=0x7f5240, app=0x7ed720)
at /chb/users/ginsburg/Downloads/wt-3.1.3/src/Wt/WContainerWidget.C:632
> #8  0x00007ffff7a78ab5 in Wt::WWidget::createSDomElement (this=0x7f5240, app=0x7ed720) at /chb/users/ginsburg/Downloads/wt-3.1.3/src/Wt/WWidget.C:266
> #9  0x00007ffff78eaa79 in Wt::StdWidgetItemImpl::createDomElement (this=<value optimized out>,
fitWidth=<value optimized out>, fitHeight=<value optimized out>, app=<value optimized out>) at /chb/users/ginsburg/Downloads/wt-3.1.3/src/Wt/StdWidgetItemImpl.C:56
> #10 0x00007ffff78e7d88 in Wt::StdGridLayoutImpl::createDomElement (this=<value optimized out>,
fitWidth=<value optimized out>, fitHeight=<value optimized out>, app=<value optimized out>) at /chb/users/ginsburg/Downloads/wt-3.1.3/src/Wt/StdGridLayoutImpl.C:441
> #11 0x00007ffff7957b49 in Wt::WContainerWidget::createDomChildren (this=0x7f4cc0, parent=...,
app=0x7ed720) at /chb/users/ginsburg/Downloads/wt-3.1.3/src/Wt/WContainerWidget.C:644
> #12 0x00007ffff7958119 in Wt::WContainerWidget::createDomElement (this=0x7f4cc0, app=0x7ed720)
at /chb/users/ginsburg/Downloads/wt-3.1.3/src/Wt/WContainerWidget.C:632
> #13 0x00007ffff7a78ab5 in Wt::WWidget::createSDomElement (this=0x7f4cc0, app=0x7ed720) at /chb/users/ginsburg/Downloads/wt-3.1.3/src/Wt/WWidget.C:266
> #14 0x00007ffff7957c68 in Wt::WContainerWidget::createDomChildren (this=0x7fffe8063370,
parent=..., app=0x7ed720) at /chb/users/ginsburg/Downloads/wt-3.1.3/src/Wt/WContainerWidget.C:691
> #15 0x00007ffff7958119 in Wt::WContainerWidget::createDomElement (this=0x7fffe8063370,
app=0x7ed720) at /chb/users/ginsburg/Downloads/wt-3.1.3/src/Wt/WContainerWidget.C:632
> #16 0x00007ffff7a78ab5 in Wt::WWidget::createSDomElement (this=0x7fffe8063370, app=0x7ed720) at /chb/users/ginsburg/Downloads/wt-3.1.3/src/Wt/WWidget.C:266
> #17 0x00007ffff78eaa79 in Wt::StdWidgetItemImpl::createDomElement (this=<value optimized out>,
fitWidth=<value optimized out>, fitHeight=<value optimized out>, app=<value optimized out>) at /chb/users/ginsburg/Downloads/wt-3.1.3/src/Wt/StdWidgetItemImpl.C:56
> #18 0x00007ffff78e7d88 in Wt::StdGridLayoutImpl::createDomElement (this=<value optimized out>,
fitWidth=<value optimized out>, fitHeight=<value optimized out>, app=<value optimized out>) at /chb/users/ginsburg/Downloads/wt-3.1.3/src/Wt/StdGridLayoutImpl.C:441
> #19 0x00007ffff7957b49 in Wt::WContainerWidget::createDomChildren (this=0x7f4a40, parent=...,
app=0x7ed720) at /chb/users/ginsburg/Downloads/wt-3.1.3/src/Wt/WContainerWidget.C:644
> #20 0x00007ffff7958119 in Wt::WContainerWidget::createDomElement (this=0x7f4a40, app=0x7ed720)
at /chb/users/ginsburg/Downloads/wt-3.1.3/src/Wt/WContainerWidget.C:632
> #21 0x00007ffff7a78ab5 in Wt::WWidget::createSDomElement (this=0x7f4a40, app=0x7ed720) at /chb/users/ginsburg/Downloads/wt-3.1.3/src/Wt/WWidget.C:266
> #22 0x00007ffff7957c68 in Wt::WContainerWidget::createDomChildren (this=0x7fffe81d2fc0,
parent=..., app=0x7ed720) at /chb/users/ginsburg/Downloads/wt-3.1.3/src/Wt/WContainerWidget.C:691
> #23 0x00007ffff7958119 in Wt::WContainerWidget::createDomElement (this=0x7fffe81d2fc0,
app=0x7ed720) at /chb/users/ginsburg/Downloads/wt-3.1.3/src/Wt/WContainerWidget.C:632
> #24 0x00007ffff7a78ab5 in Wt::WWidget::createSDomElement (this=0x7fffe81d2fc0, app=0x7ed720) at /chb/users/ginsburg/Downloads/wt-3.1.3/src/Wt/WWidget.C:266
> #25 0x00007ffff7957c68 in Wt::WContainerWidget::createDomChildren (this=0x7f3ff0, parent=...,
app=0x7ed720) at /chb/users/ginsburg/Downloads/wt-3.1.3/src/Wt/WContainerWidget.C:691
> #26 0x00007ffff7958119 in Wt::WContainerWidget::createDomElement (this=0x7f3ff0, app=0x7ed720)
at /chb/users/ginsburg/Downloads/wt-3.1.3/src/Wt/WContainerWidget.C:632
> #27 0x00007ffff7a78ab5 in Wt::WWidget::createSDomElement (this=0x7f3ff0, app=0x7ed720) at /chb/users/ginsburg/Downloads/wt-3.1.3/src/Wt/WWidget.C:266
> #28 0x00007ffff7957c68 in Wt::WContainerWidget::createDomChildren (this=0x7f3ed0, parent=...,
app=0x7ed720) at /chb/users/ginsburg/Downloads/wt-3.1.3/src/Wt/WContainerWidget.C:691
> #29 0x00007ffff7958119 in Wt::WContainerWidget::createDomElement (this=0x7f3ed0, app=0x7ed720)
at /chb/users/ginsburg/Downloads/wt-3.1.3/src/Wt/WContainerWidget.C:632
> #30 0x00007ffff7a78ab5 in Wt::WWidget::createSDomElement (this=0x7f3dc0, app=0x7ed720) at /chb/users/ginsburg/Downloads/wt-3.1.3/src/Wt/WWidget.C:266
> #31 0x00007ffff78eaa79 in Wt::StdWidgetItemImpl::createDomElement (this=<value optimized out>,
fitWidth=<value optimized out>, fitHeight=<value optimized out>, app=<value optimized out>) at /chb/users/ginsburg/Downloads/wt-3.1.3/src/Wt/StdWidgetItemImpl.C:56
> #32 0x00007ffff78e7d88 in Wt::StdGridLayoutImpl::createDomElement (this=<value optimized out>,
fitWidth=<value optimized out>, fitHeight=<value optimized out>, app=<value optimized out>) at /chb/users/ginsburg/Downloads/wt-3.1.3/src/Wt/StdGridLayoutImpl.C:441
> #33 0x00007ffff7957b49 in Wt::WContainerWidget::createDomChildren (this=0x7fffe81d7e80,
parent=..., app=0x7ed720) at /chb/users/ginsburg/Downloads/wt-3.1.3/src/Wt/WContainerWidget.C:644
> #34 0x00007ffff7958119 in Wt::WContainerWidget::createDomElement (this=0x7fffe81d7e80,
app=0x7ed720) at /chb/users/ginsburg/Downloads/wt-3.1.3/src/Wt/WContainerWidget.C:632
> #35 0x00007ffff7a78ab5 in Wt::WWidget::createSDomElement (this=0x7fffe81d7e80, app=0x7ed720) at /chb/users/ginsburg/Downloads/wt-3.1.3/src/Wt/WWidget.C:266
> #36 0x00007ffff7957200 in Wt::WContainerWidget::updateDom (this=0x7fffe8240f10, element=...,
all=<value optimized out>) at /chb/users/ginsburg/Downloads/wt-3.1.3/src/Wt/WContainerWidget.C:507
> #37 0x00007ffff7955aef in Wt::WContainerWidget::getDomChanges (this=0x7fffe8240f10,
result=..., app=0x7ed720) at /chb/users/ginsburg/Downloads/wt-3.1.3/src/Wt/WContainerWidget.C:621
> #38 0x00007ffff7a6bddc in Wt::WWebWidget::getSDomChanges (this=0x7fffe8240f10, result=...,
app=0x7ed720) at /chb/users/ginsburg/Downloads/wt-3.1.3/src/Wt/WWebWidget.C:1419
> #39 0x00007ffff7ac40bd in Wt::WebRenderer::collectChanges (this=0x7eb6e0, changes=<value
optimized out>) at /chb/users/ginsburg/Downloads/wt-3.1.3/src/web/WebRenderer.C:1000
> #40 0x00007ffff7ac595c in Wt::WebRenderer::collectJS (this=0x7fffe2ff0040, js=0x7eb768) at /chb/users/ginsburg/Downloads/wt-3.1.3/src/web/WebRenderer.C:1090
> #41 0x00007ffff7ac64df in Wt::WebRenderer::collectJavaScriptUpdate (this=0x7eb6e0, out=...) at /chb/users/ginsburg/Downloads/wt-3.1.3/src/web/WebRenderer.C:1013
> #42 0x00007ffff7acaca8 in Wt::WebRenderer::collectJavaScript (this=0x7eb6e0) at /chb/users/ginsburg/Downloads/wt-3.1.3/src/web/WebRenderer.C:371
> #43 0x00007ffff7acd68b in Wt::WebRenderer::serveJavaScriptUpdate (this=0x7eb6e0, response=...)
at /chb/users/ginsburg/Downloads/wt-3.1.3/src/web/WebRenderer.C:316
> #44 0x00007ffff7ab80e1 in Wt::WebSession::serveResponse (this=<value optimized out>,
handler=..., responseType=Wt::WebRenderer::Script) at /chb/users/ginsburg/Downloads/wt-3.1.3/src/web/WebSession.C:1355
> #45 0x00007ffff7abb74e in Wt::WebSession::render (this=0x7eb690, handler=...,
responseType=Wt::WebRenderer::Update) at /chb/users/ginsburg/Downloads/wt-3.1.3/src/web/WebSession.C:1328
> #46 0x00007ffff7abc5b0 in Wt::WebSession::notify (this=0x7eb690, event=...) at /chb/users/ginsburg/Downloads/wt-3.1.3/src/web/WebSession.C:1297
> #47 0x00000000004f92da in Wt::DispatchThread::doEvent (this=0x7fffe8242e30) at /chb/users/ginsburg/workspace2/trunk/www/wt/src/pl_gui/lib/DispatchThread.C:150
> #48 0x00000000004fa011 in Wt::DispatchObject::qt_metacall (this=0x7f6410,
_c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=<value optimized out>) at /chb/users/ginsburg/workspace2/trunk/www/wt/build/src/pl_gui/lib/moccedDispatchThread.C:70
> ---Type <return> to continue, or q <return> to quit---
> #49 0x00007ffff60db0f9 in QObject::event(QEvent*) () from /usr/lib/libQtCore.so.4
> #50 0x00007ffff60cbc2c in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib/libQtCore.so.4
> #51 0x00007ffff60cc80a in QCoreApplicationPrivate::sendPostedEvents(QObject*, int,
QThreadData*) () from /usr/lib/libQtCore.so.4
> #52 0x00007ffff60f4533 in ?? () from /usr/lib/libQtCore.so.4
> #53 0x00007ffff2726bce in g_main_context_dispatch () from /lib/libglib-2.0.so.0
> #54 0x00007ffff272a598 in ?? () from /lib/libglib-2.0.so.0
> #55 0x00007ffff272a6c0 in g_main_context_iteration () from /lib/libglib-2.0.so.0
> #56 0x00007ffff60f41a6 in
QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
> #57 0x00007ffff60ca532 in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) ()
from /usr/lib/libQtCore.so.4
> #58 0x00007ffff60ca904 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
> #59 0x00007ffff5fe26cb in QThread::exec() () from /usr/lib/libQtCore.so.4
> #60 0x00000000004f9457 in Wt::DispatchThread::run (this=0x7fffe8242e30) at /chb/users/ginsburg/workspace2/trunk/www/wt/src/pl_gui/lib/DispatchThread.C:69
> #61 0x00007ffff5fe5445 in ?? () from /usr/lib/libQtCore.so.4
> #62 0x00007ffff5d71a04 in start_thread (arg=<value optimized out>) at pthread_create.c:300
> #63 0x00007ffff3bdf80d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
> #64 0x0000000000000000 in ?? ()
>
> --
> Dan Ginsburg / email: daniel.ginsburg@...
> Principal Software Architect
> Fetal-Neonatal Neuroimaging and Development Science Center
> Children's Hospital Boston
> 300 Longwood Avenue
> Boston, MA 02115
> Phone: 857-218-5140
>
> ------------------------------------------------------------------------------
>
> _______________________________________________
> witty-interest mailing list
> witty-interest@...
> https://lists.sourceforge.net/lists/listinfo/witty-interest
>

------------------------------------------------------------------------------

_______________________________________________
witty-interest mailing list
witty-interest@...
https://lists.sourceforge.net/lists/listinfo/witty-interest
------------------------------------------------------------------------------
omer katz | 2 Jun 2010 14:44
Picon

Looking for volunteers for a Wt extension


Hello,
I had been thinking about a way to automate even more the process of creating user interfaces in Wt.
If we could define widgets on the XML file like this for example:
<Widget type="WTextEdit" name="foo" value="bar" />

It would make development of user interfaces much easier and even cheaper as regular web developers could just do it themselves.
It will also allow us to create the Wt Creator much more easily.

How to achieve this?
  • By creating a compile time tool that will generate the necessary functions from the xml file.
  • By replacing the Widget node with a placeholder like replacing the widget node with  {$foo} in our example and generating a production use xml file.
  • Using a small set of macros
  • Using the RapidXML parser that wt already uses
Main features
  • The system shall create and bind widgets to the template, even nested widgets (like containers) can be created.
  • The system shall allow to bind JavaScript or C++ code to events like this:
<Widget type="WSilder" name="foo" value="bar">
   <Event name="valueChanged" language="JavaScript">
      function handler(value) { alert (value); }
    </Event>
</Widget>

It shouldn't be very hard to maintain and create, as there are so many setters and events for each widget.
If someone is interested in helping me coding this, I'll be glad.

Thanks for reading and best regards,
Omer Katz
#avg_ls_inline_popup { position:absolute; z-index:9999; padding: 0px 0px; margin-left: 0px; margin-top: 0px; width: 240px; overflow: hidden; word-wrap: break-word; color: black; font-size: 10px; text-align: left; line-height: 13px;}
------------------------------------------------------------------------------

_______________________________________________
witty-interest mailing list
witty-interest@...
https://lists.sourceforge.net/lists/listinfo/witty-interest
Koen Deforche | 2 Jun 2010 16:26
Picon
Favicon

Re: Wt 3.1.3 crashes my app

Hey Daniel,

2010/6/2 Ginsburg, Daniel <Daniel.Ginsburg@...>:
> Thanks.  That was indeed the problem.  I did not know that I had progressive-bootstrap turned on (I
guess I enabled it at some point, but I have no recollection of why unless it was at one time a default in
wt_config.xml).  You are right that the WTreeView is inserted into the tree at a later time.  Is it OK to
do this?

It should be okay, but currently the enableAjax() event is propagated
only to widgets inserted in the widget tree -- this should be fixed by
having a widget remember that it still needs to upgrade to Ajax when
inserted later in the tree. But it is not a very common use case I
would expect.

Regards,
koen

------------------------------------------------------------------------------
Ginsburg, Daniel | 2 Jun 2010 20:53
Picon

Wt 3.1.3: still some IE8 rendering issues


I have upgraded to Wt 3.1.3, but am still seeing an issue related to this bug that I filed
(http://redmine.webtoolkit.eu/issues/354).  One issue is that if I have text in the DisplayRole of the
WTreeView elements that contains a "-", then IE8 is truncating the contents.  You can easily see this in the
example program I submitted in that bug if you change the entries in the WTreeView to something like
"watch-how-I-get-truncated-in-IE8-if-I-have-dashes-inside-of-me" :)  I remember this was an issue
way back in Wt 3.1.1 and you had me workaround it by modifying my .Wt-treeview CSS to have "white-space:
nowrap;", but even with that there is this problem in IE8 (although not in Firefox, Safari, Konquerer, etc.).

The other problem, which I suppose I will have to create another reproducer for, is that when I have a
WGridLayout with two columns where the column 1 has a stretch of 1 and column 0 has no stretch, then the
"setMinimumSize()" for the width of the item in column 0 appears to be ignored and it gets cropped.  This
only seems to happen in IE8.

It's getting there though, it's a lot closer to working than before.

Thanks.

Dan Ginsburg / email: daniel.ginsburg@...<mailto:daniel.ginsburg@...>
Principal Software Architect
Fetal-Neonatal Neuroimaging and Development Science Center
Children's Hospital Boston
300 Longwood Avenue
Boston, MA 02115
Phone: 857-218-5140

------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
Janne Rönkkö | 4 Jun 2010 12:13
Picon
Favicon

Issue With OverflowAuto Inside Multiple WContainerWidgets

Hi,

I'm having an issue with Internet Explorer (6-8) when using setOverflow( 
OverflowAuto ) inside multiple WContainerWidgets (I'm using Wt 3.1.3).

The attached scroll.html is handwritten and it should be quite near of 
what Wt has generated in this case. Using this file IE works as 
expected; the table containing data rows can be scrolled (as is with 
Firefox). But when the similar construct is generated using Wt, IE does 
not scroll the content. The ContainerWidget which has overflow set to 
Auto has scroll bars but the contents does not scroll. What is even more 
interesting is that the border of the container seems to move.

You can find demonstrating code from the scroll.tar.gz. The tarball 
contains three files:
- main.cpp: code generating quite simple application
- style.css: some css to higlight different containers
- Makefile: for compilation (uses g++; make run to run embedded http 
server on port 8001)

BR,
Janne
Attachment (scroll.tar.gz): application/x-gzip, 973 bytes

DATA
DATA
DATA
DATA
DATA
DATA
DATA
DATA
DATA
DATA
DATA
DATA
DATA
DATA
DATA
DATA
DATA
DATA
DATA
DATA
DATA
DATA
DATA
DATA
------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
_______________________________________________
witty-interest mailing list
witty-interest@...
https://lists.sourceforge.net/lists/listinfo/witty-interest
Koen Deforche | 8 Jun 2010 09:35
Picon
Favicon

Re: Wt 3.1.3: still some IE8 rendering issues

Hey Daniel,

2010/6/2 Ginsburg, Daniel <Daniel.Ginsburg@...>:
>
> I have upgraded to Wt 3.1.3, but am still seeing an issue related to this bug that I filed
(http://redmine.webtoolkit.eu/issues/354).  One issue is that if I have text in the DisplayRole of
the WTreeView elements that contains a "-", then IE8 is truncating the contents.  You can easily see this
in the example program I submitted in that bug if you change the entries in the WTreeView to something like
"watch-how-I-get-truncated-in-IE8-if-I-have-dashes-inside-of-me" :)  I remember this was an
issue way back in Wt 3.1.1 and you had me workaround it by modifying my .Wt-treeview CSS to have
"white-space: nowrap;", but even with that there is this problem in IE8 (although not in Firefox, Safari,
Konquerer, etc.).

I could indeed reproduce this. Apparently there is yet-another bug in
IE where "white-space" is ignored when set on a table or td.

The following CSS fixes this:

.Wt-treeview div, .Wt-treeview span {
    white-space: nowrap;
}

Another thing I noted in your styles.css is that you have:

.suggest span {
    padding-left: 0.5em;
    padding-right: 0.5em;
}

This should be changed to:

.suggest div span {
    padding-left: 0.5em;
    padding-right: 0.5em;
}

> The other problem, which I suppose I will have to create another reproducer for, is that when I have a
WGridLayout with two columns where the column 1 has a stretch of 1 and column 0 has no stretch, then the
"setMinimumSize()" for the width of the item in column 0 appears to be ignored and it gets cropped.  This
only seems to happen in IE8.

This sounds like something I should be able to easily reproduce
though. Just submit a bug for it and I will take a look at it ?

Regards,
koen

------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
Hilary Cheng | 8 Jun 2010 17:32
Picon

About Unit Test at Wt

Dear All,


    Anyone got idea how to a unit test under Wt ?  Seems, It doesn't got any library which is similar QTest Library/Events that can simluate the UI Actions.

Regards,

Hilary
------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
_______________________________________________
witty-interest mailing list
witty-interest@...
https://lists.sourceforge.net/lists/listinfo/witty-interest

Gmane