quietvoid / pgen_client

Utility to control a Raspberry Pi with a PGenerator installation
GNU General Public License v3.0
11 stars 1 forks source link

crash when measuring using internal generator #19

Open 24fpsDaVinci opened 1 month ago

24fpsDaVinci commented 1 month ago

i'm testing the 22pt greyscale patch list using the internal generator like in the example photo. It either hangs or crashes immediately when I press measure patches. I'm on argyll 3.2.0 and spotread is in path. Running Fedora wayland.

 2024-05-20T04:02:43.395Z INFO  pgen_client::pgen::client > Sent pattern RGB: [0, 0, 0], background: [0, 0, 0]
thread 'main' panicked at src/utils.rs:137:17:
attempt to subtract with overflow
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
quietvoid commented 1 month ago

You're supposed to build in release mode, this should only happen in debug mode.

24fpsDaVinci commented 1 month ago

I switched to building release it still hangs when I press measure patches or measure selected patches, I can see the i1d3 flash once to indicated its connected when i press start spotread..

Screenshot from 2024-05-20 11-50-44

24fpsDaVinci commented 1 month ago

here it hangs when i'm measuring "selected patch" 1024,1024,1024 should be pretty fast normally with spotread. I'm running the binary from target/release directory.

 a@fedora:~/pgen_client-1.0.2/target/release$ ./pgen_client 
 2024-05-20T16:03:19.626Z INFO  pgen_client::pgen::client > Connecting to 192.168.1.9:85
 2024-05-20T16:03:19.631Z INFO  pgen_client::pgen::client > Successfully connected to 192.168.1.9:85
 2024-05-20T16:03:19.644Z WARN  pgen_client::pgen::controller::handler > Reconnecting TCP socket stream
 2024-05-20T16:03:19.652Z INFO  pgen_client::pgen::client              > Successfully connected to 192.168.1.9:85
 2024-05-20T16:03:36.610Z INFO  pgen_client::pgen::client              > Sent pattern RGB: [0, 0, 0], background: [0, 0, 0]
 2024-05-20T16:03:57.089Z INFO  pgen_client::pgen::client              > Sent pattern RGB: [1023, 1023, 1023], background: [0, 0, 0]

Screenshot from 2024-05-20 12-04-14

and running spotread manually

a@fedora:~/pgen_client-1.0.2/target/release$ spotread

Place instrument on spot to be measured,
and hit [A-Z] to read white and setup FWA compensation (keyed to letter)
[a-z] to read and make FWA compensated reading from keyed reference
'r' to set reference, 's' to save spectrum,
'f' to report cal. refresh rate, 'F' to measure refresh rate
'h' to toggle high res., 'k' to do a calibration
Hit ESC or Q to exit, any other key to take a reading:  

 Result is XYZ: 139.091458 143.734469 167.829302, D50 Lab: 114.911651 0.680851 -27.716282
quietvoid commented 1 month ago

Can you run it with more verbosity, using -vvv.

pgen_client -vvv
24fpsDaVinci commented 1 month ago

ok i attached the log instead, the formatting on github causes a really long line if I pasted it here.

log.txt

quietvoid commented 1 month ago

I guess there's not enough logs. I'm not sure what's happening.

24fpsDaVinci commented 1 month ago

hmmm, are you also using argyll 3.2.0?

quietvoid commented 1 month ago

Last time I've used it was probably still 3.1.0. Would need to try it.