Proyectos => Jad Engine => Mensaje iniciado por: LuRenJia en 25 de Mayo de 2006, 03:29:19 pm

Título: A Problem About Run Tutorial!
Publicado por: LuRenJia en 25 de Mayo de 2006, 03:29:19 pm
 Hi!

First say congratulation for new version of Haddd. (uoh)

When I run any tutorial from
Código: [Seleccionar]
bin\, an error occured, debug info as following:
Código: [Seleccionar]
Error loading effect:interno.fx\n(1066): warning X3083: Truncating 4-vector to size 1
(1076): warning X3083: Truncating 4-vector to size 1
(1102): error X3000: syntax error: unexpected end of file

I miss any dependencies or runtime? :(

Thanks for help.
Título: A Problem About Run Tutorial!
Publicado por: LuRenJia en 25 de Mayo de 2006, 03:35:15 pm
 More error infomation:
Código: [Seleccionar]
System.Exception: Error loading effect:interno.fx\n(1066): warning X3083: Truncating 4-vector to size 1
(1076): warning X3083: Truncating 4-vector to size 1
(1102): error X3000: syntax error: unexpected end of file

   at HadddEngine.Video.HEffect.Load()
   at HadddEngine.Core.HEffectBuilder.Process()
   at HadddEngine.Core.HEffectBuilder.BuildZPass(HMaterialLayer material)
   at HadddEngine.Core.HEffectBuilder.SetZPass(HMaterialLayer material, Boolean shadowMap)
   at HadddEngine.Scene.HScene.RenderZPass()
   at HadddEngine.Scene.HScene.Render()
   at Viewer.HViewer.Render()
   at Viewer.ViewerFrm.timerMotor_Tick(Object sender, EventArgs e)
   at System.Windows.Forms.Timer.OnTick(EventArgs e)
   at System.Windows.Forms.Timer.TimerNativeWindow.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
Título: A Problem About Run Tutorial!
Publicado por: Haddd en 25 de Mayo de 2006, 03:43:05 pm
 i just downloaded & tested it with tutorial 1 and nothing goes wrong...Please post the log.htm file that appears at the exes directory.
Título: A Problem About Run Tutorial!
Publicado por: Vicente en 25 de Mayo de 2006, 03:56:51 pm
 Yep, post the log.htm file, I have run all tutorials before uploading the file and they seemed to work...

Greetings!

Vicente
Título: A Problem About Run Tutorial!
Publicado por: LuRenJia en 25 de Mayo de 2006, 04:19:54 pm
 Ok, see following:
Código: [Seleccionar]
LOG Haddd

--------------------------------------------------------------------------------
BackBuffer
MultiSampleQuality: 0 Height: 688 Width: 627 MultiSampleType: None Pool: Default Usage: RenderTarget Type: Surface Format: A8R8G8B8

--------------------------------------------------------------------------------

--------------------------------------------------------------------------------
DepthStencil
MultiSampleQuality: 0 Height: 688 Width: 627 MultiSampleType: None Pool: Default Usage: DepthStencil Type: Surface Format: D24S8

--------------------------------------------------------------------------------

--------------------------------------------------------------------------------
ViewPort
MaxZ: 1 MinZ: 0 Height: 688 Width: 627 Y: 0 X: 0

--------------------------------------------------------------------------------
SO
Microsoft Windows NT 5.1.2600 Service Pack 2
Versión .NET:2.0.50727.42
CPU
Nº CPUs: 1
CPU Architecture: x86
CPU Identifier: x86 Family 6 Model 10 Stepping 0, AuthenticAMD
CPU Level: 6
CPU Revision: 0a00
MHz:1505
CPU:AMD Sempron(tm) 2200+
DEVICE CAPS
ATI
Adapter:DeviceIdentifier: d7b71ee2-0213-11cf-a26a-2a5ca1c2cb35 WhqlLevel: 0 Revision: 0 SubSystemId: 2082476104 DeviceId: 16723 VendorId: 4098 DriverVersion: 6.14.10.6490 DeviceName: \\.\DISPLAY1 Description: RADEON 9550 DriverName: ati2dvag.dll
VIDEO RAM:183,500,800
Adapter number:0
Max user Clip Planes:6
Textures do not need to be power of two in size (under certain conditions)
Multiple Render Targets:4
PRIMITIVE CAPS:HasFogVertexClamped: True SupportsMultipleRenderTargetsPostPixelShaderBlending: False SupportsMultipleRenderTargetsIndependentBitDepths: False SupportsSeparateAlphaBlend: True SupportsFogAndSpecularAlpha: True SupportsPerStageConstant: False SupportsIndependentWriteMasks: False IsNullReference: False SupportsBlendOperation: True SupportsTextureStageStateArgumentTemp: True SupportsClipTransformedVertices: False SupportsClipPlaneScaledPoints: False SupportsColorWrite: True SupportsCullCounterClockwise: True SupportsCullClockwise: True SupportsCullNone: True SupportsMaskZ: True
Máximos de texturas. Ancho:2048 Alto:2048 Repetición:2048 Aspect Ratio:2048 Blend Stages:8
Vertex Shader. Versión:2.0 Nº de registros temporales:16
Pixel Shader. Versión:2.0 Nº de registros temporales:12 Nº de instrucciones:96.
PIXEL SHADER CAPS:NumberInstructionSlots: 96 StaticFlowControlDepth: 0 NumberTemps: 12 DynamicFlowControlDepth: 0 SupportsNoTextureInstructionLimit: False SupportsNoDependentReadLimit: False SupportsGradientInstructions: False SupportsArbitrarySwizzle: False SupportsPredication: False MaxDynamicFlowControlDepth: 24 MinDynamicFlowControlDepth: 0 MaxNumberTemps: 32 MinNumberTemps: 12 MaxStaticFlowControlDepth: 4 MinStaticFlowControlDepth: 0 MaxNumberInstructionSlots: 512 MinNumberInstructionSlots: 96

--------------------------------------------------------------------------------
Nueva textura 2D:noise
Texture 2D:noise
FullPath:InHouse\textures\noise.jpg
Size:256 x 256
Format:Dxt1
ImageFileFormat: Jpg ResourceType: Textures Format: X8R8G8B8 MipLevels: 1 Depth: 1 Height: 256 Width: 256

--------------------------------------------------------------------------------
Nueva textura 2D:RTPrimary
Nueva textura 2D:RTSecondary
Nueva textura 2D:RTReflection
Nueva textura 2D:RTLastFrame
Nueva textura 2D:RTParallax
Nueva textura 2D:RTGlow
Nueva textura 2D:RTShadowMask
Nueva textura 2D:RTShadowMask2
Nueva textura 2D:RTHalfBackBuffer1
Nueva textura 2D:RTHalfBackBuffer2
El total del peso para el Gaussian blur de 4 es de :1.017191
Nueva textura 2D:mesh
Texture 2D:mesh
FullPath:InHouse\textures\gizmos\mesh.tga
Size:32 x 32
Format:Dxt1
ImageFileFormat: Tga ResourceType: Textures Format: R8G8B8 MipLevels: 1 Depth: 1 Height: 32 Width: 32

--------------------------------------------------------------------------------
Nueva textura 2D:particleEffects
Texture 2D:particleEffects
FullPath:InHouse\textures\gizmos\particleEffects.tga
Size:32 x 32
Format:Dxt1
ImageFileFormat: Tga ResourceType: Textures Format: R8G8B8 MipLevels: 1 Depth: 1 Height: 32 Width: 32

--------------------------------------------------------------------------------
Nueva textura 2D:omni
Texture 2D:omni
FullPath:InHouse\textures\gizmos\omni.tga
Size:32 x 32
Format:Dxt1
ImageFileFormat: Tga ResourceType: Textures Format: R8G8B8 MipLevels: 1 Depth: 1 Height: 32 Width: 32

--------------------------------------------------------------------------------
Nueva textura 2D:spot
Texture 2D:spot
FullPath:InHouse\textures\gizmos\spot.tga
Size:32 x 32
Format:Dxt1
ImageFileFormat: Tga ResourceType: Textures Format: R8G8B8 MipLevels: 1 Depth: 1 Height: 32 Width: 32

--------------------------------------------------------------------------------
Nueva textura 2D:camera
Texture 2D:camera
FullPath:InHouse\textures\gizmos\camera.tga
Size:32 x 32
Format:Dxt1
ImageFileFormat: Tga ResourceType: Textures Format: R8G8B8 MipLevels: 1 Depth: 1 Height: 32 Width: 32

--------------------------------------------------------------------------------
Nueva textura 2D:dummy
Texture 2D:dummy
FullPath:InHouse\textures\gizmos\dummy.tga
Size:32 x 32
Format:Dxt1
ImageFileFormat: Tga ResourceType: Textures Format: R8G8B8 MipLevels: 1 Depth: 1 Height: 32 Width: 32

--------------------------------------------------------------------------------
Nueva textura 2D:RTShadowMap
Nueva textura 2D:RTMotionBlur
Nueva textura 2D:RTLastMotionBlur
Nueva textura Cube:RTCubeEM
Texture Cube:RTCubeEM
FullPath:
Size:256 x 256
Format:A8R8G8B8

--------------------------------------------------------------------------------
El total del peso para el Gaussian blur de 16 es de :3.760271
El total del peso para el Gaussian blur de 16 es de :3.760271
El total del peso para el Gaussian blur de 8 es de :1.576066
El total del peso para el Gaussian blur de 16 es de :3.760271
El total del peso para el Gaussian blur de 16 es de :3.760271
Reset
OnDeviceLost
HVertexIndexBuffers.OnLost
RenderTargets.OnLost
Textures.OnLost
Disposed:RTPrimary
Disposed:RTSecondary
Disposed:RTReflection
Disposed:RTLastFrame
Disposed:RTParallax
Disposed:RTGlow
Disposed:RTShadowMask
Disposed:RTShadowMask2
Disposed:RTHalfBackBuffer1
Disposed:RTHalfBackBuffer2
Disposed:RTShadowMap
Disposed:RTMotionBlur
Disposed:RTLastMotionBlur
Fonts.OnLost
Effects.OnLost
Lights.OnLost
OnDeviceReset

--------------------------------------------------------------------------------
BackBuffer
MultiSampleQuality: 0 Height: 688 Width: 742 MultiSampleType: None Pool: Default Usage: RenderTarget Type: Surface Format: A8R8G8B8

--------------------------------------------------------------------------------

--------------------------------------------------------------------------------
DepthStencil
MultiSampleQuality: 0 Height: 688 Width: 742 MultiSampleType: None Pool: Default Usage: DepthStencil Type: Surface Format: D24S8

--------------------------------------------------------------------------------

--------------------------------------------------------------------------------
ViewPort
MaxZ: 1 MinZ: 0 Height: 688 Width: 742 Y: 0 X: 0

--------------------------------------------------------------------------------
HVertexIndexBuffers.Reset
RenderTargets.Reset
Textures.Reset
Reset Texture:RTPrimary
Reset Texture:RTSecondary
Reset Texture:RTReflection
Reset Texture:RTLastFrame
Reset Texture:RTParallax
Reset Texture:RTGlow
Reset Texture:RTShadowMask
Reset Texture:RTShadowMask2
Reset Texture:RTHalfBackBuffer1
Reset Texture:RTHalfBackBuffer2
Reset Texture:RTShadowMap
Reset Texture:RTMotionBlur
Reset Texture:RTLastMotionBlur
Texture Cube:RTCubeEM
FullPath:
Size:256 x 256
Format:A8R8G8B8

--------------------------------------------------------------------------------
Fonts.Reset
Effects.Reset
Lights.Reset

Título: A Problem About Run Tutorial!
Publicado por: Haddd en 25 de Mayo de 2006, 04:24:48 pm
 have you installed the DX9.0c FEBRUARY 2006 edition or the April edition ? I think that's your problem, the DX version is not the right one.
Título: A Problem About Run Tutorial!
Publicado por: LuRenJia en 25 de Mayo de 2006, 04:37:16 pm
 Thanks to Haddd!

Yes, I installed DX April 2006. I can run all tutorials of last version.

DX Ver: 4.09.0000.0904
Título: A Problem About Run Tutorial!
Publicado por: LuRenJia en 25 de Mayo de 2006, 04:58:38 pm
 I am in China, here is 22:56, I must go to bed.

Noon or Night, hehe. ;)  
Título: A Problem About Run Tutorial!
Publicado por: LuRenJia en 26 de Mayo de 2006, 04:50:45 am
 I ran tutorial on other computer but got same error. :blink:
