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

Problem of program run error during loop the open and close #776

Open
fkdlqj13245 opened this issue Sep 3, 2024 · 4 comments
Open

Problem of program run error during loop the open and close #776

fkdlqj13245 opened this issue Sep 3, 2024 · 4 comments

Comments

@fkdlqj13245
Copy link

fkdlqj13245 commented Sep 3, 2024

Describe what you want to implement and what the issue & the steps to reproduce it are:

It has the error during the program run( it happened close with the ulimit open files umber).
The device is not reachable or controlled by another application.

Code

    while True:
    idx += 1
    print('\nopen: ', idx)

    # open
    try:
        camera.Open()
    except Exception as e:
        print('[ERROR]: {0}'.format(traceback.format_exc()))
        break

    gc.collect()

    print('sys.getrefcount(instance):', sys.getrefcount(instance))
    print('sys.getrefcount(device):', sys.getrefcount(device))
    print('sys.getrefcount(camera):', sys.getrefcount(camera))

    # close
    camera.StopGrabbing()
    camera.Close()

    sleep(1)#sleep(10)

    print('closed')

# close
camera.StopGrabbing()
camera.Close()

Is your camera operational in Basler pylon viewer on your platform

Yes

Hardware setup & camera model(s) used

[PC Environment]

OS: Ubuntu 20.04(kernel version: 5.15.0-94-generic)

GPU: RTX3060
PYTHON: 3.8.10

Runtime information:

pypylon version: 3.0.1 ( also tested 4.0.0)

pylon viewer: 7.4 64bit
@fkdlqj13245 fkdlqj13245 changed the title Please write a comprehensive title Problem of protram run error during loop the open and close Sep 4, 2024
@fkdlqj13245 fkdlqj13245 changed the title Problem of protram run error during loop the open and close Problem of program run error during loop the open and close Sep 4, 2024
@SMA2016a
Copy link
Collaborator

SMA2016a commented Sep 6, 2024

This could be bug in GigE TL. you can build pypylon against pylon 7.0 or I can build a wheel if you let me your python version

@fkdlqj13245
Copy link
Author

Is the happened only pylon 7.4.0?
Here is the python version.
PYTHON: 3.8.10

@SMA2016a
Copy link
Collaborator

[Is the happened only pylon 7.4.0?] yes. would you build your version against 7.0?

@fkdlqj13245
Copy link
Author

Thanks. It will test. I have one more question. Is the bug fixed in pylon 8 version?

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