Skip to content

Instantly share code, notes, and snippets.

@jamadam
Created January 27, 2016 15:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jamadam/b608cf5ad73c190bde03 to your computer and use it in GitHub Desktop.
Save jamadam/b608cf5ad73c190bde03 to your computer and use it in GitHub Desktop.
Minimum reproduction code for '(in cleanup) Can't use an undefined value as a symbol reference at lib/Mojo/Asset/File.pm line 43 during global destruction.'
use strict;
use warnings;
use Mojo::IOLoop;
use Mojo::Asset::File;
my @files;
my $id;
$id = Mojo::IOLoop->recurring(0, sub {
my $file = Mojo::Asset::File->new;
$file->add_chunk('');
push(@files, $file);
Mojo::IOLoop->stop if $#files > 3;
});
Mojo::IOLoop->start;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment