Skip to content
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

More detailed Exceptions #146

Open
PtrMan opened this issue May 7, 2019 · 0 comments
Open

More detailed Exceptions #146

PtrMan opened this issue May 7, 2019 · 0 comments

Comments

@PtrMan
Copy link

PtrMan commented May 7, 2019

I try to mess around with this (never used this lib before) and I get indecyperable error messages like this.

Exception in thread "Animation Thread" java.lang.ClassCastException: com.aparapi.internal.instruction.InstructionSet$I_ALOAD cannot be cast to com.aparapi.internal.instruction.InstructionSet$AccessField
	at com.aparapi.internal.writer.BlockWriter.getUltimateInstanceFieldAccess(BlockWriter.java:806)
	at com.aparapi.internal.writer.BlockWriter.isMultiDimensionalArray(BlockWriter.java:791)
	at com.aparapi.internal.writer.BlockWriter.writeInstruction(BlockWriter.java:464)
	at com.aparapi.internal.writer.KernelWriter.writeInstruction(KernelWriter.java:780)
	at com.aparapi.internal.writer.BlockWriter.writeInstruction(BlockWriter.java:468)
	at com.aparapi.internal.writer.KernelWriter.writeInstruction(KernelWriter.java:780)
	at com.aparapi.internal.writer.BlockWriter.writeInstruction(BlockWriter.java:623)
	at com.aparapi.internal.writer.KernelWriter.writeInstruction(KernelWriter.java:780)
	at com.aparapi.internal.writer.BlockWriter.writeInstruction(BlockWriter.java:439)
	at com.aparapi.internal.writer.KernelWriter.writeInstruction(KernelWriter.java:780)
	at com.aparapi.internal.writer.BlockWriter.writeSequence(BlockWriter.java:299)
	at com.aparapi.internal.writer.BlockWriter.writeBlock(BlockWriter.java:323)
	at com.aparapi.internal.writer.BlockWriter.writeComposite(BlockWriter.java:186)
	at com.aparapi.internal.writer.BlockWriter.writeSequence(BlockWriter.java:296)
	at com.aparapi.internal.writer.BlockWriter.writeBlock(BlockWriter.java:323)
	at com.aparapi.internal.writer.BlockWriter.writeComposite(BlockWriter.java:174)
	at com.aparapi.internal.writer.BlockWriter.writeSequence(BlockWriter.java:296)
	at com.aparapi.internal.writer.BlockWriter.writeBlock(BlockWriter.java:323)
	at com.aparapi.internal.writer.BlockWriter.writeComposite(BlockWriter.java:210)
	at com.aparapi.internal.writer.BlockWriter.writeSequence(BlockWriter.java:296)
	at com.aparapi.internal.writer.BlockWriter.writeBlock(BlockWriter.java:323)
	at com.aparapi.internal.writer.BlockWriter.writeComposite(BlockWriter.java:210)
	at com.aparapi.internal.writer.BlockWriter.writeSequence(BlockWriter.java:296)
	at com.aparapi.internal.writer.BlockWriter.writeBlock(BlockWriter.java:323)
	at com.aparapi.internal.writer.BlockWriter.writeMethodBody(BlockWriter.java:848)
	at com.aparapi.internal.writer.KernelWriter.write(KernelWriter.java:697)
	at com.aparapi.internal.writer.KernelWriter.writeToString(KernelWriter.java:792)
	at com.aparapi.internal.kernel.KernelRunner.executeInternalInner(KernelRunner.java:1503)
	at com.aparapi.internal.kernel.KernelRunner.executeInternalOuter(KernelRunner.java:1351)
	at com.aparapi.internal.kernel.KernelRunner.execute(KernelRunner.java:1342)
	at com.aparapi.Kernel.execute(Kernel.java:2856)
	at com.aparapi.Kernel.execute(Kernel.java:2813)
	at com.aparapi.Kernel.execute(Kernel.java:2753)
	at org.opennars.applications.cv.Conv.convAt(Conv.java:163)
	at org.opennars.applications.cv.PrototypeBasedImageSampler.sample(PrototypeBasedImageSampler.java:77)
	at org.opennars.applications.crossing.UnrealCrossing.draw(UnrealCrossing.java:229)
	at processing.core.PApplet.handleDraw(PApplet.java:2386)
	at processing.core.PGraphicsJava2D.requestDraw(PGraphicsJava2D.java:240)
	at processing.core.PApplet.run(PApplet.java:2256)
	at java.base/java.lang.Thread.run(Thread.java:844)

Would be great if a exception would carry the detailed reason(s):

  • why is it not valid?
  • which bytecode instruction failed to get translated for what reason

now I have to guess again

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

No branches or pull requests

1 participant