NoMemoryError in `time_zone_select'

Bug #1458636 reported by Thomas Vidal
18
This bug affects 4 people
Affects Status Importance Assigned to Milestone
redmine (Ubuntu)
Confirmed
Medium
Unassigned

Bug Description

After a fresh install, every time I try to access a user configuration page (/my/account or /users/new), I get this error (see below).
This link fixed it: http://serverfault.com/questions/693627/redmine-500-internal-server-error-on-my-account-page
Compatible versions of tzinfo and tzinfo-data should be in the depends list, I think.

Started GET "/redmine/my/account" for 127.0.0.1 at 2015-05-25 17:24:52 +0200
Processing by MyController#account as HTML
  Current user: admin (id=1)
  Rendered users/_mail_notifications.html.erb (4.0ms)
  Rendered users/_preferences.html.erb (45.1ms)
  Rendered my/account.html.erb within layouts/base (55.2ms)
Completed 500 Internal Server Error in 60ms

NoMemoryError (failed to allocate memory):
  lib/redmine/views/labelled_form_builder.rb:42:in `time_zone_select'
  app/views/users/_preferences.html.erb:3:in `block in _app_views_users__preferences_html_erb___2348714999204196128_69980838069320'
  app/helpers/application_helper.rb:1051:in `labelled_fields_for'
  app/views/users/_preferences.html.erb:1:in `_app_views_users__preferences_html_erb___2348714999204196128_69980838069320'
  app/views/my/account.html.erb:43:in `block in _app_views_my_account_html_erb__4536515875185031721_69980838870060'
  app/helpers/application_helper.rb:1044:in `labelled_form_for'
  app/views/my/account.html.erb:9:in `_app_views_my_account_html_erb__4536515875185031721_69980838870060'

ProblemType: Bug
DistroRelease: Ubuntu 15.04
Package: redmine 3.0~20140825-5
ProcVersionSignature: Ubuntu 3.19.0-18.18-generic 3.19.6
Uname: Linux 3.19.0-18-generic x86_64
NonfreeKernelModules: nvidia
ApportVersion: 2.17.2-0ubuntu1.1
Architecture: amd64
CurrentDesktop: KDE
Date: Mon May 25 19:18:38 2015
InstallationDate: Installed on 2012-04-28 (1121 days ago)
InstallationMedia: Kubuntu 12.04 LTS "Precise Pangolin" - Release amd64 (20120423)
PackageArchitecture: all
SourcePackage: redmine
UpgradeStatus: Upgraded to vivid on 2015-04-25 (30 days ago)

Revision history for this message
Thomas Vidal (thomas-vidal1) wrote :
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in redmine (Ubuntu):
status: New → Confirmed
Changed in redmine (Ubuntu):
importance: Undecided → Medium
Revision history for this message
Vitaly Chekryzhev (13hakta) wrote :

I've solved this problem by manually setting timezone in config/application.rb
Uncomment line with "config.time_zone" and write in correct zone name.

Revision history for this message
Jakub Pawlewicz (pan-mimuw) wrote :

This manual solution doesn't work for me. I got an error:

Started GET "/redmine/users/3/edit" for 127.0.0.1 at 2015-08-21 10:32:52 +0200
Processing by UsersController#edit as HTML
  Parameters: {"id"=>"3"}
  Current user: admin (id=1)
  Rendered users/_mail_notifications.html.erb (109.4ms)
  Rendered users/_preferences.html.erb (162.1ms)
  Rendered users/_form.html.erb (2797.9ms)
  Rendered users/_general.html.erb (2801.1ms)
  Rendered common/_tabs.html.erb (2804.5ms)
  Rendered users/edit.html.erb within layouts/admin (2817.4ms)
Completed 500 Internal Server Error in 2858ms

NoMemoryError (failed to allocate memory):
  lib/redmine/views/labelled_form_builder.rb:42:in `time_zone_select'
  app/views/users/_preferences.html.erb:3:in `block in _app_views_users__prefere
  app/helpers/application_helper.rb:1051:in `labelled_fields_for'
  app/views/users/_preferences.html.erb:1:in `_app_views_users__preferences_html
  app/views/users/_form.html.erb:50:in `_app_views_users__form_html_erb___275614
  app/views/users/_general.html.erb:2:in `block in _app_views_users__general_htm
  app/helpers/application_helper.rb:1044:in `labelled_form_for'
  app/views/users/_general.html.erb:1:in `_app_views_users__general_html_erb__27
  app/views/common/_tabs.html.erb:22:in `block in _app_views_common__tabs_html_e
  app/views/common/_tabs.html.erb:21:in `each'
  app/views/common/_tabs.html.erb:21:in `_app_views_common__tabs_html_erb___2017
  app/helpers/application_helper.rb:319:in `render_tabs'
  app/views/users/edit.html.erb:9:in `_app_views_users_edit_html_erb__1777885464

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.