The computer:
P4 2.8G
512M
ATI X550
Intel 945P
WinXP
DX Ver: 4.09.0000.0904 (April 2006)

log.htm:
Código: [Seleccionar]
LOG Haddd

--------------------------------------------------------------------------------
BackBuffer
MultiSampleQuality: 0 Height: 480 Width: 640 MultiSampleType: None Pool: Default Usage: RenderTarget Type: Surface Format: A8R8G8B8

--------------------------------------------------------------------------------

--------------------------------------------------------------------------------
DepthStencil
MultiSampleQuality: 0 Height: 480 Width: 640 MultiSampleType: None Pool: Default Usage: DepthStencil Type: Surface Format: D24S8

--------------------------------------------------------------------------------

--------------------------------------------------------------------------------
ViewPort
MaxZ: 1 MinZ: 0 Height: 480 Width: 640 Y: 0 X: 0

--------------------------------------------------------------------------------
SO
Microsoft Windows NT 5.1.2600 Service Pack 2
Versión .NET:2.0.50727.42
CPU
Nº CPUs: 1
CPU Architecture: x86
CPU Identifier: x86 Family 15 Model 4 Stepping 1, GenuineIntel
CPU Level: 15
CPU Revision: 0401
MHz:2799
CPU: Intel(R) Pentium(R) 4 CPU 2.80GHz
DEVICE CAPS
ATI
Adapter:DeviceIdentifier: d7b71ee2-1823-11cf-1b7a-0a20a1c2cb35 WhqlLevel: 0 Revision: 0 SubSystemId: 0 DeviceId: 23395 VendorId: 4098 DriverVersion: 6.14.10.6571 DeviceName: \\.\DISPLAY1 Description: RADEON X550 DriverName: ati2dvag.dll
VIDEO RAM:252,706,816
Adapter number:0
Max user Clip Planes:6
Textures do not need to be power of two in size (under certain conditions)
Multiple Render Targets:4
PRIMITIVE CAPS:HasFogVertexClamped: True SupportsMultipleRenderTargetsPostPixelShaderBlending: False SupportsMultipleRenderTargetsIndependentBitDepths: False SupportsSeparateAlphaBlend: True SupportsFogAndSpecularAlpha: True SupportsPerStageConstant: False SupportsIndependentWriteMasks: False IsNullReference: False SupportsBlendOperation: True SupportsTextureStageStateArgumentTemp: True SupportsClipTransformedVertices: False SupportsClipPlaneScaledPoints: False SupportsColorWrite: True SupportsCullCounterClockwise: True SupportsCullClockwise: True SupportsCullNone: True SupportsMaskZ: True
Máximos de texturas. Ancho:2048 Alto:2048 Repetición:2048 Aspect Ratio:2048 Blend Stages:8
Vertex Shader. Versión:2.0 Nº de registros temporales:16
Pixel Shader. Versión:2.0 Nº de registros temporales:12 Nº de instrucciones:96.
PIXEL SHADER CAPS:NumberInstructionSlots: 96 StaticFlowControlDepth: 0 NumberTemps: 12 DynamicFlowControlDepth: 0 SupportsNoTextureInstructionLimit: False SupportsNoDependentReadLimit: False SupportsGradientInstructions: False SupportsArbitrarySwizzle: False SupportsPredication: False MaxDynamicFlowControlDepth: 24 MinDynamicFlowControlDepth: 0 MaxNumberTemps: 32 MinNumberTemps: 12 MaxStaticFlowControlDepth: 4 MinStaticFlowControlDepth: 0 MaxNumberInstructionSlots: 512 MinNumberInstructionSlots: 96

