Comments (8)
No new release for the Rodbus library yet.
I plan to do a maintenance release soon that will incorporate some more debug info into the Java library loading process. Maybe that will shed some light on what's going on in your app.
from rodbus.
from rodbus.
MacOs - 14.2
ARM - Apple M1 Max
If it at all matters: I have also tried running the application in a docker container, and although the error output is different the culprit seems to be the same Runtime object
from rodbus.
from rodbus.
From my understanding the docker daemon manages the "architecture" of the built image. I can try to set a target platform/architecture otherwise its just based off the base image which for this specific example was eclipse-temurin:17-alpine
which was AMD64 not ARM64/aarch64...
Ill try and find an image to build off of that is actually aarch64 and go from there
from rodbus.
I now have a linux based image running with aarch64 architecture for the same app in docker container but I am still running into an error when creating the Runtime Object .
Error Message
2023-12-15 11:13:43 thread '<unnamed>' panicked at 'called `Result::unwrap()` on an `Err` value: JavaException', /target/aarch64-unknown-linux-gnu/release/build/rodbus-ffi-java-1095f2a2549debe7/out/jni.rs:3439:187
2023-12-15 11:13:43 note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
2023-12-15 11:13:43 fatal runtime error: failed to initiate panic, error 4164302448
os info
cat /etc/os-release
PRETTY_NAME="Ubuntu 22.04.3 LTS"
NAME="Ubuntu"
VERSION_ID="22.04"
VERSION="22.04.3 LTS (Jammy Jellyfish)"
Architecture info
# lscpu
Architecture: aarch64
CPU op-mode(s): 64-bit
Byte Order: Little Endian
Let me know if theres any more info I can provide
from rodbus.
Moved my project up to java 21 to see if that changed anything locally or in docker. No change
Read through the mentioned issue, but not sure if it relates to the errors I am seeing or if there is a new release for the rodbus library?
from rodbus.
Sounds great! Thanks for the update
edit: seems like the Runtime Object is no longer the culprit for this error but instead its moved down to either DeviceMap
or ClientChannel.createTcp
I'll update the issue if I can find a better description of the issue.
from rodbus.
Related Issues (20)
- Add custom function code like tokio-modbus HOT 1
- Make TlsError opaque
- Tokio master channel tasks don't properly exit HOT 1
- Java runtime reference HOT 2
- Unable to load shared library 'rodbus_ffi' or one of its dependencies. HOT 4
- RODBUS_BACKUP_VERSION not being properly set in cmake
- Invalid JSON Log Formatting HOT 1
- Cannot connect to rodbus server HOT 6
- Runtime error when updating register values HOT 2
- FFI client can spawn tasks faster than they can be executed leading to memory build-up HOT 18
- TCP and TLS clients do not resolve DNS names HOT 1
- Read frames while waiting for a task
- Panic when creating RTU server
- TCP client and serial port state callbacks HOT 1
- Allow client certificates without role extension by configuration HOT 1
- Add IP address filter to TCP server HOT 1
- Document that Task<> returned by read/write methods may contain RequestException HOT 2
- Client connection retry does not reset to MIN after successful connection
- remove this 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 rodbus.