Comments (4)
Thanks for the quick fix, but I need to re-open this.
Now it works with tuples - if you call the Nim proc only once. If you try to call it multiple times, e.g. from the example in tests:
s.tupleDiff((5, 4), (2, 3))
s.tupleDiff((15, 4), (2, 3))
you get either this:
munmap_chunk(): invalid pointer
No stack traceback available
SIGABRT: Abnormal termination.
or if you call it three times:
No stack traceback available
SIGSEGV: Illegal storage access. (Attempt to read from nil?)
from nimpy.
I tried to narrow it down a bit, but I couldn't find any meaningful conclusion that holds 100% of time.
It seems that procs which return a tuple are not a problem.
The problem rises sometimes with procs which have a tuple (or more than one tuple) as an argument - sometimes it works even on multiple calls, sometime it fails after a random number of calls (both with the same argument values and with different argument values).
from nimpy.
Should be good now.
from nimpy.
Should be good now.
It seems so.
Thank you once again for your quick fixes! Great customer support! :)
from nimpy.
Related Issues (20)
- tcustommodulename fails in Windows HOT 4
- Error when downloading Nimpy HOT 1
- Error when importing Nim file HOT 1
- Python can't import Nim 1.6.4 Modules on Windows HOT 4
- datetime support
- ModuleNotFoundError when importing OpenAI's gym lib HOT 2
- passing pointer? HOT 1
- Support for more than one argument type
- be safe HOT 1
- calling variable binded functions
- No callable attribute: exec [ValueError] HOT 6
- `SIGSEGV: Illegal storage access` error when trying to `echo py.exec("invalid python")` HOT 1
- How to use it with multithreading? HOT 2
- Iterators not exported when using PyNimObjectExperimental
- Custom setting the path to python.exe (Windows) HOT 1
- nim is slower than python HOT 3
- Exported type does not have attributes and python default functions. HOT 1
- Hello world Segmentation fault HOT 2
- Is it possible to export async proc? HOT 1
- error: cannot bind packed field HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nimpy.