--------------------------------------------------------------------------------
Nueva textura 2D:noise
Texture 2D:noise
FullPath:InHouse\textures\noise.jpg
Size:256 x 256
Format:Dxt1
ImageFileFormat: Jpg ResourceType: Textures Format: X8R8G8B8 MipLevels: 1 Depth: 1 Height: 256 Width: 256

--------------------------------------------------------------------------------
Nueva textura 2D:RTPrimary
Nueva textura 2D:RTSecondary
Nueva textura 2D:RTReflection
Nueva textura 2D:RTLastFrame
Nueva textura 2D:RTParallax
Nueva textura 2D:RTGlow
Nueva textura 2D:RTShadowMask
Nueva textura 2D:RTShadowMask2
Nueva textura 2D:RTHalfBackBuffer1
Nueva textura 2D:RTHalfBackBuffer2
El total del peso para el Gaussian blur de 4 es de :1.017191
Nueva textura 2D:mesh
Texture 2D:mesh
FullPath:InHouse\textures\gizmos\mesh.tga
Size:32 x 32
Format:Dxt1
ImageFileFormat: Tga ResourceType: Textures Format: R8G8B8 MipLevels: 1 Depth: 1 Height: 32 Width: 32

--------------------------------------------------------------------------------
Nueva textura 2D:particleEffects
Texture 2D:particleEffects
FullPath:InHouse\textures\gizmos\particleEffects.tga
Size:32 x 32
Format:Dxt1
ImageFileFormat: Tga ResourceType: Textures Format: R8G8B8 MipLevels: 1 Depth: 1 Height: 32 Width: 32

