Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

stack level too deep error #41

Closed
kay54068 opened this issue May 26, 2017 · 4 comments
Closed

stack level too deep error #41

kay54068 opened this issue May 26, 2017 · 4 comments
Assignees
Labels
Milestone

Comments

@kay54068
Copy link

hi ,
i get stack level too deep in redmine v3.3

@two-pack
Copy link
Owner

Please write detail of the problem, tracelog, version, your operation, etc.

@two-pack
Copy link
Owner

I canot repoduce error on Redmine 3.3.3.
Please write details with seeing following.
https://github.com/two-pack/redmine_xlsx_format_issue_exporter/wiki/How-to-report-issue

@martin-s
Copy link

martin-s commented Jun 6, 2017

  1. What's happened?
    Action: Click on Project issue page (e.g. http://localhost/redmine/projects/myrepo/issues)

  2. What's problem?
    HTTP GET returns error code 500
    Server log:

Processing by IssuesController#index as HTML
  Parameters: {"set_filter"=>"1", "project_id"=>"myrepo"}
  Current user: admin (id=1)
Completed 500 Internal Server Error in 78ms (ActiveRecord: 0.0ms)

SystemStackError (stack level too deep):
  activerecord (4.2.7.1) lib/active_record/connection_adapters/abstract/connection_pool.rb:661
  1. What do you want the result from this plugin?
    It should display the issue page

  2. How to reproduce the issue? If you cannot it, write step by step as known as possible.
    $ cd plugins
    $ git clone https://github.com/two-pack/redmine_xlsx_format_issue_exporter.git
    $ cd ..
    $ bundle install --without test

  3. MUST write Redmine information from Administration > Information.
    Environment:
    Redmine version 3.3.3.stable
    Ruby version 2.1.9-p490 (2016-03-30) [i386-mingw32]
    Rails version 4.2.7.1
    Environment production
    Database adapter Mysql2

Redmine plugins:
a_common_libs 2.3.0
ajax_counters 1.5.0
extra_queries 2.2.8
global_roles 2.2.0
redmine_issue_tabs 1.2.3
redmine_xlsx_format_issue_exporter 0.1.3
rm_user_mentions 1.0.0
unread_issues 2.1.2

@two-pack two-pack self-assigned this Jun 6, 2017
@two-pack two-pack added this to the 0.1.4 milestone Jun 6, 2017
@two-pack
Copy link
Owner

two-pack commented Jun 6, 2017

This problem is caused with extra_queries plugin.
extra_queries plugin's issues_controller_patch.rb uses alias_method_chain, and XLSX format issue exporter uses prepend for patch.
This combination sometimes causes SystemStackError, see following links.

alias_method_chain will be deprecated on Rails 5, see rails/rails#19434.
So I think this problem should be fixed by extra_queries plugin.

Note:
https://bugs.ruby-lang.org/issues/11120
http://eagletmt.hateblo.jp/entry/2016/02/17/201048

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants