| Summary: | Endless "java.io.IOException: Stream closed" log | ||||||
|---|---|---|---|---|---|---|---|
| Product: | z_Archived | Reporter: | Toshihiro Izumi <euthanasia_waltz> | ||||
| Component: | PDT | Assignee: | Thierry BLIND <thierryblind> | ||||
| Status: | CLOSED FIXED | QA Contact: | Sylvia Tancheva <silviya> | ||||
| Severity: | major | ||||||
| Priority: | P3 | CC: | gadi, thierryblind, wywrzal | ||||
| Version: | unspecified | ||||||
| Target Milestone: | --- | ||||||
| Hardware: | PC | ||||||
| OS: | Windows XP | ||||||
| Whiteboard: | |||||||
| Attachments: |
|
||||||
fixed in head Verified at PDT-2.2.0.v20100616 can`t see this behavior at error log after adding '/**' at EOF - seems to be normal at the moment and issue to be fixed Closing this issue... Verified by Teodor Kirkov teodor.k@zend.com '/**' is not '/** '. Hi, I reopened this bug as it isn't resolved. Step to reproduce : 1. create a file (but not using eclipse) with following content : <?php /** Be careful, last line must end with a space (ie. '/** ') 2. copy this file in a PHP project under eclipse 3. try to open it 4. you will have following endless log entries : java.io.IOException: Stream closed at java.io.CharArrayReader.ensureOpen(CharArrayReader.java:75) at java.io.CharArrayReader.read(CharArrayReader.java:105) at org.eclipse.php.internal.core.compiler.ast.parser.DocumentorLexer.zzRefill(DocumentorLexer.java:768) at org.eclipse.php.internal.core.compiler.ast.parser.DocumentorLexer.next_token(DocumentorLexer.java:1044) at org.eclipse.php.internal.core.compiler.ast.parser.DocumentorLexer.parse(DocumentorLexer.java:486) at org.eclipse.php.internal.core.compiler.ast.parser.DocumentorLexer.parse(DocumentorLexer.java:1) at org.eclipse.php.internal.core.ast.scanner.php56.PhpAstLexer.parsePHPDoc(PhpAstLexer.java:1280) at org.eclipse.php.internal.core.compiler.ast.parser.php56.CompilerAstLexer.parsePHPDoc(CompilerAstLexer.java:65) at org.eclipse.php.internal.core.ast.scanner.php56.PhpAstLexer.next_token(PhpAstLexer.java:2356) at java_cup.runtime.lr_parser.scan(lr_parser.java:335) at java_cup.runtime.lr_parser.parse(lr_parser.java:534) at org.eclipse.php.internal.core.compiler.ast.parser.AbstractPHPSourceParser.parse(AbstractPHPSourceParser.java:61) at org.eclipse.php.internal.core.compiler.ast.parser.php56.PhpSourceParser.parse(PhpSourceParser.java:37) at org.eclipse.php.internal.core.compiler.ast.parser.AbstractPHPSourceParser.parse(AbstractPHPSourceParser.java:41) at org.eclipse.php.internal.core.compiler.ast.parser.PHPSourceParserFactory.parse(PHPSourceParserFactory.java:41) at org.eclipse.dltk.core.SourceParserUtil.parse(SourceParserUtil.java:135) at org.eclipse.dltk.core.SourceParserUtil.getModuleDeclaration(SourceParserUtil.java:171) at org.eclipse.dltk.core.SourceParserUtil.getModuleDeclaration(SourceParserUtil.java:166) at org.eclipse.php.internal.core.index.PhpIndexingParser.parseSourceModule(PhpIndexingParser.java:27) at org.eclipse.dltk.core.index2.AbstractIndexer.indexDocument(AbstractIndexer.java:45) at org.eclipse.dltk.internal.core.index.sql.SqlIndexer.indexDocument(SqlIndexer.java:147) at org.eclipse.dltk.internal.core.index2.AddSourceModuleRequest.run(AddSourceModuleRequest.java:47) at org.eclipse.dltk.core.search.indexing.AbstractJob.execute(AbstractJob.java:76) at org.eclipse.dltk.internal.core.search.processing.JobManager.run(JobManager.java:467) at java.lang.Thread.run(Thread.java:662) Patch is available: https://git.eclipse.org/r/#/c/39241 Thierry. Merged: https://git.eclipse.org/c/pdt/org.eclipse.pdt.git/commit/?id=0cd4d428c4cfe660d493966bb5d84eced946fcf4 Thanks for patch Thierry:) I also successfully reproduced - got the log 10-11 times backed up, all files full of that error even before trying to open it (upon copy to the project Studio hanged). Now with Thierry's fix it looks OK. Nothing in the log. Closing the bug |
Created attachment 171364 [details] a piece of .log Steps to reproduce: 1. Type '/** ' at eof Note that this makes enormous log file. "java.io.IOException: Stream closed" is logged until you exit eclipse.