Mojolicious Upgrade Problems

100 views
Skip to first unread message

Gary

unread,
Dec 6, 2011, 2:56:01 PM12/6/11
to Mojolicious
I'm trying to upgrade Mojolicious for a web application that currently
works great on Mojolicious 1.99. I ran into some problems with the
following Mojolicious versions:

2.00 (and up): $controller->tx is suddenly undefined in cases where it
was previously available
2.19 (and up): 2nd and subsequent hits (hypnotoad) generate the
following fatal error:
Use of uninitialized value in subroutine entry at /usr/lib/perl5/
site_perl/5.12.3/Mojolicious/Plugins.pm line 21.
[Tue Dec 6 09:19:12 2011] [fatal] Processing request failed: Can't
use string ("") as a subroutine ref while "strict refs" in use at /usr/
lib/perl5/site_perl/5.12.3/Mojolicious/Plugins.pm line 21.

Unfortunately I'm unable to post the code since I don't have
permission to do so, and it's a large application so that would
probably be overkill anyways. I attempted to come up with a short
example that exposes these problems, but had no luck.

Can anyone offer any hints? Has anyone else ran into these issues?

sri

unread,
Dec 6, 2011, 2:59:19 PM12/6/11
to Mojolicious

sri

unread,
Dec 6, 2011, 3:05:27 PM12/6/11
to Mojolicious
That said, chances of this being a bug are small, you might have been
depending on a memory leak, but without a proper report it's
impossible to know for sure.

--
sebastian

sri

unread,
Dec 6, 2011, 4:09:40 PM12/6/11
to Mojolicious
And to be more specific, i bet if you comment out this line your
application will work but leak memory all over the place.

https://github.com/kraih/mojo/blob/master/lib/Mojolicious.pm#L176

--
sebastian

Gary

unread,
Dec 6, 2011, 7:06:25 PM12/6/11
to Mojolicious
Thanks for the suggestions - much appreciated
Reply all
Reply to author
Forward
0 new messages