When I use dpm function (with Krumo) to print variable of type simple_html_dom_node I will see "white screen of death" but with Krumo with dumped variable. There is no dumps of other variables after dpm($element), so it seems dumping of simple_html_dom_node terminates process.

Comments

Konstantin Komelin’s picture

Status: Active » Postponed (maintainer needs more info)

Hi Bobík,

Thank you for your request.

Could you please provide your error message from http://komelin.com/admin/reports/dblog or your web server log?

I guess that an infinite recursion is taking place.

I personally recommend you using XDebug to watch for variables instead of any kind of debug-printing.

Best,
Konstantin

honza pobořil’s picture

Status: Postponed (maintainer needs more info) » Active

Hi, I use it in VBO, and it printed this error:
An AJAX HTTP error occurred. HTTP Result Code: 200 Debugging information follows. Path: http://2lfuk.localhost/en/batch?id=39967&op=do StatusText: OK ResponseText: */ /* -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- */ ul.krumo-node { margin: 0px; padding: 0px; } ul.krumo-node ul { margin-left: 20px; } * html ul.krumo-node ul { margin-left: 24px; } div.krumo-root { border: solid 1px black; margin: 1em 0em; } ul.krumo-first { font: normal 12px arial; border: solid 2px white; border-top-width:1px; background: url(http://2lfuk.localhost/sites/all/modules/contrib/devel/krumo/skins/orange/bg.gif); } /* -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- */ li.krumo-child { display:block; list-style: none; padding: 0px; margin: 0px; overflow:hidden; } div.krumo-element { cursor:default; line-height: 24px; display:block; clear:both; white-space:nowrap; border-top: solid 1px white; background: #FCEBA9; padding-left: 10px; } * html div.krumo-element { padding-bottom: 3px; } a.krumo-name { color:#404000; font: bold 13px Arial; } a.krumo-name big { font: bold 20pt Georgia; line-height: 14px; position:relative; top:2px; left:-2px; } * html a.krumo-name big { font: bold 19pt Georgia; top: 5px; left: 0px; line-height: 9px; height: 12px; padding: 0px; margin: 0px; } div.krumo-expand { background: #FADB61; cursor:pointer; } div.krumo-hover { background: #FF8A4B; } /* -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- */ div.krumo-preview { font: normal 13px courier new; padding: 5px 5px 14px 5px; background: white; border-top: 0px; overflow:auto; white-space: pre; } * html div.krumo-preview { padding-top: 2px; } /* -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- */ li.krumo-footnote { background:white; padding: 2px 5px; list-style:none; border-top: solid 1px #bebebe; margin-top:2px; cursor:default; } * html li.krumo-footnote { line-height: 13px; } div.krumo-version { float:right; } li.krumo-footnote h6 { font: bold 11px verdana; margin: 0px; padding: 0px; color:#E87400; display:inline; } * html li.krumo-footnote h6 { margin-right: 3px; } li.krumo-footnote a { font: bold 10px arial; color: #434343; text-decoration:none; } li.krumo-footnote a:hover { color:black; } li.krumo-footnote span.krumo-call { font:normal 11px verdana; position: relative; top: 1px; } li.krumo-footnote span.krumo-call code { font-weight:bold; } /* -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- */ div.krumo-title { font: normal 11px verdana ; position:relative; top:9px; cursor:default; line-height:2px; } /* -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- */ strong.krumo-array-length, strong.krumo-string-length { font-weight: normal; } /* -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- */ /**/--> -1) { el.className = el.className.replace(className, ''); } } // -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- /** * Toggle the nodes connected to an HTML element * * @param HtmlElement el * @return void */ krumo.toggle = function(el) { var ul = el.parentNode.getElementsByTagName('ul'); for (var i=0; i ... (Object) simple_html_dom_node nodetype (Integer) 1 tag (String, 1 characters ) a attr (Array, 2 elements) href (String, 30 characters ) /Informace/medailon/strnad.htm children (Array, 0 elements) nodes (Array, 1 element) 0 (Object) simple_html_dom_node nodetype (Integer) 3 tag (String, 4 characters ) text attr (Array, 1 element) children (Array, 0 elements) nodes (Array, 0 elements) parent (Object) simple_html_dom_node nodetype (Integer) 1 tag (String, 1 characters ) a attr (Array, 2 elements) href (String, 30 characters ) /Informace/medailon/strnad.htm children (Array, 0 elements) nodes (Array, 2 elements) ∞ (Recursion) parent (Object) simple_html_dom_node nodetype (Integer) 1 tag (String, 1 characters ) p attr (Array, 2 elements) class (String, 1 characters ) j children (Array, 7 elements) 0 (Object) simple_html_dom_node nodetype (Integer) 1 tag (String, 3 characters ) img attr (Array, 5 elements) src (String, 27 characters ) /Aktuality/nove/img/prs.jpg width (String, 3 characters ) 240 heught (String, 3 characters ) 359 class (String, 9 characters ) praft brd children (Array, 0 elements) nodes (Array, 0 elements) parent (Object) simple_html_dom_node nodetype (Integer) 1 tag (String, 1 characters ) p attr (Array, 2 elements) class (String, 1 characters ) j children (Array, 8 elements) ∞ (Recursion) nodes (Array, 13 elements) 0 (Object) simple_html_dom_node nodetype (Integer) 1 tag (String, 3 characters ) img attr (Array, 5 elements) src (String, 27 characters ) /Aktuality/nove/img/prs.jpg width (String, 3 characters ) 240 heught (String, 3 characters ) 359 class (String, 9 characters ) praft brd children (Array, 0 elements) nodes (Array, 0 elements) parent (Object) simple_html_dom_node nodetype (Integer) 1 tag (String, 1 characters ) p attr (Array, 2 elements) class (String, 1 characters ) j children (Array, 8 elements) ∞ (Recursion) nodes (Array, 14 elements) ∞ (Recursion) parent (Object) simple_html_dom_node nodetype (Integer) 5 tag (String, 4 characters ) root attr (Array, 1 element) children (Array, 2 elements) 0 (Object) simple_html_dom_node nodetype (Integer) 1 tag (String, 2 characters ) h4 attr (Array, 2 elements) class (String, 1 characters ) c children (Array, 0 elements) nodes (Array, 1 element) 0 (Object) simple_html_dom_node nodetype (Integer) 3 tag (String, 4 characters ) text attr (Array, 1 element) children (Array, 0 elements) nodes (Array, 0 elements) parent (Object) simple_html_dom_node nodetype (Integer) 1 tag (String, 2 characters ) h4 attr (Array, 2 elements) class (String, 1 characters ) c children (Array, 0 elements) nodes (Array, 2 elements) ∞ (Recursion) parent (Object) simple_html_dom_node nodetype (Integer) 5 tag (String, 4 characters ) root attr (Array, 1 element) children (Array, 3 elements) ∞ (Recursion) nodes (Array, 4 elements) 0 (Object) simple_html_dom_node nodetype (Integer) 1 tag (String, 2 characters ) h4 attr (Array, 2 elements) class (String, 1 characters ) c children (Array, 0 elements) nodes (Array, 2 elements) ∞ (Recursion) parent (Object) simple_html_dom_node nodetype (Integer) 5 tag (String, 4 characters ) root attr (Array, 1 element) ( ! ) Fatal error: Maximum function nesting level of '100' reached, aborting! in /Users/Bobik/Sites/2lfuk/sites/all/modules/contrib/devel/krumo/class.krumo.php on line 921 Call Stack #TimeMemoryFunctionLocation 10.0011241912{main}( )../index.php:0 23.29317938552menu_execute_active_handler( )../index.php:21 33.29387982320call_user_func_array ( )../menu.inc:517 43.29387982488system_batch_page( )../menu.inc:517 53.29387982544_batch_page( )../system.admin.inc:2377 63.29397983472_batch_do( )../batch.inc:80 73.29407983536_batch_process( )../batch.inc:161 83.29628039512call_user_func_array ( )../batch.inc:284 93.29628039560views_bulk_operations_active_queue_process( )../batch.inc:284 103.33938052456views_bulk_operations_queue_item_process( )../views_bulk_operations.module:974 113.45448622240ViewsBulkOperationsRulesComponent->execute( )../views_bulk_operations.module:1065 123.607510899976RulesPlugin->execute( )../rules_component.class.php:127 133.607610900368RulesAbstractPlugin->executeByArgs( )../rules.core.inc:577 143.618011696160RulesAbstractPlugin->evaluate( )../rules.core.inc:1638 153.618411698376RulesAction->executeCallback( )../rules.core.inc:1659 163.618411699328RulesExtendable->__call( )../rules.plugins.inc:20 173.618411699376FacesExtendable->__call( )../rules.core.inc:362 183.619211777192call_user_func_array ( )../faces.inc:123 193.619211777712rules_element_invoke_component( )../faces.inc:123 203.621611795464RulesActionContainer->evaluate( )../rules_core.eval.inc:35 213.621611795512RulesAbstractPlugin->evaluate( )../rules.core.inc:2435 223.622211799224RulesAction->executeCallback( )../rules.core.inc:1659 233.622211799304RulesExtendable->__call( )../rules.plugins.inc:20 243.622211799304FacesExtendable->__call( )../rules.core.inc:362 253.622711800712call_user_func_array ( )../faces.inc:123 263.622711801432lfuk2_imports_action_process_body( )../faces.inc:123 273.643311859632dpm( )../lfuk2_imports.rules.inc:65 283.643311859816kprint_r( )../devel.module:1863 293.644211880216krumo_ob( )../devel.module:1927 303.644211896840krumo( )../devel.module:1469 313.644211897760call_user_func_array ( )../class.krumo.php:1312 323.644211898096krumo::dump( )../class.krumo.php:1312 333.683011944720krumo::_dump( )../class.krumo.php:584 343.683011945120krumo::_object( )../class.krumo.php:794 353.683111945192krumo::_vars( )../class.krumo.php:1112 363.684811951264krumo::_dump( )../class.krumo.php:1001 373.684811951264krumo::_array( )../class.krumo.php:824 383.684911951264krumo::_vars( )../class.krumo.php:1080 393.685211952840krumo::_dump( )../class.krumo.php:1001 403.685211952840krumo::_object( )../class.krumo.php:794 413.685311952840krumo::_vars( )../class.krumo.php:1112 423.686911959280krumo::_dump( )../class.krumo.php:1001 433.686911959280krumo::_object( )../class.krumo.php:794 443.687011959280krumo::_vars( )../class.krumo.php:1112 453.689211962032krumo::_dump( )../class.krumo.php:1001 463.689211962032krumo::_object( )../class.krumo.php:794 473.689311962032krumo::_vars( )../class.krumo.php:1112 483.690711967144krumo::_dump( )../class.krumo.php:1001 493.690711967144krumo::_array( )../class.krumo.php:824 503.690811967144krumo::_vars( )../class.krumo.php:1080 513.691111969536krumo::_dump( )../class.krumo.php:1001 523.691211969536krumo::_object( )../class.krumo.php:794 533.691211969536krumo::_vars( )../class.krumo.php:1112 543.693811991456krumo::_dump( )../class.krumo.php:1001 553.693811991456krumo::_object( )../class.krumo.php:794 563.693911991456krumo::_vars( )../class.krumo.php:1112 573.695811994160krumo::_dump( )../class.krumo.php:1001 583.695911994160krumo::_array( )../class.krumo.php:824 593.696011994160krumo::_vars( )../class.krumo.php:1080 603.696311997432krumo::_dump( )../class.krumo.php:1001 613.696311997432krumo::_object( )../class.krumo.php:794 623.696411997432krumo::_vars( )../class.krumo.php:1112 633.700012000432krumo::_dump( )../class.krumo.php:1001 643.700112000432krumo::_object( )../class.krumo.php:794 653.700112000432krumo::_vars( )../class.krumo.php:1112 663.702512003184krumo::_dump( )../class.krumo.php:1001 673.702512003184krumo::_object( )../class.krumo.php:794 683.702612003184krumo::_vars( )../class.krumo.php:1112 693.703712008912krumo::_dump( )../class.krumo.php:1001 703.703712008912krumo::_array( )../class.krumo.php:824 713.703812008912krumo::_vars( )../class.krumo.php:1080 723.704212010624krumo::_dump( )../class.krumo.php:1001 733.704212010624krumo::_object( )../class.krumo.php:794 743.704312010624krumo::_vars( )../class.krumo.php:1112 753.705912015976krumo::_dump( )../class.krumo.php:1001 763.706012015976krumo::_array( )../class.krumo.php:824 773.706212032360krumo::_vars( )../class.krumo.php:1080 783.706512033936krumo::_dump( )../class.krumo.php:1001 793.706512033936krumo::_object( )../class.krumo.php:794 803.706612033936krumo::_vars( )../class.krumo.php:1112 813.708312040376krumo::_dump( )../class.krumo.php:1001 823.708312040376krumo::_object( )../class.krumo.php:794 833.708412040376krumo::_vars( )../class.krumo.php:1112 843.710612043128krumo::_dump( )../class.krumo.php:1001 853.710612043128krumo::_object( )../class.krumo.php:794 863.710712043128krumo::_vars( )../class.krumo.php:1112 873.712312045832krumo::_dump( )../class.krumo.php:1001 883.712412045832krumo::_array( )../class.krumo.php:824 893.712512045832krumo::_vars( )../class.krumo.php:1080 903.712812047816krumo::_dump( )../class.krumo.php:1001 913.712912047816krumo::_object( )../class.krumo.php:794 923.712912047816krumo::_vars( )../class.krumo.php:1112 933.715112050944krumo::_dump( )../class.krumo.php:1001 943.715112050944krumo::_object( )../class.krumo.php:794 953.715212050944krumo::_vars( )../class.krumo.php:1112 963.716212053392krumo::_dump( )../class.krumo.php:1001 973.716212053392krumo::_array( )../class.krumo.php:824 983.716412053392krumo::_vars( )../class.krumo.php:1080 993.716412053928krumo::_hive( )../class.krumo.php:968

Nothing in log.

So yes, it seems hitting maximum recursion level limit. But Krumo have some detection for it, so it does not work there for some reason.

Konstantin Komelin’s picture

Since it's Krumo issue wouldn't it better to put this issue to Devel module issue queue?

Thanks,
Konstantin

honza pobořil’s picture

I am not sure. It happens only for simple_html_dom_node, other objects with recursion are correctly handled.

Konstantin Komelin’s picture

Okay, then you may want to report this bug to the bug tracker of SimpleHTMLDom project http://sourceforge.net/p/simplehtmldom/bugs/?source=navbar

jordanmagnuson’s picture

Same issue for me.

astonvictor’s picture

Status: Active » Closed (outdated)

I'm closing it because the issue was created a long time ago without any further steps.

if you still need it then raise a new one.
thanks