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

Painter Render Crash #1096

Merged
merged 1 commit into from
Mar 26, 2015
Merged

Painter Render Crash #1096

merged 1 commit into from
Mar 26, 2015

Conversation

kkaefer
Copy link
Member

@kkaefer kkaefer commented Mar 26, 2015

Close the app, open the app!

Thread : Crashed: Map
0  Embark                         0x00000001002ab214 mbgl::Painter::render(mbgl::Style const&, std::__1::set<mbgl::util::ptr<mbgl::StyleSource>, std::__1::less<mbgl::util::ptr<mbgl::StyleSource> >, std::__1::allocator<mbgl::util::ptr<mbgl::StyleSource> > > const&, mbgl::TransformState, std::__1::chrono::time_point<std::__1::chrono::steady_clock, std::__1::chrono::duration<long long, std::__1::ratio<1l, 1000000000l> > >) (memory:3930)
1  Embark                         0x00000001002ab1e4 mbgl::Painter::render(mbgl::Style const&, std::__1::set<mbgl::util::ptr<mbgl::StyleSource>, std::__1::less<mbgl::util::ptr<mbgl::StyleSource> >, std::__1::allocator<mbgl::util::ptr<mbgl::StyleSource> > > const&, mbgl::TransformState, std::__1::chrono::time_point<std::__1::chrono::steady_clock, std::__1::chrono::duration<long long, std::__1::ratio<1l, 1000000000l> > >) (painter.cpp:236)
2  Embark                         0x000000010028fb6c std::__1::__function::__func<mbgl::Map::start(bool)::$_3, std::__1::allocator<mbgl::Map::start(bool)::$_3>, void ()>::operator()() (map.cpp:814)
3  Embark                         0x000000010031d558 uv__async_event (async.c:80)
4  Embark                         0x000000010031d97c uv__async_io (async.c:156)
5  Embark                         0x0000000100329070 uv__io_poll (kqueue.c:233)
6  Embark                         0x000000010031dff4 uv_run (core.c:317)
7  Embark                         0x000000010028da88 mbgl::Map::run() (map.cpp:272)
8  Embark                         0x000000010028fa40 void* std::__1::__thread_proxy<std::__1::tuple<mbgl::Map::start(bool)::$_4> >(void*) (atomic:574)
9  libsystem_pthread.dylib        0x00000001958c7dc8 _pthread_body + 164
10 libsystem_pthread.dylib        0x00000001958c7d24 _pthread_body

@friedbunny
Copy link
Contributor

@robipresotto Just a small GitHub style suggestion: Even for crashes, wrapping the text in a code block can help make it easier to read. :neckbeard:

@robipresotto
Copy link
Author

aha! much better now!! 👍

@robipresotto
Copy link
Author

Probably related issue,

Thread : Crashed: com.apple.main-thread
0  Embark                         0x000000010026d12c mbgl::Map::renderSync() (memory:2603)
1  Embark                         0x00000001002deff0 -[MGLMapView glkView:drawInRect:] (MGLMapView.mm:483)
2  Embark                         0x00000001002deff0 -[MGLMapView glkView:drawInRect:] (MGLMapView.mm:483)
3  GLKit                          0x00000001851373a4 -[GLKView _display:] + 364
4  QuartzCore                     0x0000000188236d88 CA::Layer::display() + 148
5  QuartzCore                     0x0000000188218570 CA::Layer::display_if_needed(CA::Transaction*) + 244
6  QuartzCore                     0x0000000188218228 CA::Layer::layout_and_display_if_needed(CA::Transaction*) + 44
7  QuartzCore                     0x0000000188217a14 CA::Context::commit_transaction(CA::Transaction*) + 276
8  QuartzCore                     0x0000000188217798 CA::Transaction::commit() + 436
9  UIKit                          0x00000001888c0478 _afterCACommitHandler + 156
10 CoreFoundation                 0x0000000184076d98 __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 32
11 CoreFoundation                 0x0000000184073d24 __CFRunLoopDoObservers + 360
12 CoreFoundation                 0x0000000184074104 __CFRunLoopRun + 836
13 CoreFoundation                 0x0000000183fa11f4 CFRunLoopRunSpecific + 396
14 GraphicsServices               0x000000018d3c36fc GSEventRunModal + 168
15 UIKit                          0x000000018893210c UIApplicationMain + 1488
16 Embark                         0x00000001000fbdb4 main (main.m:14)
17 libdyld.dylib                  0x0000000195712a08 start + 4

