Git Product home page Git Product logo

Comments (8)

jadamcrain avatar jadamcrain commented on June 16, 2024 1

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.

jadamcrain avatar jadamcrain commented on June 16, 2024

from rodbus.

ejrfisher avatar ejrfisher commented on June 16, 2024

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.

jadamcrain avatar jadamcrain commented on June 16, 2024

from rodbus.

ejrfisher avatar ejrfisher commented on June 16, 2024

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.

ejrfisher avatar ejrfisher commented on June 16, 2024

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.

ejrfisher avatar ejrfisher commented on June 16, 2024

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.

ejrfisher avatar ejrfisher commented on June 16, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.