Radar: Bad shift in DDTokenCacheMoveStreamOffset assertion when Init'ing a MKMapView

Originator:conrad.stoll
Number:rdar://15466761 Date Originated:
Status: Resolved:
Product: Product Version:
Classification: Reproducible:
 
Summary:
Provide a descriptive summary of the issue.

There is an intermittent crash that I get with no clear cause and very strange symptoms. The crashing line is in a private class. The debugger points to the DDTokenCacheMoveStreamOffset class on a background thread labeled as "Queue: NSOperationQueue Serial Queue".

The following also gets logged to console:

"2013-11-13 23:52:29.389 Runs[61726:5c07] DDRequire failed: the following assertion will only be logged once
2013-11-13 23:52:29.390 Runs[61726:5c07] assertion on /SourceCache/MobileDataDetectorsCore_Sim/MobileDataDetectorsCore-355/Sources/PushDown/DDTokenCache.c:360 "delta >= 0" failed :Bad shift in DDTokenCacheMoveStreamOffset, aborting"

Every other thread is also a private execution set. One thread includes DDApplyOptions.

The crash log I get from Flurry sometimes includes the following:

Full Stack Trace:
0   DataDetectorsCore                   0x329a6c48 <redacted> + 319
1   DataDetectorsCore                   0x329a6acb <redacted> + 2182
2   DataDetectorsCore                   0x329a6a71 <redacted> + 2092
3   DataDetectorsCore                   0x329a6a71 <redacted> + 2092
4   DataDetectorsCore                   0x329a6a71 <redacted> + 2092
5   DataDetectorsCore                   0x329a5df1 _DDScannerScanQuery + 328
6   DataDetectorsUI                     0x329c0f7d -[DDOperation main] + 288
7   Foundation                          0x2ef30aa5 -[__NSOperationInternal _start:] + 772
8   Foundation                          0x2efd496d <redacted> + 60
9   libdispatch.dylib                   0x38e47e7b <redacted> + 374
10  libdispatch.dylib                   0x38e44f93 <redacted> + 42
11  libdispatch.dylib                   0x38e48745 <redacted> + 76
12  libdispatch.dylib                   0x38e489c5 <redacted> + 56
13  libsystem_pthread.dylib             0x38f72dff __pthread_wqthread + 298
14  libsystem_pthread.dylib             0x38f72cc4 _start_wqthread + 8

The line of my code where this seems to sometimes originate from, if it is to be believed, is this:

    _mapView = [[MKMapView alloc] initWithFrame:CGRectMake(0.0f, 0.0f, 140.0f, 90.0f)];

Which is being called in a view's initWIthFrame method.

I seriously have no idea what is causing this. I just wish it was fixed :(


Steps to Reproduce:
In numbered format, detail the exact steps taken to produce the bug.

Expected Results:
Describe what you expected to happen when you executed the steps above.

Actual Results:
Explain what actually occurred when steps above were executed.

Regression:
Describe circumstances where the problem occurs or does not occur, such as software versions and/or hardware configurations.

Notes:
Provide additional information, such as references to related problems, workarounds and relevant attachments.

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!