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

Exception Invalid FrameDim - Basler ACE USB3 #39

Open
dschick opened this issue Oct 11, 2024 · 5 comments
Open

Exception Invalid FrameDim - Basler ACE USB3 #39

dschick opened this issue Oct 11, 2024 · 5 comments

Comments

@dschick
Copy link

dschick commented Oct 11, 2024

Hi all,

I am trying to run a basler ace acA800-510um via conda on Win10.
The camera is working via the pylonviewer and and also the Lima Python interface seem so be functional.

However, when starting the LimaCCDs TangoDS I receive the following error messages:

(basler) PS C:\Users\loc_schick> LimaCCDs.exe localhost
basler camera_id: sn://24933363
[2024/10/11 15:48:50.487870] 16431ce71f0     *Camera*lima::Basler::Camera::setInterPacketDelay (\BaslerCamera.cpp:1430)-Warning: Parameter not found in CIntegerParameter::SetValue. (No node attached.)
[2024/10/11 15:48:50.488024] 16431ce71f0     *Camera*lima::Basler::Interface::Interface (\BaslerInterface.cpp:41)-Always: force_video_mode=0
[2024/10/11 15:48:50.503228] 16431ce71f0     *Application*apply_buffer_param_properties-Always: BufferAllocParameters [params]: <durationPolicy=EPHEMERAL, sizePolicy=AUTOMATIC, initMem=1, reqMemSizePercent=70>
[2024/10/11 15:48:50.503228] 16431ce71f0     *Application*apply_buffer_param_properties-Always: AccBufferParameters [params]: <durationPolicy=EPHEMERAL, sizePolicy=AUTOMATIC, initMem=0, reqMemSizePercent=0>
rcent=0>
[2024/10/11 15:48:50.622206] 16431ce71f0 *Application*apply_config-Always: Applied config : C:\Users\loc_schick\lima_localhost.cfg : default
[2024/10/11 15:49:03.159855] 16431ce81c0 *Application*read_acc_saturated_cblevel-Error: Accumulation threshold plugins not loaded
[2024/10/11 15:49:03.159855] 16431ce81c0 *Application*read_acc_saturated_cblevel-Error: Accumulation threshold plugins not loaded
[2024/10/11 15:49:03.161034] 16431ce81c0 *Application*read_acc_saturated_cblevel-Error: Accumulation threshold plugins not loaded
[2024/10/11 15:49:03.283306] 16431ce81c0             *Common*lima::GetDefMaxNbBuffers (common\src\MemUtils.cpp:114)-Error: Invalid FrameDim: <0x1x1-Bpp8>
********* Exception(InvalidValue): Invalid FrameDim
[2024/10/11 15:49:03.285569] 16431ce81c0             *Common*lima::GetDefMaxNbBuffers (common\src\MemUtils.cpp:114)-Error: Invalid FrameDim: <0x1x1-Bpp8>
********* Exception(InvalidValue): Invalid FrameDim
[2024/10/11 15:49:03.313894] 16431ce81c0 *Application*read_acc_saturated_cblevel-Error: Accumulation threshold plugins not loaded
[2024/10/11 15:49:03.315176] 16431ce81c0 *Application*read_acc_saturated_cblevel-Error: Accumulation threshold plugins not loaded
[2024/10/11 15:49:03.316095] 16431ce81c0 *Application*read_acc_saturated_cblevel-Error: Accumulation threshold plugins not loaded
[2024/10/11 15:49:03.461402] 16431ce81c0             *Common*lima::GetDefMaxNbBuffers (common\src\MemUtils.cpp:114)-Error: Invalid FrameDim: <0x1x1-Bpp8>
********* Exception(InvalidValue): Invalid FrameDim

while the last exception is repeated several time before the TangoDS dies.
A direct restart leads to the following scilent death:

(basler) PS C:\Users\loc_schick> LimaCCDs.exe localhost
basler camera_id: sn://24933363
[2024/10/11 15:50:44.189123] 2448d03a790     *Camera*lima::Basler::Camera::setInterPacketDelay (\BaslerCamera.cpp:1430)-Warning: Parameter not found in CIntegerParameter::SetValue. (No node attached.)
[2024/10/11 15:50:44.189123] 2448d03a790     *Camera*lima::Basler::Interface::Interface (\BaslerInterface.cpp:41)-Always: force_video_mode=0
[2024/10/11 15:50:44.204189] 2448d03a790     *Application*apply_buffer_param_properties-Always: BufferAllocParameters [params]: <durationPolicy=EPHEMERAL, sizePolicy=AUTOMATIC, initMem=1, reqMemSizePercent=70>
[2024/10/11 15:50:44.204189] 2448d03a790     *Application*apply_buffer_param_properties-Always: AccBufferParameters [params]: <durationPolicy=EPHEMERAL, sizePolicy=AUTOMATIC, initMem=0, reqMemSizePercent=0>
[2024/10/11 15:50:44.204189] 2448d03a790     *Application*apply_buffer_param_properties-Always: SavingZBufferParameters [params]: <durationPolicy=EPHEMERAL, sizePolicy=AUTOMATIC, initMem=0, reqMemSizePercent=0>
[2024/10/11 15:50:44.337353] 2448d03a790 *Application*apply_config-Always: Applied config : C:\Users\loc_schick\lima_localhost.cfg : default

I use more or less only default parameters of the LimaCCDs and Basler TangoDS.

Thanks in advance for any help and suggestions.

Best

Daniel

@laurent-claustre
Copy link
Contributor

laurent-claustre commented Oct 14, 2024

Hi Daniel,
this is a known issue, with USB3 camera and using serial_number the camera is not well detected, see the first warning message:

[2024/10/11 15:48:50.487870] 16431ce71f0     *Camera*lima::Basler::Camera::setInterPacketDelay (\BaslerCamera.cpp:1430)-Warning: Parameter not found in CIntegerParameter::SetValue. (No node attached.)

Instead, you should set a user_name property in jive and configure the camera "Device User ID" using pylonviewer:

Screenshot from 2024-10-14 10-15-20

@laurent-claustre
Copy link
Contributor

humm, sorry, but I was wrong, under linux and using the latest lima package and pylon6-sdk (6.3) I cannot reproduce your issue.
Using serial number works fine with my USB3 camera a cA1440-220uc model.

@dschick
Copy link
Author

dschick commented Oct 14, 2024

thanks for your quick reply and the testing.
I thinkt Lima is connecting correctly for the first time after start, either with serialnumber or username.
However, Lima still crashes silently after a few seconds.

I will try it under Linux next, since right now, I am using Windows

@laurent-claustre
Copy link
Contributor

laurent-claustre commented Oct 14, 2024

Running atkpanel I get the same error msg about FramDim, this is not so critical, just the buffer_max_number attribute which fails. I continue to investigate

@laurent-claustre
Copy link
Contributor

laurent-claustre commented Oct 14, 2024

but this attribute is not the real issue, this attribute is not valid until you start an acquisition. Remember that Atkpanel is polling ALL the attributes every 1 sec, this is why you get repeated error messages.
I suspect now a issue with windows only.

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

2 participants