`transition': failed to allocate memory (NoMemoryError) #30

Closed
jonatasdlp opened this Issue Oct 4, 2014 · 2 comments

Comments

Projects
None yet
2 participants
@jonatasdlp

Hi,

When i'm run the local server (webrick or puma), the following error occurs.
/my_home/.rvm/gems/ruby-2.1.3/gems/tzinfo-1.1.0/lib/tzinfo/transition_data_timezone_info.rb:79:in `transition ': failed to allocate memory (NoMemoryError)

This error occurs using another ruby version (2.0.0, 2.1.2).

Solution?

@jonatasdlp jonatasdlp changed the title from `transition': failed to allocate memory (NoMemoryError to `transition': failed to allocate memory (NoMemoryError) Oct 4, 2014

@philr

This comment has been minimized.

Show comment
Hide comment
@philr

philr Oct 4, 2014

Member

TZInfo v1.2.1 included a fix for an issue like this when loading zoneinfo files generated with zic version 2014c and later.

It looks like you are using an older version of TZInfo (1.1.0), so it would be a good idea to try updating to the latest release (currently v1.2.2).

If you can't upgrade TZInfo, you could try installing the tzinfo-data gem instead (e.g, but adding gem 'tzinfo-data' it to your Gemfile). This will make TZInfo use tzinfo-data as its DataSource instead of your system zoneinfo files.

If neither of these suggestions help, then I'll need more information to help diagnose the problem (full stack trace, details of the time zone being loaded, the configured data source, etc).

Member

philr commented Oct 4, 2014

TZInfo v1.2.1 included a fix for an issue like this when loading zoneinfo files generated with zic version 2014c and later.

It looks like you are using an older version of TZInfo (1.1.0), so it would be a good idea to try updating to the latest release (currently v1.2.2).

If you can't upgrade TZInfo, you could try installing the tzinfo-data gem instead (e.g, but adding gem 'tzinfo-data' it to your Gemfile). This will make TZInfo use tzinfo-data as its DataSource instead of your system zoneinfo files.

If neither of these suggestions help, then I'll need more information to help diagnose the problem (full stack trace, details of the time zone being loaded, the configured data source, etc).

@jonatasdlp

This comment has been minimized.

Show comment
Hide comment

Thanks

@philr philr added the question label Oct 4, 2014

@philr philr closed this Oct 4, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment