neurophysik / jitcdde

Just-in-time compilation for delay differential equations
Other
56 stars 14 forks source link

Running mackey_glass_lyap.py causes Python crash #4

Closed hangyao closed 7 years ago

hangyao commented 7 years ago

Running mackey_glass_lyap.py in examples folder causes Python crash. mackey_glass.py is running okay.

Here is the output:

(python3) C:\Users\cyao\Documents\Python\jitcdde\examples>python mackey_glass_ly
ap.py
Generating, compiling, and loading C code.
jitced.c
C:\Users\cyao\AppData\Local\Temp\tmpvmly19ga\jitced.c(706): warning C4244: 'init
ializing': conversion from 'Py_ssize_t' to 'unsigned int', possible loss of data

   Creating library C:\Users\cyao\AppData\Local\Temp\tmpvmly19ga\Release\Users\c
yao\AppData\Local\Temp\tmpvmly19ga\jitced.cp36-win_amd64.lib and object C:\Users
\cyao\AppData\Local\Temp\tmpvmly19ga\Release\Users\cyao\AppData\Local\Temp\tmpvm
ly19ga\jitced.cp36-win_amd64.exp
Generating code
Finished generating code
Using default integration parameters.

Using Python 3.6, Windows 7, and VC++ Build Tool 14.0

Wrzlprmft commented 7 years ago

Thanks for your report. I will not get to a Windows machine before Monday, but until then can you please tell me:

hangyao commented 7 years ago

Thank you for your prompt response! To answer your questions:

  1. No. mackey_glass.py doesn't produce the conversion warning.
  2. In Windows, it prompts Python has stopped working... and then asks for sending the error information to MS. Here is the Windows error information metadata attached. Hopefully it will help.
  3. It crashes at line 33: DDE.step_on_discontinuities(max_step=1.0)

WERBCB3.tmp.WERInternalMetadata.txt

Wrzlprmft commented 7 years ago

This should be fixed now. Thanks again for spotting.