dept2 / qtmultimedia-gphoto

Qt 5 Multimedia framework gphoto2 camera plugin
25 stars 11 forks source link

Crash on Application exit #11

Open hcw70 opened 4 years ago

hcw70 commented 4 years ago

There is a crash on closing the camera (application exit).

Tested with fafb9ac77e17d04b0a264d78e3603d2a338b2e06 . Backtrace:

1   ??                                                                                                                                                                                                                                                                                                                                                                                 0x7fffd036e570 
2   ??                                                                                                                                                                                                                                                                                                                                                                                 0x7fffc9ef7098 
3   gp_camera_wait_for_event                                                                                                                                                                                                                                                                                                                                                           0x7fffda29e850 
4   GPhotoCamera::waitForOperationCompleted                                                                                                                                                                                                                                                                                                                      gphotocamera.cpp 676  0x7fffda3a2401 
5   GPhotoCamera::setParameter                                                                                                                                                                                                                                                                                                                                   gphotocamera.cpp 394  0x7fffda3a0380 
6   GPhotoCamera::setMirrorPosition                                                                                                                                                                                                                                                                                                                              gphotocamera.cpp 609  0x7fffda3a1ae5 
7   GPhotoCamera::stopViewFinder                                                                                                                                                                                                                                                                                                                                 gphotocamera.cpp 601  0x7fffda3a19e3 
8   GPhotoCamera::closeCamera                                                                                                                                                                                                                                                                                                                                    gphotocamera.cpp 568  0x7fffda3a1899 
9   GPhotoCamera::~GPhotoCamera                                                                                                                                                                                                                                                                                                                                  gphotocamera.cpp 65   0x7fffda39e102 
10  GPhotoCamera::~GPhotoCamera                                                                                                                                                                                                                                                                                                                                  gphotocamera.cpp 66   0x7fffda39e152 
11  std::default_delete<GPhotoCamera>::operator()                                                                                                                                                                                                                                                                                                                unique_ptr.h     81   0x7fffda3c3935 
12  std::unique_ptr<GPhotoCamera, std::default_delete<GPhotoCamera>>::~unique_ptr                                                                                                                                                                                                                                                                                unique_ptr.h     284  0x7fffda3c2cd2 
13  std::pair<int const, std::unique_ptr<GPhotoCamera, std::default_delete<GPhotoCamera>>>::~pair                                                                                                                                                                                                                                                                stl_pair.h       208  0x7fffda3c2474 
14  __gnu_cxx::new_allocator<std::_Rb_tree_node<std::pair<int const, std::unique_ptr<GPhotoCamera, std::default_delete<GPhotoCamera>>>>>::destroy<std::pair<int const, std::unique_ptr<GPhotoCamera, std::default_delete<GPhotoCamera>>>>                                                                                                                        new_allocator.h  153  0x7fffda3c2498 
15  std::allocator_traits<std::allocator<std::_Rb_tree_node<std::pair<int const, std::unique_ptr<GPhotoCamera, std::default_delete<GPhotoCamera>>>>>>::destroy<std::pair<int const, std::unique_ptr<GPhotoCamera, std::default_delete<GPhotoCamera>>>>                                                                                                           alloc_traits.h   497  0x7fffda3c1973 
16  std::_Rb_tree<int, std::pair<int const, std::unique_ptr<GPhotoCamera, std::default_delete<GPhotoCamera>>>, std::_Select1st<std::pair<int const, std::unique_ptr<GPhotoCamera, std::default_delete<GPhotoCamera>>>>, std::less<int>, std::allocator<std::pair<int const, std::unique_ptr<GPhotoCamera, std::default_delete<GPhotoCamera>>>>>::_M_destroy_node stl_tree.h       642  0x7fffda3c0bb3 
17  std::_Rb_tree<int, std::pair<int const, std::unique_ptr<GPhotoCamera, std::default_delete<GPhotoCamera>>>, std::_Select1st<std::pair<int const, std::unique_ptr<GPhotoCamera, std::default_delete<GPhotoCamera>>>>, std::less<int>, std::allocator<std::pair<int const, std::unique_ptr<GPhotoCamera, std::default_delete<GPhotoCamera>>>>>::_M_drop_node    stl_tree.h       650  0x7fffda3bf75d 
18  std::_Rb_tree<int, std::pair<int const, std::unique_ptr<GPhotoCamera, std::default_delete<GPhotoCamera>>>, std::_Select1st<std::pair<int const, std::unique_ptr<GPhotoCamera, std::default_delete<GPhotoCamera>>>>, std::less<int>, std::allocator<std::pair<int const, std::unique_ptr<GPhotoCamera, std::default_delete<GPhotoCamera>>>>>::_M_erase        stl_tree.h       1915 0x7fffda3bddea 
19  std::_Rb_tree<int, std::pair<int const, std::unique_ptr<GPhotoCamera, std::default_delete<GPhotoCamera>>>, std::_Select1st<std::pair<int const, std::unique_ptr<GPhotoCamera, std::default_delete<GPhotoCamera>>>>, std::less<int>, std::allocator<std::pair<int const, std::unique_ptr<GPhotoCamera, std::default_delete<GPhotoCamera>>>>>::~_Rb_tree       stl_tree.h       995  0x7fffda3bbf8e 
20  std::map<int, std::unique_ptr<GPhotoCamera, std::default_delete<GPhotoCamera>>>::~map                                                                                                                                                                                                                                                                        stl_map.h        300  0x7fffda3bbd90 
... <Mehr>                                                                                                                                                                                                                                                                                                                                                                                            
IvanPinezhaninov commented 4 years ago

Could you test commit 5fa083b7b187cc5770227c35efd219d0335f25b8?