#349 Bug in parsing of bibtex warnings crashes Builder

open
nobody
None
5
2014-08-15
2012-04-17
No

Environment: BibTeX 0.99d (TeX Live 2011), Eclipse Indigo, Texlipse 1.50

Attached you'll find a eclipse project that crashes the build process of TeXlipse 1.5.0 on Mac OS X with Eclipse Indigo. What happens is that TexLipse actually runs pdflatex fine, but then crashes when the output of bibtex is parsed in order to create markers. The build process exits with a null pointer exception.

!ENTRY org.eclipse.core.resources 4 75 2012-04-17 16:36:39.083
!MESSAGE Errors occurred during the build.
!SUBENTRY 1 net.sourceforge.texlipse 4 75 2012-04-17 16:36:39.083
!MESSAGE Errors running builder 'Latex Builder' on project 'bugreport-texlipse'.
!STACK 0
java.lang.NullPointerException
at net.sourceforge.texlipse.builder.AbstractProgramRunner.findMarker(AbstractProgramRunner.java:335)
at net.sourceforge.texlipse.builder.AbstractProgramRunner.createMarker(AbstractProgramRunner.java:269)
at net.sourceforge.texlipse.builder.AbstractProgramRunner.createMarker(AbstractProgramRunner.java:309)
at net.sourceforge.texlipse.builder.BibtexRunner.parseErrors(BibtexRunner.java:204)
at net.sourceforge.texlipse.builder.AbstractProgramRunner.run(AbstractProgramRunner.java:231)
at net.sourceforge.texlipse.builder.TexBuilder.buildResource(TexBuilder.java:302)
at net.sourceforge.texlipse.builder.AbstractBuilder.build(AbstractBuilder.java:121)
at net.sourceforge.texlipse.builder.TexlipseBuilder.buildFile(TexlipseBuilder.java:370)
at net.sourceforge.texlipse.builder.TexlipseBuilder.build(TexlipseBuilder.java:102)
at org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:728)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:199)
at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:239)
at org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:292)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:295)
at org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java:351)
at org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:374)
at org.eclipse.core.internal.resources.Workspace.buildInternal(Workspace.java:513)
at org.eclipse.core.internal.resources.Workspace.build(Workspace.java:432)
at org.eclipse.ui.actions.BuildAction$1.runInWorkspace(BuildAction.java:305)
at org.eclipse.core.internal.resources.InternalWorkspaceJob.run(InternalWorkspaceJob.java:38)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)

The warnings that cause the problem are those resulting from undefined types of entries in the bibtex file. In the attached example, the @OTHER entries are the problem - replace them with @misc and the build doesn't fail anymore.

PS: The bug seems to be equivalent to 3472877 - I report this bug again for the sake of providing a better reason what is going on and to be able to attach a test case to reproduce the bug.

Discussion

  • eliasweingaerner

    further questions: elias.weingaertner@cs.rwth-aachen.de

     

Log in to post a comment.