unsuitable001 / dart_cronet_sample

[SELECTED] Sample project for GSoC '21 - Cronet based HTTP package
https://github.com/google/cronet.dart
MIT License
2 stars 1 forks source link

Cannot invoke native callback outside an isolate. #1

Closed unsuitable001 closed 3 years ago

unsuitable001 commented 3 years ago

Can't invoke native callback. Same issue whether a new isolate is spawn to run Cronet_Runnable_Run or run directly in the executor.

Hello From Cronet
Running Cronet Version: 91.0.4456.0
../../runtime/vm/runtime_entry.cc: 3369: error: Cannot invoke native callback outside an isolate.
version=2.12.2 (stable) (Unknown timestamp) on "linux_x64"
pid=94451, thread=94461, isolate_group=(nil)((nil)), isolate=(nil)((nil))
isolate_instructions=0, vm_instructions=55e07c1a4020
  pc 0x000055e07c41d57c fp 0x00007fc83fc34e30 dart::Profiler::DumpStackTrace(void*)+0x7c
  pc 0x000055e07c1a41d2 fp 0x00007fc83fc34f10 dart::Assert::Fail(char const*, ...)+0x82
  pc 0x000055e07c471e57 fp 0x00007fc83fc34f50 dart+0x1cdce57
  pc 0x00007fc851043f6e fp 0x00007fc83fc34f60 Unknown symbol
  pc 0x000055e07e2bf420 fp 0x00007fc83fc35040 Unknown symbol
  pc 0x00007fc845cb2282 fp 0x00007fc83fc35080 Cronet_Executor_Execute+0x82
  pc 0x00007fc845ca55d3 fp 0x00007fc83fc350d0 cronet/libcronet.91.0.4456.0.so+0x1925d3
  pc 0x00007fc845ca6a77 fp 0x00007fc83fc35170 cronet/libcronet.91.0.4456.0.so+0x193a77
  pc 0x00007fc845c5aba3 fp 0x00007fc83fc35240 cronet/libcronet.91.0.4456.0.so+0x147ba3
  pc 0x00007fc844dda870 fp 0x00007fc83fc35290 net::URLRequest::NotifyResponseStarted(int)+0x1b0
  pc 0x00007fc844e0ac8a fp 0x00007fc83fc352f0 net::URLRequestJob::NotifyFinalHeadersReceived()+0x27a
  pc 0x00007fc844e0a503 fp 0x00007fc83fc355f0 net::URLRequestJob::NotifyHeadersComplete()+0x5a3
  pc 0x00007fc844df8acf fp 0x00007fc83fc356b0 net::URLRequestHttpJob::NotifyHeadersComplete()+0x2bf
  pc 0x00007fc844dfaf09 fp 0x00007fc83fc35aa0 net::URLRequestHttpJob::SaveCookiesAndNotifyHeadersComplete(int)+0x209
  pc 0x00007fc844df9efb fp 0x00007fc83fc35c30 net::URLRequestHttpJob::OnStartCompleted(int)+0x55b
  pc 0x00007fc844e03cf4 fp 0x00007fc83fc35c90 /media/unsuitable001/0B7B05A60B7B05A6/Dev-Env/gsoc/cronet/sample/cronet/libnet.so+0xf70cf4
  pc 0x00007fc844e03bf6 fp 0x00007fc83fc35ce0 /media/unsuitable001/0B7B05A60B7B05A6/Dev-Env/gsoc/cronet/sample/cronet/libnet.so+0xf70bf6
  pc 0x00007fc844e03b77 fp 0x00007fc83fc35d20 /media/unsuitable001/0B7B05A60B7B05A6/Dev-Env/gsoc/cronet/sample/cronet/libnet.so+0xf70b77
  pc 0x00007fc844e03b10 fp 0x00007fc83fc35d60 /media/unsuitable001/0B7B05A60B7B05A6/Dev-Env/gsoc/cronet/sample/cronet/libnet.so+0xf70b10
  pc 0x00007fc8447acae7 fp 0x00007fc83fc35da0 /media/unsuitable001/0B7B05A60B7B05A6/Dev-Env/gsoc/cronet/sample/cronet/libnet.so+0x919ae7
  pc 0x00007fc844b1ab06 fp 0x00007fc83fc35e00 net::HttpNetworkTransaction::DoCallback(int)+0x116
  pc 0x00007fc844b163af fp 0x00007fc83fc35e30 net::HttpNetworkTransaction::OnIOComplete(int)+0x3f
  pc 0x00007fc844b21bd4 fp 0x00007fc83fc35e90 /media/unsuitable001/0B7B05A60B7B05A6/Dev-Env/gsoc/cronet/sample/cronet/libnet.so+0xc8ebd4
  pc 0x00007fc844b21ac6 fp 0x00007fc83fc35ee0 /media/unsuitable001/0B7B05A60B7B05A6/Dev-Env/gsoc/cronet/sample/cronet/libnet.so+0xc8eac6
  pc 0x00007fc844b21a57 fp 0x00007fc83fc35f20 /media/unsuitable001/0B7B05A60B7B05A6/Dev-Env/gsoc/cronet/sample/cronet/libnet.so+0xc8ea57
  pc 0x00007fc844b219f6 fp 0x00007fc83fc35f60 /media/unsuitable001/0B7B05A60B7B05A6/Dev-Env/gsoc/cronet/sample/cronet/libnet.so+0xc8e9f6
  pc 0x00007fc8447acae7 fp 0x00007fc83fc35fa0 /media/unsuitable001/0B7B05A60B7B05A6/Dev-Env/gsoc/cronet/sample/cronet/libnet.so+0x919ae7
  pc 0x00007fc844b7b94f fp 0x00007fc83fc35fd0 net::HttpStreamParser::OnIOComplete(int)+0x5f
  pc 0x00007fc844b81ae9 fp 0x00007fc83fc36030 /media/unsuitable001/0B7B05A60B7B05A6/Dev-Env/gsoc/cronet/sample/cronet/libnet.so+0xceeae9
  pc 0x00007fc844b8199c fp 0x00007fc83fc36080 /media/unsuitable001/0B7B05A60B7B05A6/Dev-Env/gsoc/cronet/sample/cronet/libnet.so+0xcee99c
  pc 0x00007fc844b81917 fp 0x00007fc83fc360c0 /media/unsuitable001/0B7B05A60B7B05A6/Dev-Env/gsoc/cronet/sample/cronet/libnet.so+0xcee917
  pc 0x00007fc844b818b6 fp 0x00007fc83fc36100 /media/unsuitable001/0B7B05A60B7B05A6/Dev-Env/gsoc/cronet/sample/cronet/libnet.so+0xcee8b6
  pc 0x00007fc8447acae7 fp 0x00007fc83fc36140 /media/unsuitable001/0B7B05A60B7B05A6/Dev-Env/gsoc/cronet/sample/cronet/libnet.so+0x919ae7
  pc 0x00007fc844d03ee4 fp 0x00007fc83fc36170 net::TCPClientSocket::DidCompleteReadWrite(base::OnceCallback<void (int)>, int)+0x44
  pc 0x00007fc844d02137 fp 0x00007fc83fc361b0 net::TCPClientSocket::DidCompleteRead(int)+0xc7
  pc 0x00007fc844d05474 fp 0x00007fc83fc36210 /media/unsuitable001/0B7B05A60B7B05A6/Dev-Env/gsoc/cronet/sample/cronet/libnet.so+0xe72474
  pc 0x00007fc844d05376 fp 0x00007fc83fc36260 /media/unsuitable001/0B7B05A60B7B05A6/Dev-Env/gsoc/cronet/sample/cronet/libnet.so+0xe72376
  pc 0x00007fc844d052e7 fp 0x00007fc83fc362a0 /media/unsuitable001/0B7B05A60B7B05A6/Dev-Env/gsoc/cronet/sample/cronet/libnet.so+0xe722e7
  pc 0x00007fc844d05280 fp 0x00007fc83fc362e0 /media/unsuitable001/0B7B05A60B7B05A6/Dev-Env/gsoc/cronet/sample/cronet/libnet.so+0xe72280
  pc 0x00007fc8447acae7 fp 0x00007fc83fc36320 /media/unsuitable001/0B7B05A60B7B05A6/Dev-Env/gsoc/cronet/sample/cronet/libnet.so+0x919ae7
  pc 0x00007fc844ea78ff fp 0x00007fc83fc36380 net::TCPSocketPosix::ReadCompleted(scoped_refptr<net::IOBuffer> const&, base::OnceCallback<void (int)>, int)+0xbf
  pc 0x00007fc844eab326 fp 0x00007fc83fc36400 /media/unsuitable001/0B7B05A60B7B05A6/Dev-Env/gsoc/cronet/sample/cronet/libnet.so+0x1018326
  pc 0x00007fc844eab1e0 fp 0x00007fc83fc36470 /media/unsuitable001/0B7B05A60B7B05A6/Dev-Env/gsoc/cronet/sample/cronet/libnet.so+0x10181e0
  pc 0x00007fc844eab129 fp 0x00007fc83fc364c0 /media/unsuitable001/0B7B05A60B7B05A6/Dev-Env/gsoc/cronet/sample/cronet/libnet.so+0x1018129
  pc 0x00007fc844eab080 fp 0x00007fc83fc36500 /media/unsuitable001/0B7B05A60B7B05A6/Dev-Env/gsoc/cronet/sample/cronet/libnet.so+0x1018080
  pc 0x00007fc8447acae7 fp 0x00007fc83fc36540 /media/unsuitable001/0B7B05A60B7B05A6/Dev-Env/gsoc/cronet/sample/cronet/libnet.so+0x919ae7
  pc 0x00007fc844ea3fbe fp 0x00007fc83fc365d0 net::SocketPosix::RetryRead(int)+0x22e
  pc 0x00007fc844ea5c94 fp 0x00007fc83fc36630 /media/unsuitable001/0B7B05A60B7B05A6/Dev-Env/gsoc/cronet/sample/cronet/libnet.so+0x1012c94
  pc 0x00007fc844ea5b96 fp 0x00007fc83fc36680 /media/unsuitable001/0B7B05A60B7B05A6/Dev-Env/gsoc/cronet/sample/cronet/libnet.so+0x1012b96
  pc 0x00007fc844ea5b07 fp 0x00007fc83fc366c0 /media/unsuitable001/0B7B05A60B7B05A6/Dev-Env/gsoc/cronet/sample/cronet/libnet.so+0x1012b07
  pc 0x00007fc844ea5aa0 fp 0x00007fc83fc36700 /media/unsuitable001/0B7B05A60B7B05A6/Dev-Env/gsoc/cronet/sample/cronet/libnet.so+0x1012aa0
  pc 0x00007fc8447acae7 fp 0x00007fc83fc36740 /media/unsuitable001/0B7B05A60B7B05A6/Dev-Env/gsoc/cronet/sample/cronet/libnet.so+0x919ae7
  pc 0x00007fc844ea5204 fp 0x00007fc83fc36790 net::SocketPosix::ReadCompleted()+0x114
  pc 0x00007fc844ea4f93 fp 0x00007fc83fc36810 net::SocketPosix::OnFileCanReadWithoutBlocking(int)+0x183
  pc 0x00007fc8459cef0b fp 0x00007fc83fc36840 base::MessagePumpLibevent::FdWatchController::OnFileCanReadWithoutBlocking(int, base::MessagePumpLibevent*)+0x3b
  pc 0x00007fc8459d0580 fp 0x00007fc83fc36960 base::MessagePumpLibevent::OnLibeventNotification(int, short, void*)+0x490
  pc 0x00007fc845aa28b1 fp 0x00007fc83fc36990 /media/unsuitable001/0B7B05A60B7B05A6/Dev-Env/gsoc/cronet/sample/cronet/libbase.so+0x6f98b1
  pc 0x00007fc845aa1e3d fp 0x00007fc83fc369f0 /media/unsuitable001/0B7B05A60B7B05A6/Dev-Env/gsoc/cronet/sample/cronet/libbase.so+0x6f8e3d
  pc 0x00007fc8459d0905 fp 0x00007fc83fc36ab0 base::MessagePumpLibevent::Run(base::MessagePump::Delegate*)+0x325
  pc 0x00007fc845886a90 fp 0x00007fc83fc36b40 base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::Run(bool, base::TimeDelta)+0x230
  pc 0x00007fc8457d0dc3 fp 0x00007fc83fc36c30 base::RunLoop::Run(base::Location const&)+0x2a3
  pc 0x00007fc8458f16ad fp 0x00007fc83fc36cb0 base::Thread::Run(base::RunLoop*)+0x12d
  pc 0x00007fc8458f1baa fp 0x00007fc83fc36e10 base::Thread::ThreadMain()+0x4aa
  pc 0x00007fc84596e65b fp 0x00007fc83fc36e70 /media/unsuitable001/0B7B05A60B7B05A6/Dev-Env/gsoc/cronet/sample/cronet/libbase.so+0x5c565b
-- End of DumpStackTrace
Aborted (core dumped)
mannprerak2 commented 3 years ago

@unsuitable001 Regarding the previous error (Segfault while invoking Cronet_UrlRequest..), this might be the reason.