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

Crash error in packaged code #460

Open
blabounty opened this issue Oct 6, 2017 · 1 comment
Open

Crash error in packaged code #460

blabounty opened this issue Oct 6, 2017 · 1 comment

Comments

@blabounty
Copy link

Using sbt/ Play Framework
Running a heartbeat function as its own thread works when the code is compiled into .class files.
When packaged for distribution, the jzmq.dll file fails on the launch of the heartbeat thread.

Using the -Xcheck:jni option on Java, the error is this:

FATAL ERROR in native method: Static field ID passed to JNI
at org.zeromq.ZMQ$Socket.construct(Native Method)
at org.zeromq.ZMQ$Socket.(ZMQ.java:1359)
at org.zeromq.ZMQ$Context.socket(ZMQ.java:363)
at org.zeromq.ZContext.createSocket(ZContext.java:90)
at module.JzmqHeartbeat.monitorHeartbeat(JzmqHeartbeat.java:59)
at module.JzmqHeartbeat.run(JzmqHeartbeat.java:82)
at java.lang.Thread.run(Thread.java:748)

I can provide core dump or log files as needed and would be happy to work on a solution. This is halting progress on a necessary project for me.

@blabounty
Copy link
Author

Additional information:
Running on Windows Server 2012 this problem happened when the JZMQ Visual Studio project was built for an earlier version of the Visual C++ Redistributable Library -- updating to the version requiring The C++ 2015 redistributable made it go away.

Running on Windows Server 2016 on Amazon AWS with the newer version results in this issue.

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