SKKU-ESLAB / opel-alpha

Open Platform Event Logger (OPEL) Project
Other
3 stars 0 forks source link

Bugs in quick-cam application based on RPI #110

Open sinban04 opened 7 years ago

sinban04 commented 7 years ago

I'm testing the RPI board and the existing code such as sample apps And i found some bugs during the execution of sample application At the quick cam application, i found the execution flow does not get out of the infinite loop. It's because the shared memory is not allocated repeatedly.

I'm in the middle of debugging, and i think i need to scrutinize the code of camera framework.

RedCarrottt commented 7 years ago

Related to #98

sinban04 commented 7 years ago

The bug occur at the infinite loop part of recStart() function.

for(;;){
  if((recObj->initSharedMemorySpace()))
  {
    break;
  }
}

And it does not the shared memory in initSharedMemorySpace() function

shmid = shmget((key_t) REC_SHM_KEY, 0, 0);
RedCarrottt commented 7 years ago

Please specify which source code file the bug occured in.

sinban04 commented 7 years ago

In the OPEL_DIR/node/src/cam_fw/recording/src/OPELRecordingAPI.cc