--------------------------------------------------------------------------------
Nueva textura 2D:omni
Texture 2D:omni
FullPath:InHouse\textures\gizmos\omni.tga
Size:32 x 32
Format:Dxt1
ImageFileFormat: Tga ResourceType: Textures Format: R8G8B8 MipLevels: 1 Depth: 1 Height: 32 Width: 32

--------------------------------------------------------------------------------
Nueva textura 2D:spot
Texture 2D:spot
FullPath:InHouse\textures\gizmos\spot.tga
Size:32 x 32
Format:Dxt1
ImageFileFormat: Tga ResourceType: Textures Format: R8G8B8 MipLevels: 1 Depth: 1 Height: 32 Width: 32

--------------------------------------------------------------------------------
Nueva textura 2D:camera
Texture 2D:camera
FullPath:InHouse\textures\gizmos\camera.tga
Size:32 x 32
Format:Dxt1
ImageFileFormat: Tga ResourceType: Textures Format: R8G8B8 MipLevels: 1 Depth: 1 Height: 32 Width: 32

--------------------------------------------------------------------------------
Nueva textura 2D:dummy
Texture 2D:dummy
FullPath:InHouse\textures\gizmos\dummy.tga
Size:32 x 32
Format:Dxt1
ImageFileFormat: Tga ResourceType: Textures Format: R8G8B8 MipLevels: 1 Depth: 1 Height: 32 Width: 32

