You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
> @yoe [91cb697](https://github.com/OpenLightingProject/ola/commit/91cb697912664d58317d001f1e7998ac556c9de6) should fix those test on Big Endian architecture, would you mind testing it somehow as I've only dummied it up by reversing stuff on an LE machine. @brucelowekamp care to take a look at it for any Python howlers I've introduced?
I don't know of any python concerns, but I do have to ask if this isn't a protocol error? It's sent out on the socket, so if you were to use the API across two endian machines, it wouldn't work? Looks like both the Python and C++ do the same thing, but still....
There won't/shouldn't be any inter-machine comms and hence any multi-endian issues. Whereas if we do fix it, then if someone runs an unfixed client against a fixed server, it won't work. Although given this is only on BE machines, I guess it's a fairly low risk. It will definitely be a breaking change though, so I'm not sure I'm personally convinced of the benefit apart from hypothetically. I guess we should at least flag the lines of code with a TODO and possibly consider making the change for 0.11.0 or similar.
(10:52:23) wouter: PeterNewman4: your patches don't seem to resolve the issue
(10:52:31) wouter: that is, it kind of works, but things seem to hang
(10:52:58) wouter: and I also get a line saying "WARNING:root:Protocol mismatch: 3 != 1" when I run python/ola/RDMTest.py
Having had a better look, that code is in our codebase:
Given it's the RDM ones, presumably it's of course going to be because they have responses too and I haven't mangled those responses on the way back out, so it can't read them on BE architectures/thinks they're corrupt!
If it helps: I do have a Big Endian machine here (iBook G4) that I can use to test stuff. Of course, qemu might do as well but I wanted to mention it anyways. Remote access can be arranged but beware, it's a slow machine
Activity
peternewman commentedon Nov 12, 2022
My original reply:
I'd be tempted to agree with you @brucelowekamp and I did consider fixing it. However due to the limitations mentioned here:
http://docs.openlighting.org/ola/doc/latest/rpc_system.html#rpc_OLA_RPC
There won't/shouldn't be any inter-machine comms and hence any multi-endian issues. Whereas if we do fix it, then if someone runs an unfixed client against a fixed server, it won't work. Although given this is only on BE machines, I guess it's a fairly low risk. It will definitely be a breaking change though, so I'm not sure I'm personally convinced of the benefit apart from hypothetically. I guess we should at least flag the lines of code with a TODO and possibly consider making the change for 0.11.0 or similar.
Unfortunately @yoe found it didn't entirely work:
Having had a better look, that code is in our codebase:
ola/python/ola/rpc/StreamRpcChannel.py
Lines 246 to 250 in d101097
Given it's the RDM ones, presumably it's of course going to be because they have responses too and I haven't mangled those responses on the way back out, so it can't read them on BE architectures/thinks they're corrupt!
Originally posted by @peternewman in #1687 (comment)
peternewman commentedon Nov 12, 2022
In fact this would need to be for 1.0.0 given "MAJOR version when you make incompatible API changes".
[-]RPC API Has fixed endianness[/-][+]RPC API Has host endianness[/+]kripton commentedon Feb 15, 2023
If it helps: I do have a Big Endian machine here (iBook G4) that I can use to test stuff. Of course, qemu might do as well but I wanted to mention it anyways. Remote access can be arranged but beware, it's a slow machine
DaAwesomeP commentedon Feb 15, 2023
I'm going to attempt s390x in QEMU in the new GitHub Actions CI. For Python projects I have used cibuildwheel which uses QEMU for s390x very reliably.