Skip to content

Object detection (Coral) 2.4.0 stops working and gives Clearing Interrupt event error #15

@erickpeniche

Description

@erickpeniche

CodeProject.AI Server info

Server version:   2.9.5
System:           Windows
Operating System: Windows (Windows 11 24H2)
CPUs:             11th Gen Intel(R) Core(TM) i9-11900K @ 3.50GHz (Intel)
                  1 CPU x 8 cores. 16 logical processors (x64)
GPU (Primary):    NVIDIA GeForce GTX 1650 (4 GiB) (NVIDIA) 
                  Driver: 566.36, CUDA: 12.6.85 (up to: 12.7), Compute: 7.5, cuDNN: 
System RAM:       64 GiB
Platform:         Windows
BuildConfig:      Release
Execution Env:    Native
Runtime Env:      Production
Runtimes installed:
  .NET runtime:     9.0.0
  .NET SDK:         Not found
  Default Python:   3.12.6
  Go:               Not found
  NodeJS:           22.11.0
  Rust:             Not found
Video adapter info:
  NVIDIA GeForce RTX 3090:
    Driver Version     32.0.15.6636
    Video Processor    NVIDIA GeForce RTX 3090
  NVIDIA GeForce GTX 1650:
    Driver Version     32.0.15.6636
    Video Processor    NVIDIA GeForce GTX 1650
System GPU info:
  GPU 3D Usage       2%
  GPU RAM Usage      753 MiB
Global Environment variables:
  CPAI_APPROOTPATH = <root>
  CPAI_PORT        = 32168

Describe the bug
Fresh install of CPAI 2.9.5 with only the Coral Object Detection module installed on a Windows 11 PC. Using the Makerfabs Dual TPU PCI adapter and a Coral Dual Edge TPU. Selected YOLOv8 Medium size and started the module. Everything is running fine, and after 30 mins to 1 hour it stops running and shows the following message in the server logs:

objectdetection_coral_adapter.py: F driver/mmio_driver.cc:308] Non-OK-status: interrupt_handler_->Close() status: Internal: Clearing Interrupt event failed: event_id:0 gle=1167

When I try to restart the module, I get the following log:

18:08:12:Attempting to start ObjectDetectionCoral with C:\Program Files\CodeProject\AI\modules\ObjectDetectionCoral\bin\windows\python39\venv\Scripts\python "C:\Program Files\CodeProject\AI\modules\ObjectDetectionCoral\objectdetection_coral_adapter.py"
18:08:12:
18:08:12:Module 'Object Detection (Coral)' 2.4.0 (ID: ObjectDetectionCoral)
18:08:12:Valid:            True
18:08:12:Module Path:      <root>\modules\ObjectDetectionCoral
18:08:12:Module Location:  Internal
18:08:12:AutoStart:        True
18:08:12:Queue:            objectdetection_queue
18:08:12:Runtime:          python3.9
18:08:12:Runtime Location: Local
18:08:12:FilePath:         objectdetection_coral_adapter.py
18:08:12:Start pause:      1 sec
18:08:12:Parallelism:      16
18:08:12:LogVerbosity:
18:08:12:Platforms:        all
18:08:12:GPU Libraries:    installed if available
18:08:12:GPU:              use if supported
18:08:12:Accelerator:
18:08:12:Half Precision:   enable
18:08:12:Environment Variables
18:08:12:CPAI_CORAL_MODEL_NAME = YOLOv8
18:08:12:CPAI_CORAL_MULTI_TPU  = True
18:08:12:MODELS_DIR            = <root>\modules\ObjectDetectionCoral\assets
18:08:12:MODEL_SIZE            = medium
18:08:12:
18:08:12:Started Object Detection (Coral) module
18:08:14:objectdetection_coral_adapter.py: F driver/mmio_driver.cc:308] Non-OK-status: interrupt_handler_->Close() status: Internal: Clearing Interrupt event failed: event_id:0 gle=1167
18:08:15:Module ObjectDetectionCoral has shutdown
18:08:15:objectdetection_coral_adapter.py: has exited

From this point, I can't run the module again until I reboot my PC. Not even restarting the service fixes this (through Services GUI in Windows)

To Reproduce
Steps to reproduce the behavior:

  1. Go to Status
  2. Click on "Start" in "Object Detection (Coral) 2.4.0"
  3. Scroll down to the most recent logs
  4. See error: objectdetection_coral_adapter.py: F driver/mmio_driver.cc:308] Non-OK-status: interrupt_handler_->Close() status: Internal: Clearing Interrupt event failed: event_id:0 gle=1167

Expected behavior
The Object Detection (Coral) 2.4.0 module should run with the Dual Edge TPU without issues with YOLOv8 Medium model. If any error is encountered, it should give a more detailed error on what went wrong.

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: Windows 11 Home
  • Browser: Chrome
  • Version: 132

Additional context
Add any other context about the problem here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions