Bug 189049 - [iOS] WKAttachmentTests.DropFolderAsAttachmentAndMoveByDragging encounters an exception on iOS simulator
Summary: [iOS] WKAttachmentTests.DropFolderAsAttachmentAndMoveByDragging encounters an...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: HTML Editing (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Wenson Hsieh
URL:
Keywords: DoNotImportToRadar
Depends on:
Blocks:
 
Reported: 2018-08-28 09:36 PDT by Wenson Hsieh
Modified: 2018-08-28 11:05 PDT (History)
10 users (show)

See Also:


Attachments
Patch (2.34 KB, patch)
2018-08-28 10:00 PDT, Wenson Hsieh
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Wenson Hsieh 2018-08-28 09:36:43 PDT
Crashed Thread:        0  Dispatch queue: com.apple.main-thread

Exception Type:        EXC_BAD_ACCESS (SIGSEGV)
Exception Codes:       EXC_I386_GPFLT
Exception Note:        EXC_CORPSE_NOTIFY

Termination Signal:    Segmentation fault: 11
Termination Reason:    Namespace SIGNAL, Code 0xb
Terminating Process:   exc handler [0]

Application Specific Information:
objc_msgSend() selector name: isFileURL
CoreSimulator 518.19 - Device: iPhone SE - Runtime: iOS 11.3 (15E217) - DeviceType: iPhone SE

Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0   libobjc.A.dylib               	0x000000012b91f985 objc_msgSend + 5
1   com.apple.Foundation          	0x000000012b4a2b51 __97-[NSItemProvider registerFileRepresentationForTypeIdentifier:fileOptions:visibility:loadHandler:]_block_invoke_2 + 209
2   TestWebKitAPI                 	0x000000010fcb6d06 simulateFolderDragWithURL(DragAndDropSimulator*, NSURL*)::$_3::operator()(void (NSURL*, bool, NSError*) block_pointer) const + 54 (WKAttachmentTests.mm:420)
3   TestWebKitAPI                 	0x000000010fcb6cc1 invocation function for block in simulateFolderDragWithURL(DragAndDropSimulator*, NSURL*) + 33 (WKAttachmentTests.mm:419)
4   com.apple.Foundation          	0x000000012b4a2a7a __97-[NSItemProvider registerFileRepresentationForTypeIdentifier:fileOptions:visibility:loadHandler:]_block_invoke + 81
5   com.apple.Foundation          	0x000000012b3f0ae2 __65-[NSItemProviderRepresentation _loadWithOptions:completionBlock:]_block_invoke.113 + 101
6   com.apple.Foundation          	0x000000012b3f053c -[NSItemProviderRepresentation performProgressTrackingWithLoaderBlock:onCancelCallback:] + 249
7   com.apple.Foundation          	0x000000012b3f0982 -[NSItemProviderRepresentation _loadWithOptions:completionBlock:] + 250
8   com.apple.Foundation          	0x000000012b3f223f -[NSItemProviderRepresentation loadFileCopyWithOptions_v2:completionHandler:] + 185
9   com.apple.Foundation          	0x000000012b4a3c6c -[NSItemProvider loadFileRepresentationForTypeIdentifier:completionHandler:] + 217
10  com.apple.WebCore             	0x000000011f6298e3 -[WebItemProviderPasteboard doAfterLoadingProvidedContentIntoFileURLs:synchronousTimeout:] + 2275 (WebItemProviderPasteboard.mm:763)
11  com.apple.WebCore             	0x000000011f628ff1 -[WebItemProviderPasteboard doAfterLoadingProvidedContentIntoFileURLs:] + 65 (WebItemProviderPasteboard.mm:733)
12  com.apple.WebKit              	0x0000000114f667e3 -[WKContentView(WKInteraction) dropInteraction:performDrop:] + 1059 (WKContentViewInteraction.mm:5526)
13  TestWebKitAPI                 	0x000000010fa0a849 -[DragAndDropSimulator _concludeDropAndPerformOperationIfNecessary] + 345
14  TestWebKitAPI                 	0x000000010fa0b7bb -[DragAndDropSimulator _advanceProgress] + 619 (DragAndDropSimulatorIOS.mm:512)
15  com.apple.Foundation          	0x000000012b35e9eb __NSFireDelayedPerform + 418
16  com.apple.CoreFoundation      	0x000000012c1fbe64 __CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION__ + 20
17  com.apple.CoreFoundation      	0x000000012c1fba52 __CFRunLoopDoTimer + 1026
18  com.apple.CoreFoundation      	0x000000012c1fb60a __CFRunLoopDoTimers + 266
19  com.apple.CoreFoundation      	0x000000012c1f2e4c __CFRunLoopRun + 2252
20  com.apple.CoreFoundation      	0x000000012c1f230b CFRunLoopRunSpecific + 635
21  com.apple.Foundation          	0x000000012b304b4a -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 274
22  TestWebKitAPI                 	0x000000010fc6bd43 TestWebKitAPI::Util::run(bool*) + 131 (UtilitiesCocoa.mm:34)
23  TestWebKitAPI                 	0x000000010fa09f5c -[DragAndDropSimulator runFrom:to:additionalItemRequestLocations:] + 2428
24  TestWebKitAPI                 	0x000000010fa095d7 -[DragAndDropSimulator runFrom:to:] + 119 (DragAndDropSimulatorIOS.mm:394)
25  TestWebKitAPI                 	0x000000010fc9d990 TestWebKitAPI::WKAttachmentTests_DropFolderAsAttachmentAndMoveByDragging_Test::TestBody()::$_1::operator()(NSURL*) const + 192 (WKAttachmentTests.mm:781)
26  TestWebKitAPI                 	0x000000010fc9d8c1 invocation function for block in TestWebKitAPI::WKAttachmentTests_DropFolderAsAttachmentAndMoveByDragging_Test::TestBody() + 33 (WKAttachmentTests.mm:777)
27  TestWebKitAPI                 	0x000000010fc9d733 runTestWithTemporaryFolder(void (NSURL*) block_pointer) + 691 (WKAttachmentTests.mm:405)
28  TestWebKitAPI                 	0x000000010fc9d39b TestWebKitAPI::WKAttachmentTests_DropFolderAsAttachmentAndMoveByDragging_Test::TestBody() + 555 (WKAttachmentTests.mm:777)
29  TestWebKitAPI                 	0x000000010fd39e2a testing::Test::Run() + 154 (gtest.cc:2101)
30  TestWebKitAPI                 	0x000000010fd3a8ed testing::internal::TestInfoImpl::Run() + 189 (gtest.cc:2318)
31  TestWebKitAPI                 	0x000000010fd3b95d testing::TestCase::Run() + 205 (gtest.cc:2419)
32  TestWebKitAPI                 	0x000000010fd41a3b testing::internal::UnitTestImpl::RunAllTests() + 891 (gtest.cc:4023)
33  TestWebKitAPI                 	0x000000010fd416b9 testing::UnitTest::Run() + 25 (gtest.cc:3687)
34  TestWebKitAPI                 	0x000000010fbe88ec TestWebKitAPI::TestsController::run(int, char**) + 172 (TestsController.cpp:86)
35  TestWebKitAPI                 	0x000000010fd0ee50 main + 416 (mainIOS.mm:47)
36  libdyld.dylib                 	0x000000012c870955 start + 1
Comment 1 Wenson Hsieh 2018-08-28 10:00:58 PDT
Created attachment 348301 [details]
Patch
Comment 2 WebKit Commit Bot 2018-08-28 11:05:01 PDT
Comment on attachment 348301 [details]
Patch

Clearing flags on attachment: 348301

Committed r235431: <https://trac.webkit.org/changeset/235431>
Comment 3 WebKit Commit Bot 2018-08-28 11:05:03 PDT
All reviewed patches have been landed.  Closing bug.