@robipresotto
Copy link
Author

Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0   libsystem_kernel.dylib          0x0000000113918136 __psynch_cvwait + 10
1   libc++.1.dylib                  0x00000001127db475 std::__1::condition_variable::wait(std::__1::unique_lock<std::__1::mutex>&) + 47
2   com.isea.Embark                 0x000000010f0ef18b mbgl::Map::renderSync() + 107
3   com.isea.Embark                 0x000000010f179192 -[MGLMapView glkView:drawInRect:] + 146
4   com.apple.GLKit                 0x00000001128d38b0 -[GLKView _display:] + 349
5   com.apple.QuartzCore            0x0000000110a2ff67 CA::Layer::display() + 107
6   com.apple.QuartzCore            0x0000000110a25671 CA::Layer::display_if_needed(CA::Transaction*) + 301
7   com.apple.QuartzCore            0x0000000110a256f9 CA::Layer::layout_and_display_if_needed(CA::Transaction*) + 35
8   com.apple.QuartzCore            0x000000011099336e CA::Context::commit_transaction(CA::Transaction*) + 242
9   com.apple.QuartzCore            0x0000000110994482 CA::Transaction::commit() + 390
10  com.apple.QuartzCore            0x0000000110994aed CA::Transaction::observer_callback(__CFRunLoopObserver*, unsigned long, void*) + 89
11  com.apple.CoreFoundation        0x0000000112fc9507 __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 23
12  com.apple.CoreFoundation        0x0000000112fc9460 __CFRunLoopDoObservers + 368
13  com.apple.CoreFoundation        0x0000000112fbf293 __CFRunLoopRun + 1123
14  com.apple.CoreFoundation        0x0000000112fbebc6 CFRunLoopRunSpecific + 470
15  com.apple.GraphicsServices      0x0000000114381a58 GSEventRunModal + 161
16  com.apple.UIKit                 0x0000000110ce8580 UIApplicationMain + 1282
17  com.isea.Embark                 0x000000010eee8543 main + 115
18  libdyld.dylib                   0x00000001135f9145 start + 1

@robipresotto
Copy link
Author

Thread : Crashed: Map
0  Embark                         0x000000010f111f9e mbgl::Painter::render(mbgl::Style const&, std::__1::set<mbgl::util::ptr<mbgl::StyleSource>, std::__1::less<mbgl::util::ptr<mbgl::StyleSource> >, std::__1::allocator<mbgl::util::ptr<mbgl::StyleSource> > > const&, mbgl::TransformState, std::__1::chrono::time_point<std::__1::chrono::steady_clock, std::__1::chrono::duration<long long, std::__1::ratio<1l, 1000000000l> > >) (memory:3930)
1  Embark                         0x000000010f0f1660 std::__1::__function::__func<mbgl::Map::start(bool)::$_3, std::__1::allocator<mbgl::Map::start(bool)::$_3>, void ()>::operator()() (map.cpp:814)
2  Embark                         0x000000010f19a6af uv__async_event (async.c:80)
3  Embark                         0x000000010f19aaaa uv__async_io (async.c:156)
4  Embark                         0x000000010f1b6729 uv__io_poll (kqueue.c:233)
5  Embark                         0x000000010f19b1b1 uv_run (core.c:317)
6  Embark                         0x000000010f0eeaff mbgl::Map::run() (map.cpp:272)
7  Embark                         0x000000010f0f14ff void* std::__1::__thread_proxy<std::__1::tuple<mbgl::Map::start(bool)::$_4> >(void*) (thread:175)
8  libsystem_pthread.dylib        0x0000000113949268 _pthread_body + 131
9  libsystem_pthread.dylib        0x00000001139491e5 _pthread_body
10 libsystem_pthread.dylib        0x000000011394741d thread_start + 13

@kkaefer
Copy link
Member

kkaefer commented Mar 26, 2015

Investigating this now.

kkaefer added a commit that referenced this pull request Mar 26, 2015
@kkaefer kkaefer merged commit 6d5be56 into master Mar 26, 2015
@kkaefer kkaefer deleted the 1096-fix-invalid-style-deref branch March 26, 2015 16:31
@robipresotto
Copy link
Author

Works like a charm! Good job!! 👍

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.

3 participants