--- a/lib/CrashTest/StackFilters/FrameTrust.pm Mon Jan 26 00:48:15 2015 +0100
+++ b/lib/CrashTest/StackFilters/FrameTrust.pm Sun Feb 08 14:14:15 2015 +0100
@@ -24,6 +24,10 @@
# Search for inline templates in this class too
push @{$self->app->renderer->classes}, __PACKAGE__;
+ # bug in Mojolicious ?
+ # force refresh of the template cache
+ $self->app->renderer->_warmup;
+
return $self;
}
@@ -48,7 +52,7 @@
if(!defined($frame->module) && $frame->offset ne "0x0") {
$frame->module_name(
- $c->render(
+ $c->render_to_string(
template => "stackfilters/frame_trust/warning", partial => 1,
content_text => $frame->module_name, popup_text => "No module loaded at this address"
)
@@ -57,7 +61,7 @@
if($frame->missing_symbols) {
$frame->module_name(
- $c->render(
+ $c->render_to_string(
template => "stackfilters/frame_trust/warning", partial => 1,
content_text => $frame->module_name, popup_text => "Missing symbols"
)
@@ -66,7 +70,7 @@
if(defined($frame->trust) && $frame->trust eq "scan") {
$frame->function_name(
- $c->render(
+ $c->render_to_string(
template => "stackfilters/frame_trust/warning", partial => 1,
content_text => $frame->function_name, popup_text => "Imprecise stackwalking"
)