Skip to content

scalac crush during compilation of minimal lwjgl 'project' #5004

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

Closed
scabug opened this issue Sep 18, 2011 · 4 comments
Closed

scalac crush during compilation of minimal lwjgl 'project' #5004

scabug opened this issue Sep 18, 2011 · 4 comments

Comments

@scabug
Copy link

scabug commented Sep 18, 2011

While trying to compile test.scala with:
scalac -classpath .:lwjgl.jar test.scala

I got this error:

error: java.lang.AssertionError: org.lwjgl.opengles.PixelFormat$Attrib
at scala.tools.nsc.symtab.classfile.ClassfileParser$$anonfun$enterOwnInnerClasses$1.apply(ClassfileParser.scala:1130)
at scala.tools.nsc.symtab.classfile.ClassfileParser$$anonfun$enterOwnInnerClasses$1.apply(ClassfileParser.scala:1127)
at scala.collection.mutable.HashMap$$anon$2$$anonfun$foreach$3.apply(HashMap.scala:102)
at scala.collection.mutable.HashMap$$anon$2$$anonfun$foreach$3.apply(HashMap.scala:102)
at scala.collection.Iterator$class.foreach(Iterator.scala:660)
at scala.collection.mutable.HashTable$$anon$1.foreach(HashTable.scala:157)
at scala.collection.mutable.HashTable$class.foreachEntry(HashTable.scala:190)
at scala.collection.mutable.HashMap.foreachEntry(HashMap.scala:43)
at scala.collection.mutable.HashMap$$anon$2.foreach(HashMap.scala:102)
at scala.tools.nsc.symtab.classfile.ClassfileParser.enterOwnInnerClasses(ClassfileParser.scala:1127)
at scala.tools.nsc.symtab.classfile.ClassfileParser.parseClass(ClassfileParser.scala:543)
at scala.tools.nsc.symtab.classfile.ClassfileParser.parse(ClassfileParser.scala:99)
at scala.tools.nsc.symtab.SymbolLoaders$ClassfileLoader.doComplete(SymbolLoaders.scala:308)
at scala.tools.nsc.symtab.SymbolLoaders$SymbolLoader.complete(SymbolLoaders.scala:111)
at scala.tools.nsc.symtab.SymbolLoaders$SymbolLoader.load(SymbolLoaders.scala:130)
at scala.tools.nsc.symtab.Symbols$Symbol.typeParams(Symbols.scala:910)
at scala.tools.nsc.symtab.Types$class.scala$tools$nsc$symtab$Types$$isRawIfWithoutArgs(Types.scala:3343)
at scala.tools.nsc.symtab.Types$rawToExistential$.gd28$1(Types.scala:3366)
at scala.tools.nsc.symtab.Types$rawToExistential$.apply(Types.scala:3365)
at scala.tools.nsc.symtab.Types$rawToExistential$.apply(Types.scala:3362)
at scala.tools.nsc.symtab.Types$TypeMap$$anonfun$16.apply(Types.scala:3229)
at scala.tools.nsc.symtab.Types$TypeMap$$anonfun$16.apply(Types.scala:3226)
at scala.collection.LinearSeqOptimized$class.exists(LinearSeqOptimized.scala:79)
at scala.collection.immutable.List.exists(List.scala:45)
at scala.tools.nsc.symtab.Types$TypeMap.mapOver(Types.scala:3226)
at scala.tools.nsc.symtab.Types$TypeMap.mapOver(Types.scala:3128)
at scala.tools.nsc.symtab.Types$rawToExistential$.apply(Types.scala:3380)
at scala.tools.nsc.symtab.Symbols$TermSymbol.cook$1(Symbols.scala:1796)
at scala.tools.nsc.symtab.Symbols$TermSymbol$$anonfun$doCookJavaRawInfo$1.apply(Symbols.scala:1808)
at scala.tools.nsc.symtab.Symbols$TermSymbol$$anonfun$doCookJavaRawInfo$1.apply(Symbols.scala:1806)
at scala.collection.LinearSeqOptimized$class.foreach(LinearSeqOptimized.scala:59)
at scala.collection.immutable.List.foreach(List.scala:45)
at scala.tools.nsc.symtab.Symbols$TermSymbol.doCookJavaRawInfo(Symbols.scala:1806)
at scala.tools.nsc.symtab.Symbols$Symbol.cookJavaRawInfo(Symbols.scala:865)
at scala.tools.nsc.typechecker.Infer$Inferencer.checkAccessible(Infer.scala:285)
at scala.tools.nsc.typechecker.Typers$Typer.makeAccessible(Typers.scala:524)
at scala.tools.nsc.typechecker.Typers$Typer.typedSelect$1(Typers.scala:3613)
at scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:4165)
at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:4271)
at scala.tools.nsc.typechecker.Typers$Typer$$anonfun$typedApply$1$1.apply(Typers.scala:3353)
at scala.tools.nsc.typechecker.Typers$Typer$$anonfun$typedApply$1$1.apply(Typers.scala:3353)
at scala.tools.nsc.typechecker.Typers$Typer.silent(Typers.scala:624)
at scala.tools.nsc.typechecker.Typers$Typer.typedApply$1(Typers.scala:3353)
at scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:4104)
at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:4271)
at scala.tools.nsc.typechecker.Typers$Typer.typedBlock(Typers.scala:1920)
at scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:3951)
at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:4271)
at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:4344)
at scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:4015)
at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:4271)
at scala.tools.nsc.typechecker.Typers$Typer.transformedOrTyped(Typers.scala:4428)
at scala.tools.nsc.typechecker.Typers$Typer.typedDefDef(Typers.scala:1760)
at scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:3919)
at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:4271)
at scala.tools.nsc.typechecker.Typers$Typer.typedStat$1(Typers.scala:2100)
at scala.tools.nsc.typechecker.Typers$Typer$$anonfun$24.apply(Typers.scala:2184)
at scala.tools.nsc.typechecker.Typers$Typer$$anonfun$24.apply(Typers.scala:2184)
at scala.collection.immutable.List.loop$1(List.scala:117)
at scala.collection.immutable.List.mapConserve(List.scala:133)
at scala.tools.nsc.typechecker.Typers$Typer.typedStats(Typers.scala:2184)
at scala.tools.nsc.typechecker.Typers$Typer.typedTemplate(Typers.scala:1512)
at scala.tools.nsc.typechecker.Typers$Typer.typedModuleDef(Typers.scala:1320)
at scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:3913)
at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:4271)
at scala.tools.nsc.typechecker.Typers$Typer.typedStat$1(Typers.scala:2100)
at scala.tools.nsc.typechecker.Typers$Typer$$anonfun$24.apply(Typers.scala:2184)
at scala.tools.nsc.typechecker.Typers$Typer$$anonfun$24.apply(Typers.scala:2184)
at scala.collection.immutable.List.loop$1(List.scala:117)
at scala.collection.immutable.List.mapConserve(List.scala:133)
at scala.tools.nsc.typechecker.Typers$Typer.typedStats(Typers.scala:2184)
at scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:3906)
at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:4271)
at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:4331)
at scala.tools.nsc.typechecker.Analyzer$typerFactory$$anon$3.apply(Analyzer.scala:94)
at scala.tools.nsc.Global$GlobalPhase.applyPhase(Global.scala:329)
at scala.tools.nsc.typechecker.Analyzer$typerFactory$$anon$3$$anonfun$run$1.apply(Analyzer.scala:86)
at scala.tools.nsc.typechecker.Analyzer$typerFactory$$anon$3$$anonfun$run$1.apply(Analyzer.scala:86)
at scala.collection.Iterator$class.foreach(Iterator.scala:660)
at scala.collection.mutable.ListBuffer$$anon$1.foreach(ListBuffer.scala:316)
at scala.tools.nsc.typechecker.Analyzer$typerFactory$$anon$3.run(Analyzer.scala:86)
at scala.tools.nsc.Global$Run.compileSources(Global.scala:953)
at scala.tools.nsc.Global$Run.compile(Global.scala:1038)
at scala.tools.nsc.Main$.process(Main.scala:106)
at scala.tools.nsc.Main$.main(Main.scala:123)
at scala.tools.nsc.Main.main(Main.scala)

Exception in thread "main" java.lang.AssertionError: org.lwjgl.opengles.PixelFormat$Attrib
at scala.tools.nsc.symtab.classfile.ClassfileParser$$anonfun$enterOwnInnerClasses$1.apply(ClassfileParser.scala:1130)
at scala.tools.nsc.symtab.classfile.ClassfileParser$$anonfun$enterOwnInnerClasses$1.apply(ClassfileParser.scala:1127)
at scala.collection.mutable.HashMap$$anon$2$$anonfun$foreach$3.apply(HashMap.scala:102)
at scala.collection.mutable.HashMap$$anon$2$$anonfun$foreach$3.apply(HashMap.scala:102)
at scala.collection.Iterator$class.foreach(Iterator.scala:660)
at scala.collection.mutable.HashTable$$anon$1.foreach(HashTable.scala:157)
at scala.collection.mutable.HashTable$class.foreachEntry(HashTable.scala:190)
at scala.collection.mutable.HashMap.foreachEntry(HashMap.scala:43)
at scala.collection.mutable.HashMap$$anon$2.foreach(HashMap.scala:102)
at scala.tools.nsc.symtab.classfile.ClassfileParser.enterOwnInnerClasses(ClassfileParser.scala:1127)
at scala.tools.nsc.symtab.classfile.ClassfileParser.parseClass(ClassfileParser.scala:543)
at scala.tools.nsc.symtab.classfile.ClassfileParser.parse(ClassfileParser.scala:99)
at scala.tools.nsc.symtab.SymbolLoaders$ClassfileLoader.doComplete(SymbolLoaders.scala:308)
at scala.tools.nsc.symtab.SymbolLoaders$SymbolLoader.complete(SymbolLoaders.scala:111)
at scala.tools.nsc.symtab.SymbolLoaders$SymbolLoader.load(SymbolLoaders.scala:130)
at scala.tools.nsc.symtab.Symbols$Symbol.typeParams(Symbols.scala:910)
at scala.tools.nsc.symtab.Types$class.scala$tools$nsc$symtab$Types$$isRawIfWithoutArgs(Types.scala:3343)
at scala.tools.nsc.symtab.Types$rawToExistential$.gd28$1(Types.scala:3366)
at scala.tools.nsc.symtab.Types$rawToExistential$.apply(Types.scala:3365)
at scala.tools.nsc.symtab.Types$rawToExistential$.apply(Types.scala:3362)
at scala.tools.nsc.symtab.Types$TypeMap$$anonfun$16.apply(Types.scala:3229)
at scala.tools.nsc.symtab.Types$TypeMap$$anonfun$16.apply(Types.scala:3226)
at scala.collection.LinearSeqOptimized$class.exists(LinearSeqOptimized.scala:79)
at scala.collection.immutable.List.exists(List.scala:45)
at scala.tools.nsc.symtab.Types$TypeMap.mapOver(Types.scala:3226)
at scala.tools.nsc.symtab.Types$TypeMap.mapOver(Types.scala:3128)
at scala.tools.nsc.symtab.Types$rawToExistential$.apply(Types.scala:3380)
at scala.tools.nsc.symtab.Symbols$TermSymbol.cook$1(Symbols.scala:1796)
at scala.tools.nsc.symtab.Symbols$TermSymbol$$anonfun$doCookJavaRawInfo$1.apply(Symbols.scala:1808)
at scala.tools.nsc.symtab.Symbols$TermSymbol$$anonfun$doCookJavaRawInfo$1.apply(Symbols.scala:1806)
at scala.collection.LinearSeqOptimized$class.foreach(LinearSeqOptimized.scala:59)
at scala.collection.immutable.List.foreach(List.scala:45)
at scala.tools.nsc.symtab.Symbols$TermSymbol.doCookJavaRawInfo(Symbols.scala:1806)
at scala.tools.nsc.symtab.Symbols$Symbol.cookJavaRawInfo(Symbols.scala:865)
at scala.tools.nsc.typechecker.Infer$Inferencer.checkAccessible(Infer.scala:285)
at scala.tools.nsc.typechecker.Typers$Typer.makeAccessible(Typers.scala:524)
at scala.tools.nsc.typechecker.Typers$Typer.typedSelect$1(Typers.scala:3613)
at scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:4165)
at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:4271)
at scala.tools.nsc.typechecker.Typers$Typer$$anonfun$typedApply$1$1.apply(Typers.scala:3353)
at scala.tools.nsc.typechecker.Typers$Typer$$anonfun$typedApply$1$1.apply(Typers.scala:3353)
at scala.tools.nsc.typechecker.Typers$Typer.silent(Typers.scala:624)
at scala.tools.nsc.typechecker.Typers$Typer.typedApply$1(Typers.scala:3353)
at scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:4104)
at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:4271)
at scala.tools.nsc.typechecker.Typers$Typer.typedBlock(Typers.scala:1920)
at scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:3951)
at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:4271)
at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:4344)
at scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:4015)
at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:4271)
at scala.tools.nsc.typechecker.Typers$Typer.transformedOrTyped(Typers.scala:4428)
at scala.tools.nsc.typechecker.Typers$Typer.typedDefDef(Typers.scala:1760)
at scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:3919)
at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:4271)
at scala.tools.nsc.typechecker.Typers$Typer.typedStat$1(Typers.scala:2100)
at scala.tools.nsc.typechecker.Typers$Typer$$anonfun$24.apply(Typers.scala:2184)
at scala.tools.nsc.typechecker.Typers$Typer$$anonfun$24.apply(Typers.scala:2184)
at scala.collection.immutable.List.loop$1(List.scala:117)
at scala.collection.immutable.List.mapConserve(List.scala:133)
at scala.tools.nsc.typechecker.Typers$Typer.typedStats(Typers.scala:2184)
at scala.tools.nsc.typechecker.Typers$Typer.typedTemplate(Typers.scala:1512)
at scala.tools.nsc.typechecker.Typers$Typer.typedModuleDef(Typers.scala:1320)
at scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:3913)
at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:4271)
at scala.tools.nsc.typechecker.Typers$Typer.typedStat$1(Typers.scala:2100)
at scala.tools.nsc.typechecker.Typers$Typer$$anonfun$24.apply(Typers.scala:2184)
at scala.tools.nsc.typechecker.Typers$Typer$$anonfun$24.apply(Typers.scala:2184)
at scala.collection.immutable.List.loop$1(List.scala:117)
at scala.collection.immutable.List.mapConserve(List.scala:133)
at scala.tools.nsc.typechecker.Typers$Typer.typedStats(Typers.scala:2184)
at scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:3906)
at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:4271)
at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:4331)
at scala.tools.nsc.typechecker.Analyzer$typerFactory$$anon$3.apply(Analyzer.scala:94)
at scala.tools.nsc.Global$GlobalPhase.applyPhase(Global.scala:329)
at scala.tools.nsc.typechecker.Analyzer$typerFactory$$anon$3$$anonfun$run$1.apply(Analyzer.scala:86)
at scala.tools.nsc.typechecker.Analyzer$typerFactory$$anon$3$$anonfun$run$1.apply(Analyzer.scala:86)
at scala.collection.Iterator$class.foreach(Iterator.scala:660)
at scala.collection.mutable.ListBuffer$$anon$1.foreach(ListBuffer.scala:316)
at scala.tools.nsc.typechecker.Analyzer$typerFactory$$anon$3.run(Analyzer.scala:86)
at scala.tools.nsc.Global$Run.compileSources(Global.scala:953)
at scala.tools.nsc.Global$Run.compile(Global.scala:1038)
at scala.tools.nsc.Main$.process(Main.scala:106)
at scala.tools.nsc.Main$.main(Main.scala:123)
at scala.tools.nsc.Main.main(Main.scala)

@scabug
Copy link
Author

scabug commented Sep 18, 2011

Imported From: https://issues.scala-lang.org/browse/SI-5004?orig=1
Reporter: Tomasz K (tumdum)
Affected Versions: 2.9.1
Attachments:

  • test.scala (created on Sep 18, 2011 3:26:33 PM UTC, 456 bytes)

@scabug
Copy link
Author

scabug commented Sep 18, 2011

@paulp said:
No lwjgl version given.

@scabug
Copy link
Author

scabug commented Sep 19, 2011

Tomasz K (tumdum) said (edited on Sep 19, 2011 4:25:48 PM UTC):
I've been using lwjgl nightly builds, for example it happens with one from Build #1342: https://www.newdawnsoftware.com/jenkins/view/LWJGL/job/LWJGL/1342/artifact/dist/lwjgl-2.8.0.zip
The same build of lwjgl with which scalac crashes, works fine with normal java project.

@scabug
Copy link
Author

scabug commented Jul 16, 2012

@adriaanm said:
sorry, we don't have the resources to narrow down bugs with external dependencies

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

No branches or pull requests

1 participant