Project

General

Profile

Bug #951

WTextEdit seems to crash while reparenting

Added by Boris Nagaev over 10 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Target version:
Start date:
08/12/2011
Due date:
% Done:

0%

Estimated time:

Files

951.cpp (811 Bytes) 951.cpp Boris Nagaev, 08/21/2011 08:24 PM
#1

Updated by Koen Deforche over 10 years ago

  • Assignee set to Koen Deforche
  • Target version set to 3.1.11

Hey,

Although I couldn't reproduce this, I did observe a typo in WTextEdit::renderRemoveJs().

A fix is on its way to public git.

Regards,

koen

#2

Updated by Koen Deforche over 10 years ago

  • Status changed from New to InProgress
#3

Updated by Boris Nagaev over 10 years ago

Hello!

Here is an example of crashing.

After clicking a button, WTextEdit widget (tinymce) disappears.

Commands caught by firebug:

Wt._p_.response(2);{var j3=$('#oeqe9mn').get(0);
var cj30=$('#oeqe9mm');Wt3_1_10.setHtml(j3,'<span id="oeqe9mm"> </span> <span id="oeqe9mj"></span>',false);
$('#oeqe9mm').replaceWith(cj30);
}

Thanks

#4

Updated by Koen Deforche over 10 years ago

Hey,

Ah. I see now. It is actually caused by the combination WTextEdit-WTemplate.

As a workaround, you could wrap the WTextEdit in a WContainerWidget. I will in the meantime see how we can solve this.

Regards,

koen

#5

Updated by Koen Deforche over 10 years ago

  • Status changed from InProgress to Resolved
#6

Updated by Koen Deforche over 10 years ago

  • Status changed from Resolved to Closed

Resolved in Wt 3.1.11

#7

Updated by Juan Pablo Zuluaga almost 6 years ago

Hello ,

I'm trying to run the following example (/wt-1/examples/widgetgallery/SpecialPurposeWidgets.C) int Wt-3.3.0

g main.C WidgetGallery.C FormWidgets.C SpecialPurposeWidgets.C EventDisplayer.C BasicControls.C Validators.C ExtWidgets.C GraphicsWidgets.C DialogWidgets.C ChartWidgets.C MvcWidgets.C EventsDemo.C StyleLayout.C ControlsWidget.C -lwt -lwthttp -lboost_signals -lboost_system -lboost_thread -std=c++11 -o test.wt

but I get this (Wt::WWebWidget::renderRemoveJs[abi:cxx11](bool)' sin definir):

/tmp/ccHEDdBN.o:(.rodata._ZTV13WidgetGallery[_ZTV13WidgetGallery]+0x398): referencia a `Wt::WWebWidget::renderRemoveJs[abi:cxx11](bool)' sin definir

/tmp/cc9dUfJB.o:(.rodata._ZTV11FormWidgets[_ZTV11FormWidgets]+0x398): referencia a `Wt::WWebWidget::renderRemoveJs[abi:cxx11](bool)' sin definir

/tmp/cc9dUfJB.o:(.rodata._ZTV14DeferredWidgetIN5boost3_bi6bind_tIPN2Wt7WWidgetENS0_4_mfi3mf0IS5_11FormWidgetsEENS1_5list1INS1_5valueIPS8_EEEEEEE[_ZTV14DeferredWidgetIN5boost3_bi6bind_tIPN2Wt7WWidgetENS0_4_mfi3mf0IS5_11FormWidgetsEENS1_5list1INS1_5valueIPS8_EEEEEEE]+0x398): referencia a `Wt::WWebWidget::renderRemoveJs[abi:cxx11](bool)' sin definir

/tmp/ccp5n8o0.o:(.rodata._ZTV16GoogleMapExample[_ZTV16GoogleMapExample]+0x398): referencia a `Wt::WWebWidget::renderRemoveJs[abi:cxx11](bool)' sin definir

/tmp/ccp5n8o0.o:(.rodata._ZTV21SpecialPurposeWidgets[_ZTV21SpecialPurposeWidgets]+0x398): referencia a `Wt::WWebWidget::renderRemoveJs[abi:cxx11](bool)' sin definir

/tmp/ccp5n8o0.o:(.rodata._ZTV14DeferredWidgetIN5boost3_bi6bind_tIPN2Wt7WWidgetENS0_4_mfi3mf0IS5_21SpecialPurposeWidgetsEENS1_5list1INS1_5valueIPS8_EEEEEEE[_ZTV14DeferredWidgetIN5boost3_bi6bind_tIPN2Wt7WWidgetENS0_4_mfi3mf0IS5_21SpecialPurposeWidgetsEENS1_5list1INS1_5valueIPS8_EEEEEEE]+0x398): más referencias a `Wt::WWebWidget::renderRemoveJs[abi:cxx11](bool)' sin definir a continuación

/tmp/cc7fSxzz.o: En la función `ExtWidgets::eButton()':

ExtWidgets.C:(.text+0xa0a): referencia a `Wt::Ext::Button::Button(Wt::WString const&, Wt::WContainerWidget*)' sin definir

...

Help me !!!

#8

Updated by Koen Deforche almost 6 years ago

Hey,

I think you're mixing Wt library-versus-includefile versions?

Koen

#9

Updated by Juan Pablo Zuluaga over 5 years ago

thank you Koen

You are right !!

Also available in: Atom PDF