You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mahout.apache.org by "Sean Owen (Resolved) (JIRA)" <ji...@apache.org> on 2012/02/07 22:52:59 UTC

[jira] [Resolved] (MAHOUT-951) StackOverflow Error when using mahout lucene.vector

     [ https://issues.apache.org/jira/browse/MAHOUT-951?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Sean Owen resolved MAHOUT-951.
------------------------------

       Resolution: Fixed
    Fix Version/s: 0.7
         Assignee: Sean Owen

Works for me, and it's a good step forward.
                
> StackOverflow Error when using mahout lucene.vector
> ---------------------------------------------------
>
>                 Key: MAHOUT-951
>                 URL: https://issues.apache.org/jira/browse/MAHOUT-951
>             Project: Mahout
>          Issue Type: Bug
>          Components: Integration
>    Affects Versions: 0.6
>         Environment: presumably would occur on any platform given the same data.
>            Reporter: Paul Rudin
>            Assignee: Sean Owen
>              Labels: patch
>             Fix For: 0.7
>
>         Attachments: 951.patch
>
>
> Running mahout lucene.vector can result in a java StackOverFlowError.
> I think this is probably because the current implementation of LuceneIterator.computeNext() is recursive and with appropriate data the stack becomes too large. The recursion only occurs when you hit a document that doesn't have termvectors in the specified field - so you need a lucene.index with lots of documents lacking such in order to hit this problem.
> I've made minimal changes to convert to a loop rather than recurse and I'll attach a patch to this ticket.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira