You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@nutch.apache.org by "Tim Hawkins (JIRA)" <ji...@apache.org> on 2009/03/03 14:26:56 UTC
[jira] Created: (NUTCH-709) JSParseFilter gets into an infinate
loop and ets all the stack
JSParseFilter gets into an infinate loop and ets all the stack
---------------------------------------------------------------
Key: NUTCH-709
URL: https://issues.apache.org/jira/browse/NUTCH-709
Project: Nutch
Issue Type: Bug
Components: fetcher
Affects Versions: 1.0.0
Environment: Hadoop 0.19.0 running nutch trunk
Reporter: Tim Hawkins
When crawling pages with seperate fetch and parse, I see processes die becuase of stack overflow.
Output is generaly.
java.lang.StackOverflowError
at org.apache.nutch.parse.js.JSParseFilter.walk(JSParseFilter.java:146)
at org.apache.nutch.parse.js.JSParseFilter.walk(JSParseFilter.java:148)
at org.apache.nutch.parse.js.JSParseFilter.walk(JSParseFilter.java:148)
at org.apache.nutch.parse.js.JSParseFilter.walk(JSParseFilter.java:148)
at org.apache.nutch.parse.js.JSParseFilter.walk(JSParseFilter.java:148)
at org.apache.nutch.parse.js.JSParseFilter.walk(JSParseFilter.java:148)
at org.apache.nutch.parse.js.JSParseFilter.walk(JSParseFilter.java:148)
at org.apache.nutch.parse.js.JSParseFilter.walk(JSParseFilter.java:148)
at org.apache.nutch.parse.js.JSParseFilter.walk(JSParseFilter.java:148)
at org.apache.nutch.parse.js.JSParseFilter.walk(JSParseFilter.java:148)
at org.apache.nutch.parse.js.JSParseFilter.walk(JSParseFilter.java:148)
at org.apache.nutch.parse.js.JSParseFilter.walk(JSParseFilter.java:148)
at org.apache.nutch.parse.js.JSParseFilter.walk(JSParseFilter.java:148)
at org.apache.nutch.parse.js.JSParseFilter.walk(JSParseFilter.java:148)
at org.apache.nutch.parse.js.JSParseFilter.walk(JSParseFilter.java:148)
at org.apache.nutch.parse.js.JSParseFilter.walk(JSParseFilter.java:148)
at org.apache.nutch.parse.js.JSParseFilter.walk(JSParseFilter.java:148)
at org.apache.nutch.parse.js.JSParseFilter.walk(JSParseFilter.java:148)
at org.apache.nutch.parse.js.JSParseFilter.walk(JSParseFilter.java:148)
Inspection of the code shows that this is a recursive call to walk(.....)
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (NUTCH-709) JSParseFilter gets into an infinate
loop and ets all the stack
Posted by "Jeff Shafer (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/NUTCH-709?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12702915#action_12702915 ]
Jeff Shafer commented on NUTCH-709:
-----------------------------------
I can confirm that this patch works when applied to nutch-1.0 (release) running on hadoop 0.19.1. I encountered the same stack overflow error with a custom max content length of 4MB. Tim, I tried looking through the logs to find the URL that was causing the problem, but did not see anything entries of interest. (I fetch first, and then parse, so perhaps I won't see the URL in that case? The only output I get from the parser is related to PDF files)
> JSParseFilter gets into an infinate loop and ets all the stack
> ---------------------------------------------------------------
>
> Key: NUTCH-709
> URL: https://issues.apache.org/jira/browse/NUTCH-709
> Project: Nutch
> Issue Type: Bug
> Components: fetcher
> Affects Versions: 1.0.0
> Environment: Hadoop 0.19.0 running nutch trunk
> Reporter: Tim Hawkins
> Attachments: JSParseFilter.error.patch
>
>
> When crawling pages with seperate fetch and parse, I see processes die becuase of stack overflow.
> Output is generaly.
> java.lang.StackOverflowError
> at org.apache.nutch.parse.js.JSParseFilter.walk(JSParseFilter.java:146)
> at org.apache.nutch.parse.js.JSParseFilter.walk(JSParseFilter.java:148)
> at org.apache.nutch.parse.js.JSParseFilter.walk(JSParseFilter.java:148)
> at org.apache.nutch.parse.js.JSParseFilter.walk(JSParseFilter.java:148)
> at org.apache.nutch.parse.js.JSParseFilter.walk(JSParseFilter.java:148)
> at org.apache.nutch.parse.js.JSParseFilter.walk(JSParseFilter.java:148)
> at org.apache.nutch.parse.js.JSParseFilter.walk(JSParseFilter.java:148)
> at org.apache.nutch.parse.js.JSParseFilter.walk(JSParseFilter.java:148)
> at org.apache.nutch.parse.js.JSParseFilter.walk(JSParseFilter.java:148)
> at org.apache.nutch.parse.js.JSParseFilter.walk(JSParseFilter.java:148)
> at org.apache.nutch.parse.js.JSParseFilter.walk(JSParseFilter.java:148)
> at org.apache.nutch.parse.js.JSParseFilter.walk(JSParseFilter.java:148)
> at org.apache.nutch.parse.js.JSParseFilter.walk(JSParseFilter.java:148)
> at org.apache.nutch.parse.js.JSParseFilter.walk(JSParseFilter.java:148)
> at org.apache.nutch.parse.js.JSParseFilter.walk(JSParseFilter.java:148)
> at org.apache.nutch.parse.js.JSParseFilter.walk(JSParseFilter.java:148)
> at org.apache.nutch.parse.js.JSParseFilter.walk(JSParseFilter.java:148)
> at org.apache.nutch.parse.js.JSParseFilter.walk(JSParseFilter.java:148)
> at org.apache.nutch.parse.js.JSParseFilter.walk(JSParseFilter.java:148)
> Inspection of the code shows that this is a recursive call to walk(.....)
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (NUTCH-709) JSParseFilter gets into an infinate
loop and ets all the stack
Posted by "Julien Nioche (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/NUTCH-709?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12679549#action_12679549 ]
Julien Nioche commented on NUTCH-709:
-------------------------------------
Hi Tim,
did you have a look at the logs to see which URL was causing the problem in the first place? do you specify a custom max length for the content to be fetched?
Martina's example above is 428.42 kB which is far beyond the default max length, I am wondering whether the problem you found could be related to the fact that long documents are trimmed to the max length.
> JSParseFilter gets into an infinate loop and ets all the stack
> ---------------------------------------------------------------
>
> Key: NUTCH-709
> URL: https://issues.apache.org/jira/browse/NUTCH-709
> Project: Nutch
> Issue Type: Bug
> Components: fetcher
> Affects Versions: 1.0.0
> Environment: Hadoop 0.19.0 running nutch trunk
> Reporter: Tim Hawkins
> Attachments: JSParseFilter.error.patch
>
>
> When crawling pages with seperate fetch and parse, I see processes die becuase of stack overflow.
> Output is generaly.
> java.lang.StackOverflowError
> at org.apache.nutch.parse.js.JSParseFilter.walk(JSParseFilter.java:146)
> at org.apache.nutch.parse.js.JSParseFilter.walk(JSParseFilter.java:148)
> at org.apache.nutch.parse.js.JSParseFilter.walk(JSParseFilter.java:148)
> at org.apache.nutch.parse.js.JSParseFilter.walk(JSParseFilter.java:148)
> at org.apache.nutch.parse.js.JSParseFilter.walk(JSParseFilter.java:148)
> at org.apache.nutch.parse.js.JSParseFilter.walk(JSParseFilter.java:148)
> at org.apache.nutch.parse.js.JSParseFilter.walk(JSParseFilter.java:148)
> at org.apache.nutch.parse.js.JSParseFilter.walk(JSParseFilter.java:148)
> at org.apache.nutch.parse.js.JSParseFilter.walk(JSParseFilter.java:148)
> at org.apache.nutch.parse.js.JSParseFilter.walk(JSParseFilter.java:148)
> at org.apache.nutch.parse.js.JSParseFilter.walk(JSParseFilter.java:148)
> at org.apache.nutch.parse.js.JSParseFilter.walk(JSParseFilter.java:148)
> at org.apache.nutch.parse.js.JSParseFilter.walk(JSParseFilter.java:148)
> at org.apache.nutch.parse.js.JSParseFilter.walk(JSParseFilter.java:148)
> at org.apache.nutch.parse.js.JSParseFilter.walk(JSParseFilter.java:148)
> at org.apache.nutch.parse.js.JSParseFilter.walk(JSParseFilter.java:148)
> at org.apache.nutch.parse.js.JSParseFilter.walk(JSParseFilter.java:148)
> at org.apache.nutch.parse.js.JSParseFilter.walk(JSParseFilter.java:148)
> at org.apache.nutch.parse.js.JSParseFilter.walk(JSParseFilter.java:148)
> Inspection of the code shows that this is a recursive call to walk(.....)
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (NUTCH-709) JSParseFilter gets into an infinate
loop and ets all the stack
Posted by "Tim Hawkins (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/NUTCH-709?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12679468#action_12679468 ]
Tim Hawkins commented on NUTCH-709:
-----------------------------------
I can now confirm that this workaround allows the parse to complete
Sorry it took so long to get back to you.
> JSParseFilter gets into an infinate loop and ets all the stack
> ---------------------------------------------------------------
>
> Key: NUTCH-709
> URL: https://issues.apache.org/jira/browse/NUTCH-709
> Project: Nutch
> Issue Type: Bug
> Components: fetcher
> Affects Versions: 1.0.0
> Environment: Hadoop 0.19.0 running nutch trunk
> Reporter: Tim Hawkins
> Attachments: JSParseFilter.error.patch
>
>
> When crawling pages with seperate fetch and parse, I see processes die becuase of stack overflow.
> Output is generaly.
> java.lang.StackOverflowError
> at org.apache.nutch.parse.js.JSParseFilter.walk(JSParseFilter.java:146)
> at org.apache.nutch.parse.js.JSParseFilter.walk(JSParseFilter.java:148)
> at org.apache.nutch.parse.js.JSParseFilter.walk(JSParseFilter.java:148)
> at org.apache.nutch.parse.js.JSParseFilter.walk(JSParseFilter.java:148)
> at org.apache.nutch.parse.js.JSParseFilter.walk(JSParseFilter.java:148)
> at org.apache.nutch.parse.js.JSParseFilter.walk(JSParseFilter.java:148)
> at org.apache.nutch.parse.js.JSParseFilter.walk(JSParseFilter.java:148)
> at org.apache.nutch.parse.js.JSParseFilter.walk(JSParseFilter.java:148)
> at org.apache.nutch.parse.js.JSParseFilter.walk(JSParseFilter.java:148)
> at org.apache.nutch.parse.js.JSParseFilter.walk(JSParseFilter.java:148)
> at org.apache.nutch.parse.js.JSParseFilter.walk(JSParseFilter.java:148)
> at org.apache.nutch.parse.js.JSParseFilter.walk(JSParseFilter.java:148)
> at org.apache.nutch.parse.js.JSParseFilter.walk(JSParseFilter.java:148)
> at org.apache.nutch.parse.js.JSParseFilter.walk(JSParseFilter.java:148)
> at org.apache.nutch.parse.js.JSParseFilter.walk(JSParseFilter.java:148)
> at org.apache.nutch.parse.js.JSParseFilter.walk(JSParseFilter.java:148)
> at org.apache.nutch.parse.js.JSParseFilter.walk(JSParseFilter.java:148)
> at org.apache.nutch.parse.js.JSParseFilter.walk(JSParseFilter.java:148)
> at org.apache.nutch.parse.js.JSParseFilter.walk(JSParseFilter.java:148)
> Inspection of the code shows that this is a recursive call to walk(.....)
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (NUTCH-709) JSParseFilter gets into an infinate
loop and ets all the stack
Posted by "Doğacan Güney (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/NUTCH-709?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12717057#action_12717057 ]
Doğacan Güney commented on NUTCH-709:
-------------------------------------
-1 for the patch. As Julien notes, the patch simply catches the error. I would suggest adding a depth counter instead. I don't think that there will be any half-sane HTML page out there with more than, say, 100 levels.
Alternatively, we may try using NodeWalker.
> JSParseFilter gets into an infinate loop and ets all the stack
> ---------------------------------------------------------------
>
> Key: NUTCH-709
> URL: https://issues.apache.org/jira/browse/NUTCH-709
> Project: Nutch
> Issue Type: Bug
> Components: fetcher
> Affects Versions: 1.0.0
> Environment: Hadoop 0.19.0 running nutch trunk
> Reporter: Tim Hawkins
> Attachments: JSParseFilter.error.patch
>
>
> When crawling pages with seperate fetch and parse, I see processes die becuase of stack overflow.
> Output is generaly.
> java.lang.StackOverflowError
> at org.apache.nutch.parse.js.JSParseFilter.walk(JSParseFilter.java:146)
> at org.apache.nutch.parse.js.JSParseFilter.walk(JSParseFilter.java:148)
> at org.apache.nutch.parse.js.JSParseFilter.walk(JSParseFilter.java:148)
> at org.apache.nutch.parse.js.JSParseFilter.walk(JSParseFilter.java:148)
> at org.apache.nutch.parse.js.JSParseFilter.walk(JSParseFilter.java:148)
> at org.apache.nutch.parse.js.JSParseFilter.walk(JSParseFilter.java:148)
> at org.apache.nutch.parse.js.JSParseFilter.walk(JSParseFilter.java:148)
> at org.apache.nutch.parse.js.JSParseFilter.walk(JSParseFilter.java:148)
> at org.apache.nutch.parse.js.JSParseFilter.walk(JSParseFilter.java:148)
> at org.apache.nutch.parse.js.JSParseFilter.walk(JSParseFilter.java:148)
> at org.apache.nutch.parse.js.JSParseFilter.walk(JSParseFilter.java:148)
> at org.apache.nutch.parse.js.JSParseFilter.walk(JSParseFilter.java:148)
> at org.apache.nutch.parse.js.JSParseFilter.walk(JSParseFilter.java:148)
> at org.apache.nutch.parse.js.JSParseFilter.walk(JSParseFilter.java:148)
> at org.apache.nutch.parse.js.JSParseFilter.walk(JSParseFilter.java:148)
> at org.apache.nutch.parse.js.JSParseFilter.walk(JSParseFilter.java:148)
> at org.apache.nutch.parse.js.JSParseFilter.walk(JSParseFilter.java:148)
> at org.apache.nutch.parse.js.JSParseFilter.walk(JSParseFilter.java:148)
> at org.apache.nutch.parse.js.JSParseFilter.walk(JSParseFilter.java:148)
> Inspection of the code shows that this is a recursive call to walk(.....)
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Issue Comment Edited: (NUTCH-709) JSParseFilter gets into an
infinate loop and ets all the stack
Posted by "Jeff Shafer (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/NUTCH-709?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12702915#action_12702915 ]
Jeff Shafer edited comment on NUTCH-709 at 4/26/09 11:42 AM:
-------------------------------------------------------------
I can confirm that this patch works when applied to nutch-1.0 (release) running on hadoop 0.19.1. I encountered the same stack overflow error with a custom max content length of 4MB. Julien, I tried looking through the logs to find the URL that was causing the problem, but did not see anything entries of interest. (I fetch first, and then parse, so perhaps I won't see the URL in that case? The only output I get from the parser is related to PDF files)
was (Author: shafer):
I can confirm that this patch works when applied to nutch-1.0 (release) running on hadoop 0.19.1. I encountered the same stack overflow error with a custom max content length of 4MB. Tim, I tried looking through the logs to find the URL that was causing the problem, but did not see anything entries of interest. (I fetch first, and then parse, so perhaps I won't see the URL in that case? The only output I get from the parser is related to PDF files)
> JSParseFilter gets into an infinate loop and ets all the stack
> ---------------------------------------------------------------
>
> Key: NUTCH-709
> URL: https://issues.apache.org/jira/browse/NUTCH-709
> Project: Nutch
> Issue Type: Bug
> Components: fetcher
> Affects Versions: 1.0.0
> Environment: Hadoop 0.19.0 running nutch trunk
> Reporter: Tim Hawkins
> Attachments: JSParseFilter.error.patch
>
>
> When crawling pages with seperate fetch and parse, I see processes die becuase of stack overflow.
> Output is generaly.
> java.lang.StackOverflowError
> at org.apache.nutch.parse.js.JSParseFilter.walk(JSParseFilter.java:146)
> at org.apache.nutch.parse.js.JSParseFilter.walk(JSParseFilter.java:148)
> at org.apache.nutch.parse.js.JSParseFilter.walk(JSParseFilter.java:148)
> at org.apache.nutch.parse.js.JSParseFilter.walk(JSParseFilter.java:148)
> at org.apache.nutch.parse.js.JSParseFilter.walk(JSParseFilter.java:148)
> at org.apache.nutch.parse.js.JSParseFilter.walk(JSParseFilter.java:148)
> at org.apache.nutch.parse.js.JSParseFilter.walk(JSParseFilter.java:148)
> at org.apache.nutch.parse.js.JSParseFilter.walk(JSParseFilter.java:148)
> at org.apache.nutch.parse.js.JSParseFilter.walk(JSParseFilter.java:148)
> at org.apache.nutch.parse.js.JSParseFilter.walk(JSParseFilter.java:148)
> at org.apache.nutch.parse.js.JSParseFilter.walk(JSParseFilter.java:148)
> at org.apache.nutch.parse.js.JSParseFilter.walk(JSParseFilter.java:148)
> at org.apache.nutch.parse.js.JSParseFilter.walk(JSParseFilter.java:148)
> at org.apache.nutch.parse.js.JSParseFilter.walk(JSParseFilter.java:148)
> at org.apache.nutch.parse.js.JSParseFilter.walk(JSParseFilter.java:148)
> at org.apache.nutch.parse.js.JSParseFilter.walk(JSParseFilter.java:148)
> at org.apache.nutch.parse.js.JSParseFilter.walk(JSParseFilter.java:148)
> at org.apache.nutch.parse.js.JSParseFilter.walk(JSParseFilter.java:148)
> at org.apache.nutch.parse.js.JSParseFilter.walk(JSParseFilter.java:148)
> Inspection of the code shows that this is a recursive call to walk(.....)
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (NUTCH-709) JSParseFilter gets into an infinate
loop and ets all the stack
Posted by "Tim Hawkins (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/NUTCH-709?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12678335#action_12678335 ]
Tim Hawkins commented on NUTCH-709:
-----------------------------------
Ill install this on our rig and test it and get back to you
> JSParseFilter gets into an infinate loop and ets all the stack
> ---------------------------------------------------------------
>
> Key: NUTCH-709
> URL: https://issues.apache.org/jira/browse/NUTCH-709
> Project: Nutch
> Issue Type: Bug
> Components: fetcher
> Affects Versions: 1.0.0
> Environment: Hadoop 0.19.0 running nutch trunk
> Reporter: Tim Hawkins
> Attachments: JSParseFilter.error.patch
>
>
> When crawling pages with seperate fetch and parse, I see processes die becuase of stack overflow.
> Output is generaly.
> java.lang.StackOverflowError
> at org.apache.nutch.parse.js.JSParseFilter.walk(JSParseFilter.java:146)
> at org.apache.nutch.parse.js.JSParseFilter.walk(JSParseFilter.java:148)
> at org.apache.nutch.parse.js.JSParseFilter.walk(JSParseFilter.java:148)
> at org.apache.nutch.parse.js.JSParseFilter.walk(JSParseFilter.java:148)
> at org.apache.nutch.parse.js.JSParseFilter.walk(JSParseFilter.java:148)
> at org.apache.nutch.parse.js.JSParseFilter.walk(JSParseFilter.java:148)
> at org.apache.nutch.parse.js.JSParseFilter.walk(JSParseFilter.java:148)
> at org.apache.nutch.parse.js.JSParseFilter.walk(JSParseFilter.java:148)
> at org.apache.nutch.parse.js.JSParseFilter.walk(JSParseFilter.java:148)
> at org.apache.nutch.parse.js.JSParseFilter.walk(JSParseFilter.java:148)
> at org.apache.nutch.parse.js.JSParseFilter.walk(JSParseFilter.java:148)
> at org.apache.nutch.parse.js.JSParseFilter.walk(JSParseFilter.java:148)
> at org.apache.nutch.parse.js.JSParseFilter.walk(JSParseFilter.java:148)
> at org.apache.nutch.parse.js.JSParseFilter.walk(JSParseFilter.java:148)
> at org.apache.nutch.parse.js.JSParseFilter.walk(JSParseFilter.java:148)
> at org.apache.nutch.parse.js.JSParseFilter.walk(JSParseFilter.java:148)
> at org.apache.nutch.parse.js.JSParseFilter.walk(JSParseFilter.java:148)
> at org.apache.nutch.parse.js.JSParseFilter.walk(JSParseFilter.java:148)
> at org.apache.nutch.parse.js.JSParseFilter.walk(JSParseFilter.java:148)
> Inspection of the code shows that this is a recursive call to walk(.....)
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (NUTCH-709) JSParseFilter gets into an infinate
loop and ets all the stack
Posted by "Julien Nioche (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/NUTCH-709?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Julien Nioche updated NUTCH-709:
--------------------------------
Attachment: JSParseFilter.error.patch
This patch catches errors in the walk method of JSParser and returns instead of breaking the whole job
> JSParseFilter gets into an infinate loop and ets all the stack
> ---------------------------------------------------------------
>
> Key: NUTCH-709
> URL: https://issues.apache.org/jira/browse/NUTCH-709
> Project: Nutch
> Issue Type: Bug
> Components: fetcher
> Affects Versions: 1.0.0
> Environment: Hadoop 0.19.0 running nutch trunk
> Reporter: Tim Hawkins
> Attachments: JSParseFilter.error.patch
>
>
> When crawling pages with seperate fetch and parse, I see processes die becuase of stack overflow.
> Output is generaly.
> java.lang.StackOverflowError
> at org.apache.nutch.parse.js.JSParseFilter.walk(JSParseFilter.java:146)
> at org.apache.nutch.parse.js.JSParseFilter.walk(JSParseFilter.java:148)
> at org.apache.nutch.parse.js.JSParseFilter.walk(JSParseFilter.java:148)
> at org.apache.nutch.parse.js.JSParseFilter.walk(JSParseFilter.java:148)
> at org.apache.nutch.parse.js.JSParseFilter.walk(JSParseFilter.java:148)
> at org.apache.nutch.parse.js.JSParseFilter.walk(JSParseFilter.java:148)
> at org.apache.nutch.parse.js.JSParseFilter.walk(JSParseFilter.java:148)
> at org.apache.nutch.parse.js.JSParseFilter.walk(JSParseFilter.java:148)
> at org.apache.nutch.parse.js.JSParseFilter.walk(JSParseFilter.java:148)
> at org.apache.nutch.parse.js.JSParseFilter.walk(JSParseFilter.java:148)
> at org.apache.nutch.parse.js.JSParseFilter.walk(JSParseFilter.java:148)
> at org.apache.nutch.parse.js.JSParseFilter.walk(JSParseFilter.java:148)
> at org.apache.nutch.parse.js.JSParseFilter.walk(JSParseFilter.java:148)
> at org.apache.nutch.parse.js.JSParseFilter.walk(JSParseFilter.java:148)
> at org.apache.nutch.parse.js.JSParseFilter.walk(JSParseFilter.java:148)
> at org.apache.nutch.parse.js.JSParseFilter.walk(JSParseFilter.java:148)
> at org.apache.nutch.parse.js.JSParseFilter.walk(JSParseFilter.java:148)
> at org.apache.nutch.parse.js.JSParseFilter.walk(JSParseFilter.java:148)
> at org.apache.nutch.parse.js.JSParseFilter.walk(JSParseFilter.java:148)
> Inspection of the code shows that this is a recursive call to walk(.....)
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (NUTCH-709) JSParseFilter gets into an infinate
loop and ets all the stack
Posted by "Martina Koch (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/NUTCH-709?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12678319#action_12678319 ]
Martina Koch commented on NUTCH-709:
------------------------------------
I've had the same issue (see mail http://www.mail-archive.com/nutch-user@lucene.apache.org/msg13030.html).
URL: http://www.marktplatz-osterholz.de/Freizeit_Tourismus/index.html?navid=15
I introduced a counter to determine how many recursive steps, the parser has already done. The counter increases for every recursive call of the method walk and decreases when the walk method is left. If the counter reaches a specified limit (I used 900), it ignores the deeper levels. For me that worked. i don't know, if that's the correct approach, but at least the parser finishes without failure.
> JSParseFilter gets into an infinate loop and ets all the stack
> ---------------------------------------------------------------
>
> Key: NUTCH-709
> URL: https://issues.apache.org/jira/browse/NUTCH-709
> Project: Nutch
> Issue Type: Bug
> Components: fetcher
> Affects Versions: 1.0.0
> Environment: Hadoop 0.19.0 running nutch trunk
> Reporter: Tim Hawkins
>
> When crawling pages with seperate fetch and parse, I see processes die becuase of stack overflow.
> Output is generaly.
> java.lang.StackOverflowError
> at org.apache.nutch.parse.js.JSParseFilter.walk(JSParseFilter.java:146)
> at org.apache.nutch.parse.js.JSParseFilter.walk(JSParseFilter.java:148)
> at org.apache.nutch.parse.js.JSParseFilter.walk(JSParseFilter.java:148)
> at org.apache.nutch.parse.js.JSParseFilter.walk(JSParseFilter.java:148)
> at org.apache.nutch.parse.js.JSParseFilter.walk(JSParseFilter.java:148)
> at org.apache.nutch.parse.js.JSParseFilter.walk(JSParseFilter.java:148)
> at org.apache.nutch.parse.js.JSParseFilter.walk(JSParseFilter.java:148)
> at org.apache.nutch.parse.js.JSParseFilter.walk(JSParseFilter.java:148)
> at org.apache.nutch.parse.js.JSParseFilter.walk(JSParseFilter.java:148)
> at org.apache.nutch.parse.js.JSParseFilter.walk(JSParseFilter.java:148)
> at org.apache.nutch.parse.js.JSParseFilter.walk(JSParseFilter.java:148)
> at org.apache.nutch.parse.js.JSParseFilter.walk(JSParseFilter.java:148)
> at org.apache.nutch.parse.js.JSParseFilter.walk(JSParseFilter.java:148)
> at org.apache.nutch.parse.js.JSParseFilter.walk(JSParseFilter.java:148)
> at org.apache.nutch.parse.js.JSParseFilter.walk(JSParseFilter.java:148)
> at org.apache.nutch.parse.js.JSParseFilter.walk(JSParseFilter.java:148)
> at org.apache.nutch.parse.js.JSParseFilter.walk(JSParseFilter.java:148)
> at org.apache.nutch.parse.js.JSParseFilter.walk(JSParseFilter.java:148)
> at org.apache.nutch.parse.js.JSParseFilter.walk(JSParseFilter.java:148)
> Inspection of the code shows that this is a recursive call to walk(.....)
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (NUTCH-709) JSParseFilter gets into an infinate
loop and ets all the stack
Posted by "Julien Nioche (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/NUTCH-709?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12678314#action_12678314 ]
Julien Nioche commented on NUTCH-709:
-------------------------------------
do you know the URL of the document causing this problem?
> JSParseFilter gets into an infinate loop and ets all the stack
> ---------------------------------------------------------------
>
> Key: NUTCH-709
> URL: https://issues.apache.org/jira/browse/NUTCH-709
> Project: Nutch
> Issue Type: Bug
> Components: fetcher
> Affects Versions: 1.0.0
> Environment: Hadoop 0.19.0 running nutch trunk
> Reporter: Tim Hawkins
>
> When crawling pages with seperate fetch and parse, I see processes die becuase of stack overflow.
> Output is generaly.
> java.lang.StackOverflowError
> at org.apache.nutch.parse.js.JSParseFilter.walk(JSParseFilter.java:146)
> at org.apache.nutch.parse.js.JSParseFilter.walk(JSParseFilter.java:148)
> at org.apache.nutch.parse.js.JSParseFilter.walk(JSParseFilter.java:148)
> at org.apache.nutch.parse.js.JSParseFilter.walk(JSParseFilter.java:148)
> at org.apache.nutch.parse.js.JSParseFilter.walk(JSParseFilter.java:148)
> at org.apache.nutch.parse.js.JSParseFilter.walk(JSParseFilter.java:148)
> at org.apache.nutch.parse.js.JSParseFilter.walk(JSParseFilter.java:148)
> at org.apache.nutch.parse.js.JSParseFilter.walk(JSParseFilter.java:148)
> at org.apache.nutch.parse.js.JSParseFilter.walk(JSParseFilter.java:148)
> at org.apache.nutch.parse.js.JSParseFilter.walk(JSParseFilter.java:148)
> at org.apache.nutch.parse.js.JSParseFilter.walk(JSParseFilter.java:148)
> at org.apache.nutch.parse.js.JSParseFilter.walk(JSParseFilter.java:148)
> at org.apache.nutch.parse.js.JSParseFilter.walk(JSParseFilter.java:148)
> at org.apache.nutch.parse.js.JSParseFilter.walk(JSParseFilter.java:148)
> at org.apache.nutch.parse.js.JSParseFilter.walk(JSParseFilter.java:148)
> at org.apache.nutch.parse.js.JSParseFilter.walk(JSParseFilter.java:148)
> at org.apache.nutch.parse.js.JSParseFilter.walk(JSParseFilter.java:148)
> at org.apache.nutch.parse.js.JSParseFilter.walk(JSParseFilter.java:148)
> at org.apache.nutch.parse.js.JSParseFilter.walk(JSParseFilter.java:148)
> Inspection of the code shows that this is a recursive call to walk(.....)
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (NUTCH-709) JSParseFilter gets into an infinate
loop and ets all the stack
Posted by "Tim Hawkins (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/NUTCH-709?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12678316#action_12678316 ]
Tim Hawkins commented on NUTCH-709:
-----------------------------------
afraid not, its happened several hours into a crawl, so i'm not sure
where it was
> JSParseFilter gets into an infinate loop and ets all the stack
> ---------------------------------------------------------------
>
> Key: NUTCH-709
> URL: https://issues.apache.org/jira/browse/NUTCH-709
> Project: Nutch
> Issue Type: Bug
> Components: fetcher
> Affects Versions: 1.0.0
> Environment: Hadoop 0.19.0 running nutch trunk
> Reporter: Tim Hawkins
>
> When crawling pages with seperate fetch and parse, I see processes die becuase of stack overflow.
> Output is generaly.
> java.lang.StackOverflowError
> at org.apache.nutch.parse.js.JSParseFilter.walk(JSParseFilter.java:146)
> at org.apache.nutch.parse.js.JSParseFilter.walk(JSParseFilter.java:148)
> at org.apache.nutch.parse.js.JSParseFilter.walk(JSParseFilter.java:148)
> at org.apache.nutch.parse.js.JSParseFilter.walk(JSParseFilter.java:148)
> at org.apache.nutch.parse.js.JSParseFilter.walk(JSParseFilter.java:148)
> at org.apache.nutch.parse.js.JSParseFilter.walk(JSParseFilter.java:148)
> at org.apache.nutch.parse.js.JSParseFilter.walk(JSParseFilter.java:148)
> at org.apache.nutch.parse.js.JSParseFilter.walk(JSParseFilter.java:148)
> at org.apache.nutch.parse.js.JSParseFilter.walk(JSParseFilter.java:148)
> at org.apache.nutch.parse.js.JSParseFilter.walk(JSParseFilter.java:148)
> at org.apache.nutch.parse.js.JSParseFilter.walk(JSParseFilter.java:148)
> at org.apache.nutch.parse.js.JSParseFilter.walk(JSParseFilter.java:148)
> at org.apache.nutch.parse.js.JSParseFilter.walk(JSParseFilter.java:148)
> at org.apache.nutch.parse.js.JSParseFilter.walk(JSParseFilter.java:148)
> at org.apache.nutch.parse.js.JSParseFilter.walk(JSParseFilter.java:148)
> at org.apache.nutch.parse.js.JSParseFilter.walk(JSParseFilter.java:148)
> at org.apache.nutch.parse.js.JSParseFilter.walk(JSParseFilter.java:148)
> at org.apache.nutch.parse.js.JSParseFilter.walk(JSParseFilter.java:148)
> at org.apache.nutch.parse.js.JSParseFilter.walk(JSParseFilter.java:148)
> Inspection of the code shows that this is a recursive call to walk(.....)
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (NUTCH-709) JSParseFilter gets into an infinate
loop and ets all the stack
Posted by "Tim Hawkins (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/NUTCH-709?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12678330#action_12678330 ]
Tim Hawkins commented on NUTCH-709:
-----------------------------------
I was going to do exactly the same thing for now :-)
> JSParseFilter gets into an infinate loop and ets all the stack
> ---------------------------------------------------------------
>
> Key: NUTCH-709
> URL: https://issues.apache.org/jira/browse/NUTCH-709
> Project: Nutch
> Issue Type: Bug
> Components: fetcher
> Affects Versions: 1.0.0
> Environment: Hadoop 0.19.0 running nutch trunk
> Reporter: Tim Hawkins
> Attachments: JSParseFilter.error.patch
>
>
> When crawling pages with seperate fetch and parse, I see processes die becuase of stack overflow.
> Output is generaly.
> java.lang.StackOverflowError
> at org.apache.nutch.parse.js.JSParseFilter.walk(JSParseFilter.java:146)
> at org.apache.nutch.parse.js.JSParseFilter.walk(JSParseFilter.java:148)
> at org.apache.nutch.parse.js.JSParseFilter.walk(JSParseFilter.java:148)
> at org.apache.nutch.parse.js.JSParseFilter.walk(JSParseFilter.java:148)
> at org.apache.nutch.parse.js.JSParseFilter.walk(JSParseFilter.java:148)
> at org.apache.nutch.parse.js.JSParseFilter.walk(JSParseFilter.java:148)
> at org.apache.nutch.parse.js.JSParseFilter.walk(JSParseFilter.java:148)
> at org.apache.nutch.parse.js.JSParseFilter.walk(JSParseFilter.java:148)
> at org.apache.nutch.parse.js.JSParseFilter.walk(JSParseFilter.java:148)
> at org.apache.nutch.parse.js.JSParseFilter.walk(JSParseFilter.java:148)
> at org.apache.nutch.parse.js.JSParseFilter.walk(JSParseFilter.java:148)
> at org.apache.nutch.parse.js.JSParseFilter.walk(JSParseFilter.java:148)
> at org.apache.nutch.parse.js.JSParseFilter.walk(JSParseFilter.java:148)
> at org.apache.nutch.parse.js.JSParseFilter.walk(JSParseFilter.java:148)
> at org.apache.nutch.parse.js.JSParseFilter.walk(JSParseFilter.java:148)
> at org.apache.nutch.parse.js.JSParseFilter.walk(JSParseFilter.java:148)
> at org.apache.nutch.parse.js.JSParseFilter.walk(JSParseFilter.java:148)
> at org.apache.nutch.parse.js.JSParseFilter.walk(JSParseFilter.java:148)
> at org.apache.nutch.parse.js.JSParseFilter.walk(JSParseFilter.java:148)
> Inspection of the code shows that this is a recursive call to walk(.....)
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (NUTCH-709) JSParseFilter gets into an infinate
loop and ets all the stack
Posted by "Julien Nioche (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/NUTCH-709?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12678325#action_12678325 ]
Julien Nioche commented on NUTCH-709:
-------------------------------------
the patch above does not fix the issue but prevents it from crashing the whole parsing
> JSParseFilter gets into an infinate loop and ets all the stack
> ---------------------------------------------------------------
>
> Key: NUTCH-709
> URL: https://issues.apache.org/jira/browse/NUTCH-709
> Project: Nutch
> Issue Type: Bug
> Components: fetcher
> Affects Versions: 1.0.0
> Environment: Hadoop 0.19.0 running nutch trunk
> Reporter: Tim Hawkins
> Attachments: JSParseFilter.error.patch
>
>
> When crawling pages with seperate fetch and parse, I see processes die becuase of stack overflow.
> Output is generaly.
> java.lang.StackOverflowError
> at org.apache.nutch.parse.js.JSParseFilter.walk(JSParseFilter.java:146)
> at org.apache.nutch.parse.js.JSParseFilter.walk(JSParseFilter.java:148)
> at org.apache.nutch.parse.js.JSParseFilter.walk(JSParseFilter.java:148)
> at org.apache.nutch.parse.js.JSParseFilter.walk(JSParseFilter.java:148)
> at org.apache.nutch.parse.js.JSParseFilter.walk(JSParseFilter.java:148)
> at org.apache.nutch.parse.js.JSParseFilter.walk(JSParseFilter.java:148)
> at org.apache.nutch.parse.js.JSParseFilter.walk(JSParseFilter.java:148)
> at org.apache.nutch.parse.js.JSParseFilter.walk(JSParseFilter.java:148)
> at org.apache.nutch.parse.js.JSParseFilter.walk(JSParseFilter.java:148)
> at org.apache.nutch.parse.js.JSParseFilter.walk(JSParseFilter.java:148)
> at org.apache.nutch.parse.js.JSParseFilter.walk(JSParseFilter.java:148)
> at org.apache.nutch.parse.js.JSParseFilter.walk(JSParseFilter.java:148)
> at org.apache.nutch.parse.js.JSParseFilter.walk(JSParseFilter.java:148)
> at org.apache.nutch.parse.js.JSParseFilter.walk(JSParseFilter.java:148)
> at org.apache.nutch.parse.js.JSParseFilter.walk(JSParseFilter.java:148)
> at org.apache.nutch.parse.js.JSParseFilter.walk(JSParseFilter.java:148)
> at org.apache.nutch.parse.js.JSParseFilter.walk(JSParseFilter.java:148)
> at org.apache.nutch.parse.js.JSParseFilter.walk(JSParseFilter.java:148)
> at org.apache.nutch.parse.js.JSParseFilter.walk(JSParseFilter.java:148)
> Inspection of the code shows that this is a recursive call to walk(.....)
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.