Skip to content
This repository was archived by the owner on Aug 8, 2023. It is now read-only.

Separate rendering part from specification part for sources#8821

Merged
jfirebaugh merged 3 commits into
masterfrom
render-sources
May 2, 2017
Merged

Separate rendering part from specification part for sources#8821
jfirebaugh merged 3 commits into
masterfrom
render-sources

Conversation

@jfirebaugh
Copy link
Copy Markdown
Contributor

Refs #8797, #8820

@ivovandongen ivovandongen mentioned this pull request Apr 26, 2017
28 tasks
@jfirebaugh jfirebaugh requested a review from ivovandongen April 26, 2017 00:50
@jfirebaugh
Copy link
Copy Markdown
Contributor Author

[MGLSourceQueryTests testQueryShapeSource] is failing intermittently; not sure why yet.

@jfirebaugh
Copy link
Copy Markdown
Contributor Author

jfirebaugh commented Apr 26, 2017

@ivovandongen Can you see why this test might be failing on CI? There's no diagnostics in the CI log, and I've run it many times locally without failure.

@ivovandongen
Copy link
Copy Markdown
Contributor

@frederoni Had a look and noticed that there seems to be a problem on the CI writing the crash log:

017-04-26 10:17:08.163 xcodebuild[2469:12542]  IDETestOperationsObserverDebug: (77500389-E03C-4473-8AE1-9920DBB4E704) OS X: Failure requesting crash reports in /Users/vagrant/Library/Logs/DiagnosticReports: Error Domain=com.apple.dt.Xcode.IDETesting.OSXCrashReportObserverError Code=1 "No file exists at /Users/vagrant/Library/Logs/DiagnosticReports" UserInfo={NSLocalizedDescription=No file exists at /Users/vagrant/Library/Logs/DiagnosticReports}
Failing tests:
    -[MGLSourceQueryTests testQueryShapeSource]
    -[MGLSourceQueryTests testQueryVectorSource]

No idea yet what the issue is. However, since both tests are failing, it might be in the setup. Maybe reading the json file? Going to add some logging to debug.

@jfirebaugh
Copy link
Copy Markdown
Contributor Author

@frederoni reproduced this locally, with the following output:

Exception Type:        EXC_CRASH (SIGABRT)
Exception Codes:       0x0000000000000000, 0x0000000000000000
Exception Note:        EXC_CORPSE_NOTIFY

Application Specific Information:
terminating with uncaught exception of type std::__1::bad_function_call: std::exception
abort() called

Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0   libsystem_kernel.dylib        	0x00007fffd81f7d42 __pthread_kill + 10
1   libsystem_pthread.dylib       	0x00007fffd82e55bf pthread_kill + 90
2   libsystem_c.dylib             	0x00007fffd815d420 abort + 129
3   libc++abi.dylib               	0x00007fffd6cb384a abort_message + 266
4   libc++abi.dylib               	0x00007fffd6cd8c37 default_terminate_handler() + 243
5   libobjc.A.dylib               	0x00007fffd77e6713 _objc_terminate() + 124
6   libc++abi.dylib               	0x00007fffd6cd5d69 std::__terminate(void (*)()) + 8
7   libc++abi.dylib               	0x00007fffd6cd59f2 __cxa_rethrow + 99
8   libobjc.A.dylib               	0x00007fffd77e494a objc_exception_rethrow + 40
9   com.apple.dt.XCTest           	0x0000000102fbb1f0 -[XCTWaiter waitForExpectations:timeout:enforceOrder:] + 1082
10  com.apple.dt.XCTest           	0x0000000102fbd1b4 +[XCTWaiter waitForExpectations:timeout:enforceOrder:] + 90
11  com.apple.dt.XCTest           	0x0000000102fd4afc -[XCTTestRunSession runTestsAndReturnError:] + 555
12  com.apple.dt.XCTest           	0x0000000102f6caaa -[XCTestDriver runTestsAndReturnError:] + 254
13  com.apple.dt.XCTest           	0x0000000102fc42bd _XCTestMain + 773
14  xctest                        	0x0000000102f5f48d 0x102f5e000 + 5261
15  libdyld.dylib                 	0x00007fffd80c9235 start + 1

@jfirebaugh jfirebaugh force-pushed the render-sources branch 2 times, most recently from f064d3f to c25f97f Compare May 1, 2017 19:10
jfirebaugh added 3 commits May 1, 2017 12:57
Once Source and RendererSource are split, Source will no longer have access to tiles.
This reverses #3095. Rationale:

* We're now exposing source attributes as a public API. Making those attributes unavailable at certain times complicates that API.
* We're preparing to split RenderSource out of Source. Removing this removes a point of coupling between the two.
@jfirebaugh
Copy link
Copy Markdown
Contributor Author

I figured out the test failures -- they were caused by the middle commit ("Load source TileJSON immediately"). The tests relied on source TileJSON not being loaded, because they supplied a fake access token. In addition, they were testing a situation that that change eliminates. So I rewrote them to test querying a detached source instead.

@jfirebaugh jfirebaugh merged commit 3f0c89d into master May 2, 2017
@jfirebaugh jfirebaugh deleted the render-sources branch May 2, 2017 15:45
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants