Giter VIP home page Giter VIP logo

Comments (6)

eseidelGoogle avatar eseidelGoogle commented on April 27, 2024

Looks like the GPU thread is crashing on an ASSERT. I haven't actually symbolicated the stacktrace, but from the crash point and the log just before it about a null version string from the GPU thread, that would be my guess.

I suspect emulators just aren't a supported configuration for SkyShell at this time. :/

from flutter.

jamesr avatar jamesr commented on April 27, 2024

I haven't tried but you might have battery luck if you enable the Android emulator's GPU emulation feature (I.e. use the host's GPU). Sky requires a usable GPU to run which all modern devices have.

from flutter.

yissachar avatar yissachar commented on April 27, 2024

The emulator has GPU emulation enabled. I also tried on another machine (Mac OS X) with the same results.

Running it on an actual device works fine.

from flutter.

eseidelGoogle avatar eseidelGoogle commented on April 27, 2024

Here is a symbolicated crash:

%xclip -o | ./tools/android_stack_parser/stack [/src/mojo/src]
Reading native crash info from stdin
Reading Android symbols from /src/mojo/src/tools/android_stack_parser/../..
Reading Chrome symbols from /src/mojo/src/tools/android_stack_parser/../..
Using toolchain from :/src/mojo/src/tools/android_stack_parser/../../third_party/android_tools/ndk/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/bin/arm-linux-androideabi-
pid: 1253, tid: 1270, name: gpu_thread >>> org.domokit.sky.d
signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0xc
r0 00000000 r1 00000800 r2 0600000 r3 a68880cd
r4 b4a40a10 r5 00000000 r6 b488d200 r7 b4a40a10
r8 00000000 r9 a660db18 sl a6d70018 fp b487188c
ip b6df97ec sp a660d880 lr a679cf1b pc a68887b8

Stack Trace:
RELADDR FUNCTION FILE:LINE
001727b8 DrawVerticesBatch::generateGeometry(GrBatchTarget_, GrPipeline const_) /src/mojo/src/out/android_Release/../../third_party/skia/src/gpu/GrContext.cpp:948
00086f17 std::ostream::M_put_nowiden(char const) /src/mojo/src/third_party/android_tools/ndk/sources/cxx-stl/stlport/stlport/stl/ostream.c:344
00087533 std::priv::Impl_vector<base::Callback<bool (JNIEnv)>, std::allocator<base::Callback<bool (JNIEnv*)> > >::M_insert_overflow_aux(base::Callback<bool (JNIEnv*)>, base::Callback<bool (JNIEnv)> const&, std::false_type const&, unsigned int, bool) /src/mojo/src/third_party/android_tools/ndk/sources/cxx-stl/stlport/stlport/stl/vector.c:105
00087691 base::internal::BindState<base::internal::RunnableAdapter<void (sky::shell::UIDelegate::)(ANativeWindow)>, void (sky::shell::UIDelegate
, ANativeWindow
), base::internal::TypeListbase::WeakPtr<sky::shell::UIDelegate, ANativeWindow
> >::~BindState() /src/mojo/src/out/android_Release/../../base/bind_internal.h:408
00089109 sky::shell::Engine::Engine(sky::shell::Engine::Config const&) /src/mojo/src/out/android_Release/../../sky/shell/ui/engine.cc:42
000a22bf base::Thread::StartWithOptions(base::Thread::Options const&) /src/mojo/src/out/android_Release/../../base/threading/thread.cc:101 (discriminator 1)
001daceb base::debug::ParseProcMaps(std::string const&, std::vector<base::debug::MappedMemoryRegion, std::allocatorbase::debug::MappedMemoryRegion >
) /src/mojo/src/out/android_Release/../../base/debug/proc_maps_linux.cc:100
v------> ObserverListBasebase::MessageLoop::DestructionObserver::AddObserver(base::MessageLoop::DestructionObserver
) /src/mojo/src/third_party/android_tools/ndk/sources/cxx-stl/stlport/stlport/stl/algobase.c:136
00097c89 base::MessageLoop::AddDestructionObserver(base::MessageLoop::DestructionObserver
) /src/mojo/src/out/android_Release/../../base/message_loop/message_loop.cc:266
v------> base::PendingTask* std::priv::ucopy<base::PendingTask*, base::PendingTask*, int>(base::PendingTask, base::PendingTask, base::PendingTask
, std::random_access_iterator_tag const&, int
) /src/mojo/src/third_party/android_tools/ndk/sources/cxx-stl/stlport/stlport/stl/uninitialized.h:86 (discriminator 1)
v------> base::PendingTask* std::priv::ucopy_ptrs<base::PendingTask*, base::PendingTask*>(base::PendingTask, base::PendingTask, base::PendingTask
, std::__false_type const&) /src/mojo/src/third_party/android_tools/ndk/sources/cxx-stl/stlport/stlport/stl/uninitialized.h:113 (discriminator 1)
v------> base::PendingTask
std::priv::_uninitialized_move<base::PendingTask*, base::PendingTask*, std::false_type>(base::PendingTask, base::PendingTask, base::PendingTask, std::__false_type, std::__false_type const&) /src/mojo/src/third_party/android_tools/ndk/sources/cxx-stl/stlport/stlport/stl/uninitialized.h:420 (discriminator 1)
00098283 std::priv::Impl_vector<base::PendingTask, std::allocatorbase::PendingTask >::M_insert_overflow_aux(base::PendingTask, base::PendingTask const&, std::__false_type const&, unsigned int, bool) /src/mojo/src/third_party/android_tools/ndk/sources/cxx-stl/stlport/stlport/stl/vector.c:91 (discriminator 1)
00098a01 base::MessageLoop::~MessageLoop() /src/mojo/src/out/android_Release/../../base/message_loop/message_loop.cc:173
000aa5dd mojo::system::Channel::HandleLocalError(base::BasicStringPiecestd::string const&) /src/mojo/src/out/android_Release/../../mojo/edk/system/channel.cc:550
v------> void std::__destroy_range_auxstd::reverse_iterator<scoped_refptrmojo::system::Dispatcher_, scoped_refptrmojo::system::Dispatcher >(std::reverse_iterator<scoped_refptrmojo::system::Dispatcher
>, std::reverse_iterator<scoped_refptrmojo::system::Dispatcher
>, scoped_refptrmojo::system::Dispatcher
, std::__false_type const&) /src/mojo/src/third_party/android_tools/ndk/sources/cxx-stl/stlport/stlport/stl/construct.h:191 (discriminator 1)
v------> void std::__destroy_rangestd::reverse_iterator<scoped_refptrmojo::system::Dispatcher_, scoped_refptrmojo::system::Dispatcher >(std::reverse_iterator<scoped_refptrmojo::system::Dispatcher
>, std::reverse_iterator<scoped_refptrmojo::system::Dispatcher>, scoped_refptrmojo::system::Dispatcher) /src/mojo/src/third_party/android_tools/ndk/sources/cxx-stl/stlport/stlport/stl/construct.h:215 (discriminator 1)
v------> void std::Destroy_Rangestd::reverse_iterator<scoped_refptrmojo::system::Dispatcher_ >(std::reverse_iterator<scoped_refptrmojo::system::Dispatcher>, std::reverse_iterator<scoped_refptrmojo::system::Dispatcher
>) /src/mojo/src/third_party/android_tools/ndk/sources/cxx-stl/stlport/stlport/stl/_construct.h:220 (discriminator 1)
v------> _ZNSt4priv12_Impl_vectorI13scoped_refptrIN4mojo6system10DispatcherEESaIS5_EED4Ev /src/mojo/src/third_party/android_tools/ndk/sources/cxx-stl/stlport/stlport/stl/_vector.h:304 (discriminator 1)
v------> _ZNSt6vectorI13scoped_refptrIN4mojo6system10DispatcherEESaIS4_EED4Ev /src/mojo/src/third_party/android_tools/ndk/sources/cxx-stl/stlport/stlport/stl/pointers/vector.h:42 (discriminator 1)
v------> base::DefaultDeleterstd::vector<scoped_refptr<mojo::system::Dispatcher, std::allocator<scoped_refptrmojo::system::Dispatcher > > >::operator()(std::vector<scoped_refptrmojo::system::Dispatcher, std::allocator<scoped_refptrmojo::system::Dispatcher > >
) const /src/mojo/src/out/android_Release/../../base/memory/scoped_ptr.h:128 (discriminator 1)
000aa6bf base::internal::scoped_ptr_implstd::vector<scoped_refptr<mojo::system::Dispatcher, std::allocator<scoped_refptrmojo::system::Dispatcher > >, base::DefaultDeleterstd::vector<scoped_refptr<mojo::system::Dispatcher, std::allocator<scoped_refptrmojo::system::Dispatcher > > > >::~scoped_ptr_impl() /src/mojo/src/out/android_Release/../../base/memory/scoped_ptr.h:222 (discriminator 1)
0009b509 base::operator<<(std::ostream&, std::basic_string<unsigned short, base::string16_char_traits, std::allocator > const&) /src/mojo/src/out/android_Release/../../base/strings/string16.cc:72
000978dd base::MessageLoop::ProcessNextDelayedNonNestableTask() /src/mojo/src/out/android_Release/../../base/message_loop/message_loop.cc:424 (discriminator 1)
000a28d3 std::priv::_Rb_tree<std::string, std::lessstd::string, std::pair<std::string const, std::string*>, std::priv::_Select1st<std::pair<std::string const, std::string*> >, std::priv::_MapTraitsT<std::pair<std::string const, std::string*> >, std::allocator<std::pair<std::string const, std::string*> > >::insert_unique(std::priv::_Rb_tree_iterator<std::pair<std::string const, std::string*>, std::priv::_MapTraitsT<std::pair<std::string const, std::string*> > >, std::pair<std::string const, std::string*> const&) /src/mojo/src/third_party/android_tools/ndk/sources/cxx-stl/stlport/stlport/stl/_tree.c:480
v------> _ZN4base8CallbackIFvvEED4Ev /src/mojo/src/out/android_Release/../../base/callback.h:366
v------> ~PostTaskAndReplyRelay /src/mojo/src/out/android_Release/../../base/threading/post_task_and_reply_impl.cc:35
000a1f5b base::internal::PostTaskAndReplyImpl::PostTaskAndReply(tracked_objects::Location const&, base::Callback<void ()> const&, base::Callback<void ()> const&) /src/mojo/src/out/android_Release/../../base/threading/post_task_and_reply_impl.cc:82
00015f2b /system/lib/libc.so
00013ea3 __start_thread+6

from flutter.

jamesr avatar jamesr commented on April 27, 2024

That stack doesn't look right. Are you sure this is symbolized against the correct version of the binary?

from flutter.

abarth avatar abarth commented on April 27, 2024

It's hard to tell from this report whether we've fixed this issue, but we've fixed a number of crashers (although there are always more). I'm going to close this bug, but please feel free to reopen it if the issue still occurs for you.

from flutter.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.