epics-extensions / medm

Motif Editor and Display Manager
Other
11 stars 9 forks source link

MEDM not responsive after lengthy image acquiring in "continuous" mode #6

Closed LeeYangLBLBCS closed 4 years ago

LeeYangLBLBCS commented 4 years ago

MEDM stays in "Collecting" mode after acquiring images in continuous mode for about an hour. Acquiring stopped after clicked on "stop", but stop responding afterwards to other button clicks. This may or may not be related to Pixel format =Mono12Packed, and Image1 "Array callbacks"=Enable, image1 Pluggin Enable. (see 2nd attached screen shot). image image

MarkRivers commented 4 years ago

I saw exactly this problem with the Oryx camera yesterday. I don't think it is related to collecting for a long time. Pressing Stop seems to often produce a deadlock at high frame rates in the Mono12Packed mode. When it happens if you type this command at the IOC prompt you will see that there are 2 epicsMutexes being held. That is a sign of a deadlock.

epicsMutexShowAll 1

I need to investigate this problem. I have not seen it with other cameras. I have not tested the Oryx much. I know they are using the Oryx at beamline 2-BM at APS, but they may have an older version of ADSpinnaker.

MarkRivers commented 4 years ago

This issue is not related to medm. Please move this issue to areaDetector/ADSpinnaker.

LeeYangLBLBCS commented 4 years ago

this is the mutex command you mentioned: epics> epicsMutexShowAll 1 ellCount(&mutexList) 37552 ellCount(&freeList) 0 epicsMutexId 0x55f409712ee0 source ../../asyn/asynPortDriver/asynPortDriver.cpp line 3700 epicsMutexId 0x55f409714300 source ../../asyn/asynDriver/asynManager.c line 1975

Am I getting them at the same lines as you do?

I think I don't have permission to move the issue. I can't find the "transfer issue" function described here: https://docs.github.com/en/github/managing-your-work-on-github/transferring-an-issue-to-another-repository

On Mon, Jul 27, 2020 at 4:42 PM Mark Rivers notifications@github.com wrote:

This issue is not related to medm. Please move this issue to areaDetector/ADSpinnaker.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/epics-extensions/medm/issues/6#issuecomment-664693627, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADSYGNAUBETS7ROHXIZHUXLR5YGHFANCNFSM4PJUZ5IA .

-- Lee Yang Lawrence Berkeley National Lab 1 Cyclotron Road, MS 7H210 Berkeley, California 97320 office:(510)486-7320 fax:(510) 486-4633

MarkRivers commented 4 years ago

That is what also see for the mutex.

Just close the issue here and open a new one in ADSpinnaker.

LeeYangLBLBCS commented 4 years ago

issue moved to https://github.com/areaDetector/ADSpinnaker/issues/4