Details
-
Bug
-
Resolution: Done
-
P3: Somewhat important
-
6.2.0, 6.3
-
None
-
-
1fefff6d1f (qt/qtbase/dev) 1fefff6d1f (qt/tqtc-qtbase/dev) eff8c4d529 (qt/qtbase/6.3) eff8c4d529 (qt/tqtc-qtbase/6.3) 46696eaf1c (qt/qtbase/6.2) 46696eaf1c (qt/tqtc-qtbase/6.2)
Description
Opening a file from a content:// uri like Google Drive results in an error while IO operations take place:
W ParcelFileDescriptor: Peer expected signal when closed; unable to deliver after detach
This is caused by the fact that Qt detaches fd handle from the ParcelFileDescriptor and discards the instance while keeping the handle. This does not work services, which expect the ParcelFileDescriptor to remain alive.
This is also described at the docs:
You should not detach when the original creator of the descriptor is expecting a reliable signal through close() or closeWithError(java.lang.String).