Back Midas Rome Roody Rootana
  Midas DAQ System  Not logged in ELOG logo
Entry  23 May 2023, Kou Oishi, Bug Report, Event builder fails at every 10 runs 
    Reply  31 May 2023, Ben Smith, Bug Report, Event builder fails at every 10 runs 
       Reply  02 Jun 2023, Kou Oishi, Bug Report, Event builder fails at every 10 runs 
This is a draft message, edit and submit it to make it permanent  
Message ID: 2523     Entry time: 02 Jun 2023     In reply to: 2521
Author: Kou Oishi 
Topic: Bug Report 
Subject: Event builder fails at every 10 runs 
Dear 

> > The event builder fails to initiate the 10th run since its startup, 
> > 'BM_NO_MEMORY: too many requests,'
> 
> Hi Kou,
> 
> It sounds like you might be calling bm_request_event() when starting a run, but not calling bm_delete_request() when the run stops. So you end up "leaking" event requests and eventually reach the limit of 10 open requests.
> 
> In examples/eventbuilder/mevb.c the request deletion happens in source_unbooking(), which is called as part of the "run stopping" logic. I've just updated the midas repository so the example compiles correctly, and was able to start/stop 15 runs without crashing.
> 
> Can you check the end-of-run logic in your version to ensure you're calling bm_delete_request()?
ELOG V3.1.4-2e1708b5