--------------------------------------------------------------------------------
Nueva textura 2D:brick_d
Texture 2D:brick_d
FullPath:base\textures\Tutorials\brick_d.jpg
Size:512 x 512
Format:Dxt1
ImageFileFormat: Jpg ResourceType: Textures Format: X8R8G8B8 MipLevels: 1 Depth: 1 Height: 512 Width: 512

--------------------------------------------------------------------------------
Nueva textura 2D:corona2
Texture 2D:corona2
FullPath:InHouse\textures\corona2.jpg
Size:128 x 128
Format:Dxt1
ImageFileFormat: Jpg ResourceType: Textures Format: X8R8G8B8 MipLevels: 1 Depth: 1 Height: 128 Width: 128

--------------------------------------------------------------------------------
El total del peso para el Gaussian blur de 16 es de :3.760271
El total del peso para el Gaussian blur de 16 es de :3.760271
El total del peso para el Gaussian blur de 8 es de :1.576066
El total del peso para el Gaussian blur de 16 es de :3.760271
El total del peso para el Gaussian blur de 16 es de :3.760271
OnDeviceLost
HVertexIndexBuffers.OnLost
HVertexBuffer.OnLost
Título: A Problem About Run Tutorial!
Publicado por: Haddd en 26 de Mayo de 2006, 09:28:25 am
 I don't know where is the problem  :(  
Título: A Problem About Run Tutorial!
Publicado por: LuRenJia en 26 de Mayo de 2006, 11:32:54 am
 
Código: [Seleccionar]
Error loading effect:interno.fx\n(1066): warning X3083: Truncating 4-vector to size 1
(1076): warning X3083: Truncating 4-vector to size 1
(1102): error X3000: syntax error: unexpected end of file

Is the info useful? :huh:  
Título: A Problem About Run Tutorial!
Publicado por: Haddd en 26 de Mayo de 2006, 11:38:42 am
 This is due the DX version, but you are telling me taht you have installed the April 2006, so....I don't know
