Wt internal error and application stops working
Added by Valeriy Fedyunin about 9 years ago
Strange dialog box. After trying to build and show dialog I'm getting this message instead of dialog
Wt internal error; undefined, description: Unexpected token ,
and application stops working. What does it mean? Why it happens?
Some additional info:
- dialog generates automatically
- it contains menu and stackwidget
- each element on stack is a container widget with check-boxes
- texts for checkboxes generated in program but none of them contains token , (it happens even if all of the texts consist only of digits)
Wt-3.3.4
Also I'm getting very very long log
[2015-Sep-30 01:22:13.857359] 342 [/ HgV2q2aah0qR0X75] [error] "WApplication: JavaScript error: {""exception_description"":""Unexpected token ,"",""exception_js"":""Wt.p.response(1327239399);{function f172(event) { var g=event||window.event; var t=g.target||g.srcElement;if ((!t||Wt3_3_4.hasTag(t,'DIV') ||Wt3_3_4.hasTag(t,'BODY') ||Wt3_3_4.hasTag(t,'HTML'))) {var e=event||window.event,o=this;if(e.keyCode && (e.keyCode 27)){Wt._p_.update(o,\'s162e\',e,true);}}}\ndocument.onkeydown=f172;\nvar j173=Wt3_3_4.$(\'ojh24gx\');\nvar j174=document.createElement(\'div\');j173.appendChild(j174);\nj174.setAttribute(\'id\', \'ojh28zx\');\nWt3_3_4.setHtml(j174,\'\\r\\n <script>\\r\\n /* */\\r\\n(function(d,e,f){function g(){var a,b;if(typeof window.innerWidth=\""number\""){a=window.innerWidth;b=window.innerHeight}else{a=document.documentElement.clientWidth;b=document.documentElement.clientHeight}return{x:a,y:b}}function c(){var a=document.getElementById(d);if(a.style.display=\""hidden\""){var b=g(),h=a.offsetWidth,i=a.offsetHeight;if(e){a.style.left=Math.round((b.x-h)/2)\""px\"";a.style.marginLeft=\""0px\""}if(f){a.style.top=Math.round((b.y-i)/2)\""px\"";a.style.marginTop=\""0px\""}a.style.visibility=\\r\\n\""visible\""}}window.addEventListener?window.addEventListener(\""DOMContentLoaded\"",c,false):document.attachEvent(\""onDOMContentLoaded\"\",c)})(\\'ojh28zx\\',1,1);\\r\\n /* */\\r\\n
\\r\\n
Конструктор структурных атрибутов
1))return true;else{if($(o).hasClass(\\'disabled\\')){Wt3_3_4.cancelEvent(e);return;}Wt.p.update(o,\\'s1641\\',e,true);}\"">birth
000018801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013
<button id=\""ojh298r\"" type=\""button\"" onclick=\""var e=event||window.event,o=this;if($(o).hasClass(\\'disabled\\')){Wt3_3_4.cancelEvent(e);return;}Wt.p.update(o,\\'s1643\\',e,true);\"" class=\""btn with-label\"">OK<button id=\""ojh298s\"" type=\""button\"" onclick=\""var e=event||window.event,o=this;if($(o).hasClass(\\'disabled\\')){Wt3_3_4.cancelEvent(e);return;}Wt.p.update(o,\\'s1644\\',e,true);\"" class=\""btn with-label\"">Отмена
\\r\\n ',false);\nj174.className='Wt-popup my-dialog modal';\nj174.style.cssText='visibility: hidden';\nj174.style.position='fixed';\nj174.style.zIndex='300';\nj174.style.minWidth='800.0px';\nj174.style.minHeight='650.0px';\nj174.style.maxWidth='800.0px';\nj174.style.maxHeight='650.0px';\nj174.style.marginTop='0.0px';\nj174.style.marginRight='0.0px';\nj174.style.marginBottom='0.0px';\nj174.style.marginLeft='0.0px';\nfunction f175(event) { var e=event||window.event,o=this;if($(o).hasClass('disabled')){Wt3_3_4.cancelEvent(e);return;}(function(o,e) { if (Wt3_3_4.WPopupWidget) {Wt3_3_4.WPopupWidget.popupClicked = o;$(document).trigger('click', e);Wt3_3_4.WPopupWidget.popupClicked = null; }})(o,e);Wt3_3_4.cancelEvent(e,0x1);}\nj174.onclick=f175;\nfunction f176(event) { var e=event||window.event,o=this;if(e.keyCode && (e.keyCode 27)){Wt._p_.update(o,\'s1645\',e,true);}}\nj174.onkeydown=f176;\nWt3_3_4.setHtml(j174,\'\\r\\n <script>\\r\\n /* */\\r\\n(function(d,e,f){function g(){var a,b;if(typeof window.innerWidth=\""number\""){a=window.innerWidth;b=window.innerHeight}else{a=document.documentElement.clientWidth;b=document.documentElement.clientHeight}return{x:a,y:b}}function c(){var a=document.getElementById(d);if(a.style.display=\""hidden\""){var b=g(),h=a.offsetWidth,i=a.offsetHeight;if(e){a.style.left=Math.round((b.x-h)/2)\""px\"";a.style.marginLeft=\""0px\""}if(f){a.style.top=Math.round((b.y-i)/2)\""px\"";a.style.marginTop=\""0px\""}a.style.visibility=\\r\\n\""visible\""}}window.addEventListener?window.addEventListener(\""DOMContentLoaded\"",c,false):document.attachEvent(\""onDOMContentLoaded\"",c)})(\\'ojh28zx\\',1,1);\\r\\n /* */\\r\\n
\\r\\n
Конструктор структурных атрибутов
1))return true;else{if($(o).hasClass(\\'disabled\\')){Wt3_3_4.cancelEvent(e);return;}Wt.p.update(o,\\'s1641\\',e,true);}\"">birth
000018801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013
<button id=\""ojh298r\"" type=\""button\"" onclick=\""var e=event||window.event,o=this;if($(o).hasClass(\\'disabled\\')){Wt3_3_4.cancelEvent(e);return;}Wt.p.update(o,\\'s1643\\',e,true);\"" class=\""btn with-label\"">OK<button id=\""ojh298s\"" type=\""button\"" onclick=\""var e=event||window.event,o=this;if($(o).hasClass(\\'disabled\\')){Wt3_3_4.cancelEvent(e);return;}Wt.p.update(o,\\'s1644\\',e,true);\"" class=\""btn with-label\"">Отмена
\\r\\n ');\ntry {var ae=document.activeElement;if (ae && ae.blur && ae.nodeName != 'BODY') {document.activeElement.blur();}} catch (e) { }\nnew Wt3_3_4.WDialog(Wt,Wt3_3_4.$('ojh28zx'),Wt3_3_4.$('ojh2902'),1,1,null,null);\nnew Wt3_3_4.WPopupWidget(Wt,Wt3_3_4.$('ojh28zx'),false,0,true);\n\nvar j177=Wt3_3_4.$('dialog-cover_ojh28zw');\nj177.className='Wt-popup my-dialog-cover modal-backdrop';\nj177.style.zIndex='299';\nnew Wt3_3_4.WStackedWidget(Wt,Wt3_3_4.$('ojh2909'));\nWt3_3_4.$('ojh2909').wtResize=$('#ojh2909').data('obj').wtResize;\nWt3_3_4.$('ojh2909').wtGetPS=$('#ojh2909').data('obj').wtGetPs;\nWt3_3_4.$('ojh298j').wtResize=Wt3_3_4.ChildrenResize;\nsetTimeout(function() {var o = Wt3_3_4.$('ojh290o');if (o) {if (!$(o).hasClass('disabled')) {try { o.focus();} catch (e) {}}}}, 10);\nWt.layouts2.add(new Wt3_3_4.StdLayout2(Wt,'ojh2986','ojh290e',1,1,0,0,0,[6,0,0],[6,0,0],{ rows:0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0, cols:<del>1,0,0, items: [{dirty:2,id:'ojh290o'},{dirty:2,id:'ojh290p'},{dirty:2,id:'ojh290q'},{dirty:2,id:'ojh290r'},{dirty:2,id:'ojh290s'},{dirty:2,id:'ojh290t'},{dirty:2,id:'ojh290u'},{dirty:2,id:'ojh290v'},{dirty:2,id:'ojh290w'},{dirty:2,id:'ojh290x'},{dirty:2,id:'ojh290y'},{dirty:2,id:'ojh290z'},{dirty:2,id:'ojh2910'},{dirty:2,id:'ojh2911'},{dirty:2,id:'ojh2912'},{dirty:2,id:'ojh2913'},{dirty:2,id:'ojh2914'},{dirty:2,id:'ojh2915'},{dirty:2,id:'ojh2916'},{dirty:2,id:'ojh2917'},{dirty:2,id:'ojh2918'},{dirty:2,id:'ojh2919'},{dirty:2,id:'ojh291a'},{dirty:2,id:'ojh291b'},{dirty:2,id:'ojh291c'},{dirty:2,id:'ojh291d'},{dirty:2,id:'ojh291e'},{dirty:2,id:'ojh291f'},{dirty:2,id:'ojh291g'},{dirty:2,id:'ojh291h'},{dirty:2,id:'ojh291i'},{dirty:2,id:'ojh291j'},{dirty:2,id:'ojh291k'},{dirty:2,id:'ojh291l'},{dirty:2,id:'ojh291m'},{dirty:2,id:'ojh291n'},{dirty:2,id:'ojh291o'},{dirty:2,id:'ojh291p'},{dirty:2,id:'ojh291q'},{dirty:2,id:'ojh291r'},{dirty:2,id:'ojh291s'},{dirty:2,id:'ojh291t'},{dirty:2,id:'ojh291u'},{dirty:2,id:'ojh291v'},{dirty:2,id:'ojh291w'},{dirty:2,id:'ojh291x'},{dirty:2,id:'ojh291y'},{dirty:2,id:'ojh291z'},{dirty:2,id:'ojh2920'},{dirty:2,id:'ojh2921'},{dirty:2,id:'ojh2922'},{dirty:2,id:'ojh2923'},{dirty:2,id:'ojh2924'},{dirty:2,id:'ojh2925'},{dirty:2,id:'ojh2926'},{dirty:2,id:'ojh2927'},{dirty:2,id:'ojh2928'},{dirty:2,id:'ojh2929'},{dirty:2,id:'ojh292a'},{dirty:2,id:'ojh292b'},{dirty:2,id:'ojh292c'},{dirty:2,id:'ojh292d'},{dirty:2,id:'ojh292e'},{dirty:2,id:'ojh292f'},{dirty:2,id:'ojh292g'},{dirty:2,id:'ojh292h'},{dirty:2,id:'ojh292i'},{dirty:2,id:'ojh292j'},{dirty:2,id:'ojh292k'},{dirty:2,id:'ojh292l'},{dirty:2,id:'ojh292m'},{dirty:2,id:'ojh292n'},{dirty:2,id:'ojh292o'},{dirty:2,id:'ojh292p'},{dirty:2,id:'ojh292q'},{dirty:2,id:'ojh292r'},{dirty:2,id:'ojh292s'},{dirty:2,id:'ojh292t'},{dirty:2,id:'ojh292u'},{dirty:2,id:'ojh292v'},{dirty:2,id:'ojh292w'},{dirty:2,id:'ojh292x'},{dirty:2,id:'ojh292y'},{dirty:2,id:'ojh292z'},{dirty:2,id:'ojh2930'},{dirty:2,id:'ojh2931'},{dirty:2,id:'ojh2932'},{dirty:2,id:'ojh2933'},{dirty:2,id:'ojh2934'},{dirty:2,id:'ojh2935'},{dirty:2,id:'ojh2936'},{dirty:2,id:'ojh2937'},{dirty:2,id:'ojh2938'},{dirty:2,id:'ojh2939'},{dirty:2,id:'ojh293a'},{dirty:2,id:'ojh293b'},{dirty:2,id:'ojh293c'},{dirty:2,id:'ojh293d'},{dirty:2,id:'ojh293e'},{dirty:2,id:'ojh293f'},{dirty:2,id:'ojh293g'},{dirty:2,id:'ojh293h'},{dirty:2,id:'ojh293i'},{dirty:2,id:'ojh293j'},{dirty:2,id:'ojh293k'},{dirty:2,id:'ojh293l'},{dirty:2,id:'ojh293m'},{dirty:2,id:'ojh293n'},{dirty:2,id:'ojh293o'},{dirty:2,id:'ojh293p'},{dirty:2,id:'ojh293q'},{dirty:2,id:'ojh293r'},{dirty:2,id:'ojh293s'},{dirty:2,id:'ojh293t'},{dirty:2,id:'ojh293u'},{dirty:2,id:'ojh293v'},{dirty:2,id:'ojh293w'},{dirty:2,id:'ojh293x'},{dirty:2,id:'ojh293y'},{dirty:2,id:'ojh293z'},{dirty:2,id:'ojh2940'},{dirty:2,id:'ojh2941'},{dirty:2,id:'ojh2942'},{dirty:2,id:'ojh2943'},{dirty:2,id:'ojh2944'},{dirty:2,id:'ojh2945'},{dirty:2,id:'ojh2946'},{dirty:2,id:'ojh2947'},{dirty:2,id:'ojh2948'},{dirty:2,id:'ojh2949'},{dirty:2,id:'ojh294a'},{dirty:2,id:'ojh294b'},{dirty:2,id:'ojh294c'},{dirty:2,id:'ojh294d'},{dirty:2,id:'ojh294e'}]}));\nWt.layouts2.add(new Wt3_3_4.StdLayout2(Wt,'ojh2987','ojh290e',1,1,0,0,0,[6,0,0],[6,0,0],{ rows:[], cols:[], items: []}));\nWt.layouts2.add(new Wt3_3_4.StdLayout2(Wt,'ojh2988','ojh290e',1,1,0,0,0,[6,0,0],[6,0,0],{ rows:[], cols:[], items: []}));\nWt.layouts2.add(new Wt3_3_4.StdLayout2(Wt,'ojh2989','ojh290e',1,1,0,0,0,[6,0,0],[6,0,0],{ rows:[], cols:[], items: []}));\nWt.layouts2.add(new Wt3_3_4.StdLayout2(Wt,'ojh298a','ojh290e',1,1,0,0,0,[6,0,0],[6,0,0],{ rows:[], cols:[], items: []}));\nWt.layouts2.add(new Wt3_3_4.StdLayout2(Wt,'ojh298b','ojh290e',1,1,0,0,0,[6,0,0],[6,0,0],{ rows:[], cols:[], items: []}));\nWt.layouts2.add(new Wt3_3_4.StdLayout2(Wt,'ojh298c','ojh290e',1,1,0,0,0,[6,0,0],[6,0,0],{ rows:[], cols:[], items: []}));\nWt.layouts2.add(new Wt3_3_4.StdLayout2(Wt,'ojh298d','ojh290e',1,1,0,0,0,[6,0,0],[6,0,0],{ rows:[], cols:[], items: []}));\nWt.layouts2.add(new Wt3_3_4.StdLayout2(Wt,'ojh298e','ojh290e',1,1,0,0,0,[6,0,0],[6,0,0],{ rows:[], cols:[], items: []}));\nWt.layouts2.add(new Wt3_3_4.StdLayout2(Wt,'ojh290e',null,1,1,0,2700,,[6,9,9],[6,9,9],{ rows:--1,0,804, cols:1,0,0],[1,0,0],[1,0,0],[1,0,0],[1,0,0],[1,0,0],[1,0,0],[1,0,0],[1,0,0, items: [{dirty:2,id:'ojh2986'},{dirty:2,id:'ojh2987'},{dirty:2,id:'ojh2988'},{dirty:2,id:'ojh2989'},{dirty:2,id:'ojh298a'},{dirty:2,id:'ojh298b'},{dirty:2,id:'ojh298c'},{dirty:2,id:'ojh298d'},{dirty:2,id:'ojh298e'}]}));\nWt.layouts2.add(new Wt3_3_4.StdLayout2(Wt,'ojh2908',null,1,1,0,0,0,[6,9,9],[6,9,9],{ rows:--1,0,0, cols:0,0,0],[1,0,0, items: [{dirty:2,id:'ojh290b'},{dirty:2,id:'ojh2909'}]}));\nWt.layouts2.add(new Wt3_3_4.StdLayout2(Wt,'ojh2901',null,1,1,0,800,650,[0,0,0],[0,0,0],{ rows:0,0,0],[1,0,0],[0,0,0, cols:--1,0,0, items: [{dirty:2,id:'ojh2902'},{dirty:2,id:'ojh2904'},{dirty:2,id:'ojh298p'}]}));\n\nWt.layouts2.setDirty('ojh28yz');\nWt.layouts2.setDirty('ojh24ic');\nfunction f178(event) { var e=event||window.event,o=this;if(e.ctrlKey||e.metaKey||(Wt3_3_4.button(e) > 1))return true;else{if($(o).hasClass('disabled')){Wt3_3_4.cancelEvent(e);return;}$('#ojh2909').data('obj').setCurrent(Wt3_3_4.$('ojh298j'));\n$('#ojh298i').addClass('active');\nWt.layouts2.adjust('ojh2908', 0,0);\nWt.p.update(o,'s1641',e,true);}}\nvar j179=Wt3_3_4.$('ojh298k');\nj179.onclick=f178;\nWt.p.setFormObjects(['inojh24kb','inojh24km','inojh24kx','inojh24l8','inojh24lj','inojh24mh','inojh290o','inojh290p','inojh290q','inojh290r','inojh290s','inojh290t','inojh290u','inojh290v','inojh290w','inojh290x','inojh290y','inojh290z','inojh2910','inojh2911','inojh2912','inojh2913','inojh2914','inojh2915','inojh2916','inojh2917','inojh2918','inojh2919','inojh291a','inojh291b','inojh291c','inojh291d','inojh291e','inojh291f','inojh291g','inojh291h','inojh291i','inojh291j','inojh291k','inojh291l','inojh291m','inojh291n','inojh291o','inojh291p','inojh291q','inojh291r','inojh291s','inojh291t','inojh291u','inojh291v','inojh291w','inojh291x','inojh291y','inojh291z','inojh2920','inojh2921','inojh2922','inojh2923','inojh2924','inojh2925','inojh2926','inojh2927','inojh2928','inojh2929','inojh292a','inojh292b','inojh292c','inojh292d','inojh292e','inojh292f','inojh292g','inojh292h','inojh292i','inojh292j','inojh292k','inojh292l','inojh292m','inojh292n','inojh292o','inojh292p','inojh292q','inojh292r','inojh292s','inojh292t','inojh292u','inojh292v','inojh292w','inojh292x','inojh292y','inojh292z','inojh2930','inojh2931','inojh2932','inojh2933','inojh2934','inojh2935','inojh2936','inojh2937','inojh2938','inojh2939','inojh293a','inojh293b','inojh293c','inojh293d','inojh293e','inojh293f','inojh293g','inojh293h','inojh293i','inojh293j','inojh293k','inojh293l','inojh293m','inojh293n','inojh293o','inojh293p','inojh293q','inojh293r','inojh293s','inojh293t','inojh293u','inojh293v','inojh293w','inojh293x','inojh293y','inojh293z','inojh2940','inojh2941','inojh2942','inojh2943','inojh2944','inojh2945','inojh2946','inojh2947','inojh2948','inojh2949','inojh294a','inojh294b','inojh294c','inojh294d','inojh294e','ojh24jf','ojh24jh','ojh24jp','ojh24mb','ojh24mc','ojh28zl','ojh28zm','ojh28zn']);}"",""stack"":""SyntaxError: Unexpected token ,\n at eval (native)\n at ba (http://int.webcorpora.ru/sapho/?wtd=8521d6J5odbTqsAi&sid=1327239392&scrW=1920&scrH=1080&tz=180&htmlHistory=true&deployPath=%2Fsapho%2F&request=script&rand=4084102953:221:247)\\n at ia (http://int.webcorpora.ru/sapho/?wtd=8521d6J5odbTqsAi&sid=1327239392&scrW=1920&scrH=1080&tz=180&htmlHistory=true&deployPath=%2Fsapho%2F&request=script&rand=4084102953:221:388)\\n at w (http://int.webcorpora.ru/sapho/?wtd=8521d6J5odbTqsAi&sid=1327239392&scrW=1920&scrH=1080&tz=180&htmlHistory=true&deployPath=%2Fsapho%2F&request=script&rand=4084102953:162:298)\\n at XMLHttpRequest.y (http://int.webcorpora.ru/sapho/?wtd=8521d6J5odbTqsAi&sid=1327239392&scrW=1920&scrH=1080&tz=180&htmlHistory=true&deployPath=%2Fsapho%2F&request=script&rand=4084102953:163:67)""}\"
Replies (3)
RE: Wt internal error and application stops working - Added by Koen Deforche about 9 years ago
Hey,
That sounds like a bug in Wt. What version of Wt do you use?
Can you isolate the misbehavior in a standalone test case?
As aside, you seem to be putting a lot in a layout manager, this may result in poor performance.
Koen
RE: Wt internal error and application stops working - Added by Valeriy Fedyunin about 9 years ago
Here there is small test case (120 lines of code + 140 line of hardcode in the end), but it fails for me (I tried to isolate this dialog from our project).
Version 3.3.4 (+ fix from http://redmine.webtoolkit.eu/issues/3942).
If it is important, early 3.3.4 (a little bit later than its release).
RE: Wt internal error and application stops working - Added by Koen Deforche about 9 years ago
Hey,
That seems to run fine with latest git (and I suspect 3.3.5rc1 too).
Koen