Hi, I'm trying to follow the instructions in
Ycad_api_readme1_a.txt to render a dxf file to an
image. I pretty much just cut-n-pasted from the text
file, compiled, and called createEffect_ycadv1(). I get:
[java]
.++YutilIOHandler:==================================================
[java]
++YutilIOHandler:openInputStream|arg_ioname=[YutilIOHandlerName=[|null|misc/testdata/txt.shx|null|null|null|null]]
[java]
++YutilIOHandler:openInputStream|argstr_name=[],applet=[null]
[java]
++YutilIOHandler:openInputStream|argstr_baseurl=[null],argstr_src=[misc/testdata/txt.shx],argstr_srcfile=[null],argstr_srcurl=[null]
[java] ++YutilIOHandler:openInputStream|baseURL=[null]
[java]
++YutilIOHandler:openInputStream|b1|openURL=[null],argstr_src=[misc/testdata/txt.shx]
[java]
++YutilIOHandler:openInputStream|c1|,name_actual=[misc/testdata/txt.shx]
[java]
++YutilIOHandler:==================================================
[java]
++YutilIOHandler:==================================================
[java]
++YutilIOHandler:openInputStream|arg_ioname=[YutilIOHandlerName=[main|null|misc/testdata/yoffice3.dxf|null|null|null|null]]
[java]
++YutilIOHandler:openInputStream|argstr_name=[main],applet=[null]
[java]
++YutilIOHandler:openInputStream|argstr_baseurl=[null],argstr_src=[misc/testdata/yoffice3.dxf],argstr_srcfile=[null],argstr_srcurl=[null]
[java] ++YutilIOHandler:openInputStream|baseURL=[null]
[java]
++YutilIOHandler:openInputStream|b1|openURL=[null],argstr_src=[misc/testdata/yoffice3.dxf]
[java]
++YutilIOHandler:openInputStream|c1|,name_actual=[misc/testdata/yoffice3.dxf]
[java]
++YutilIOHandler:==================================================
[java] java.lang.NullPointerException
[java] at
com.ysystems.ycad.lib.yxxf.YxxfGfxContext.calcdsp_viewport(YxxfGfxContext.java:654)
[java] at
com.ysystems.ycad.lib.yxxf.YxxfPrtTilemode0View.setupGC_predraw2(YxxfPrtTilemode0View.java:426)
[java] at
com.ysystems.ycad.lib.yxxf.YxxfPrtTilemode0DrawT.do_redraw(YxxfPrtTilemode0DrawT.java:289)
[java] at
com.ysystems.ycad.lib.yxxf.YxxfPrtTilemode0DrawT.run(YxxfPrtTilemode0DrawT.java:242)
I took a thread dump since it looks as if there's a
thread hung up somewhere and got:
[java] "Thread-0" prio=1 tid=0x08322208 nid=0xdcd
in Object.wait() [21ab000..21ab87c]
[java] at java.lang.Object.wait(Native Method)
[java] - waiting on <0xb069e2b8> (a
java.lang.Object)
[java] at java.lang.Object.wait(Object.java:429)
[java] at
com.ysystems.ycad.lib.yxxf.YxxfGfxContext.commandGC_wait(YxxfGfxContext.java:1563)
[java] - locked <0xb069e2b8> (a java.lang.Object)
[java] at
com.ysystems.ycad.lib.yxxf.YxxfPrtDrawingDrawT.run(YxxfPrtDrawingDrawT.java:307)
[java] at java.lang.Thread.run(Thread.java:534)
Logged In: YES
user_id=55510
sorry, I missed some of the thread dump that might be
interesting:
[java] "main" prio=1 tid=0x080533a8 nid=0xdcd in
Object.wait() [bfffc000..bfffcfa8]
[java] at java.lang.Object.wait(Native Method)
[java] - waiting on <0xb06c81e8> (a java.lang.Object)
[java] at java.lang.Object.wait(Object.java:429)
[java] at
com.ysystems.ycad.lib.yxxf.YxxfGfxContext.commandGC_wait_doing_waiting(YxxfGfxContext.java:1600)
[java] - locked <0xb06c81e8> (a java.lang.Object)
[java] at
com.ysystems.ycad.lib.yxxf.YxxfPrtTilemode0View.commandTilemode0View_wait_for_complete(YxxfPrtTilemode0View.java:276)
[java] at
com.ysystems.ycad.lib.yxxf.YxxfPrtViewHandler.commandViewHandler_command_wait_for_complete(YxxfPrtViewHandler.java:1169)
[java] at
reva.x.CadRip.createEffect_ycadv1_render(CadRip.java:198)
[java] at
reva.x.CadRip.createEffect_ycadv1(CadRip.java:45)
[java] at reva.x.CadRipTest.testRip(CadRipTest.java:55)
[java] at
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[java] at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
[java] at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[java] at
java.lang.reflect.Method.invoke(Method.java:324)
[java] at
junit.framework.TestCase.runTest(TestCase.java:154)
[java] at
junit.framework.TestCase.runBare(TestCase.java:127)
[java] at
junit.framework.TestResult$1.protect(TestResult.java:106)
[java] at
junit.framework.TestResult.runProtected(TestResult.java:124)
[java] at
junit.framework.TestResult.run(TestResult.java:109)
[java] at
junit.framework.TestCase.run(TestCase.java:118)
[java] at
junit.framework.TestSuite.runTest(TestSuite.java:208)
[java] at
junit.framework.TestSuite.run(TestSuite.java:203)
[java] at
junit.framework.TestSuite.runTest(TestSuite.java:208)
[java] at
junit.framework.TestSuite.run(TestSuite.java:203)
[java] at
junit.textui.TestRunner.doRun(TestRunner.java:116)
[java] at
junit.textui.TestRunner.doRun(TestRunner.java:109)
[java] at
junit.textui.TestRunner.run(TestRunner.java:72)
[java] at reva.x.CadRipTest.main(CadRipTest.java:48)