Título: A Problem About Run Tutorial!
Publicado por: LuRenJia en 27 de Mayo de 2006, 01:24:03 pm
 Hi haddd!

I reinstalled dx April 2006 sdk, got same error. Here is a screenshot of dxdiag:
(http://photos.album.mop.com/c02/5b/34/57/610f30/1148728776414.jpg)

I used dx viewer to open interno.fx, it tell me could not load the file, here is a screenshot:
(http://photos.album.mop.com/c02/5b/34/57/610f30/1148727000350.jpg)

Log:
Código: [Seleccionar]
Loading effect - E:\Temp_F\softwaredEngine\Haddd2_0\Exes\interno.fx
SAS: 'File:E:\Temp_F\softwaredEngine\Haddd2_0\Exes\interno.fx' - Global parameter not found. Effect is not SAS-compliant.
SAS: Could not load effect 'File:E:\Temp_F\softwaredEngine\Haddd2_0\Exes\interno.fx'
Reverting to the default effect.
SAS: Loading effect 'Resource:#103'
Título: A Problem About Run Tutorial!
Publicado por: Haddd en 27 de Mayo de 2006, 02:51:26 pm
 I'm sorry i don't know why it doesn't work... :(  
Título: A Problem About Run Tutorial!
Publicado por: BeRSeRKeR en 28 de Mayo de 2006, 11:49:03 am
 Try posting the "interno.fx" file and the error description here.
Título: A Problem About Run Tutorial!
Publicado por: LuRenJia en 28 de Mayo de 2006, 03:03:07 pm
 Thanks!

But the file "interno.fx" has 1104 lines so that I can't post it.

The error description is:

Error loading effect:interno.fx\n(1066): warning X3083: Truncating 4-vector to size 1
(1076): warning X3083: Truncating 4-vector to size 1
(1102): error X3000: syntax error: unexpected end of file

When I used dx viewer to open the file, it told me:

Loading effect - E:\Temp_F\softwaredEngine\Haddd2_0\Exes\interno.fx
SAS: 'File:E:\Temp_F\softwaredEngine\Haddd2_0\Exes\interno.fx' - Global parameter not found. Effect is not SAS-compliant.
SAS: Could not load effect 'File:E:\Temp_F\softwaredEngine\Haddd2_0\Exes\interno.fx'
Reverting to the default effect.
SAS: Loading effect 'Resource:#103'

No more useful information. :(

My graphics cards are R9550 and X550, they just support vs2.0 and ps2.0, if you use nVidia's graphics card, you maybe used sm3.0,  that would cause the problem?

Sorry for my poor english.

Thanks to all guys!
Título: A Problem About Run Tutorial!
Publicado por: LuRenJia en 28 de Mayo de 2006, 03:09:03 pm
 btw. One of my friends ran the tutorials and this problem occured too. He used ATI R9600, I hope the information is useful. O_O  
Título: A Problem About Run Tutorial!
Publicado por: Vicente en 29 de Mayo de 2006, 10:43:53 am
 Strange, both Berserker and I have ATI 9600, and I´ve been able to run all tutorials succesfully...

Greetings!

Vicente
Título: A Problem About Run Tutorial!
Publicado por: winspy en 31 de Mayo de 2006, 03:10:41 am
 I have same error,I can't run every tutorials.
my computer is:
AMD 3000+
1GB
ATI 9600
Windows 2000
DirectX Version: 4.09.0000.0904 (April 2006)
 
Título: A Problem About Run Tutorial!
Publicado por: Vicente en 05 de Junio de 2006, 03:50:52 pm
I´m working on the source code now, so you´ll have to bear a little with me till we move to our new site and release the source. After that we´ll start to think a way of getting the engine to run there or at least to know better why it failed...

Greetings!

Vicente
Título: averiguasteis el problema?
Publicado por: rincha en 31 de Julio de 2006, 02:00:33 am
Hola he empezado con el tutorial01 y me dá los mismos problemas que a ellos al intentar ejecutar.
Tengo la versión de abril de los directx.
Conseguisteis averiguar cual era el problema?

Saludos
Título: A Problem About Run Tutorial!
Publicado por: Vicente en 31 de Julio de 2006, 07:39:10 am
Probablemente es la gráfica, pero ahora que tienes el código fuente, ¿podrías decir en que línea te da el error exactamente?