Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
bliss
bliss
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 529
    • Issues 529
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Jira
    • Jira
  • Merge Requests 133
    • Merge Requests 133
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
  • Operations
    • Operations
    • Environments
  • Analytics
    • Analytics
    • CI / CD
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • Bliss
  • blissbliss
  • Issues
  • #2010

Closed
Open
Opened Sep 07, 2020 by Valentin Valls@valentin.valls
  • Report abuse
  • New issue
Report abuse New issue

Bliss progress bar do not release used file descriptors

After about 2000 loopscans, it sounds like BLISS consume all the available file descriptors.

I am using an order BLISS version (ffce7583)

This small script was used to check the result

while True: 
    loopscan(10, 0.001, diode1, diode2)

As we can see the file descriptors grow up

valls@lvalls:~/workspace/bliss.git((HEAD detached at ffce75837))$ ls -l /proc/11162/fd/ | wc -l
123
valls@lvalls:~/workspace/bliss.git((HEAD detached at ffce75837))$ ls -l /proc/11162/fd/ | wc -l
125
valls@lvalls:~/workspace/bliss.git((HEAD detached at ffce75837))$ ls -l /proc/11162/fd/ | wc -l
126
valls@lvalls:~/workspace/bliss.git((HEAD detached at ffce75837))$ ls -l /proc/11162/fd/ | wc -l
127

Disabling the progress bar looks to fix the issue.

diff --git a/bliss/data/display.py b/bliss/data/display.py
index cf2cfa86c..6bbf280f2 100644
--- a/bliss/data/display.py
+++ b/bliss/data/display.py
@@ -1018,9 +1018,9 @@ class ScanPrinterWithProgressBar(ScanPrinter):
             return
 
         started_event = gevent.event.Event()
-        self.progress_task = gevent.spawn(self._progress_bar, scan, started_event)
-        with gevent.Timeout(1.):
-            started_event.wait()
+        # self.progress_task = gevent.spawn(self._progress_bar, scan, started_event)
+        # with gevent.Timeout(1.):
+        #     started_event.wait()

This could be mitigate by using bliss --no-tmux, as in this case it is not provided with the progress bar.

Edited Sep 09, 2020 by Matias Guijarro
Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking
None
Due date
None
3
Labels
Urgent help wanted scan
Assign labels
  • View project labels
Reference: bliss/bliss#2010