Crash during resourcType is RT_XHR(XMLHTTPRequest)

Having problems with building or using CEF's C/C++ APIs? This forum is here to help. Please do not post bug reports or feature requests here.

Crash during resourcType is RT_XHR(XMLHTTPRequest)

Postby Yubtest » Fri Apr 10, 2020 1:59 am

Hi,

Trying to load a url and there are some XMLHTTPRequests going out which I can see from GetResouceType() API. During this I get a crash. Crash wont happen If I do a RT_CANCEL from OnBeforeResourceLoad when resourceType is RT_XHR,

Video/Audio getting downloaded was auto playing and i have set 'user-gesture-required' from command line and tried SetAudioMuted , but I couldn't solve the issue. Can some one please suggest a way to fix the issue

please find the back trace during the crash
*************************************************************
Thread 36 "Chrome_InProcUt" received signal SIGTRAP, Trace/breakpoint trap.
[Switching to Thread 0x7fffa55b4700 (LWP 3110)]
0x00007fffc612d37b in operator() () at ../../services/audio/service.cc:56
56 ../../services/audio/service.cc: No such file or directory.
(gdb) bt
#0 0x00007fffc612d37b in operator() () at ../../services/audio/service.cc:56
#1 0x00007fffc612d37b in Service() () at ../../services/audio/service.cc:56
#2 0x00007fffc612f08f in make_unique<audio::Service, std::__1::unique_ptr<audio::OwningAudioManagerAccessor, std::__1::default_delete<audio::OwningAudioManagerAccessor> >, base::Optional<base::TimeDelta>, bool, std::__1::unique_ptr<service_manager::BinderMapWithContext<void>, std::__1::default_delete<service_manager::BinderMapWithContext<void> > >, mojo::PendingReceiver<service_manager::mojom::Service> > () at ../../buildtools/third_party/libc++/trunk/include/memory:3043
#3 0x00007fffc612f08f in CreateStandaloneService() () at ../../services/audio/service_factory.cc:74
#4 0x00007fffc70d6be5 in CreateAudioService () at ../../content/utility/utility_service_factory.cc:182
#5 0x00007fffc70d6be5 in RunService() () at ../../content/utility/utility_service_factory.cc:119
#6 0x00007fffc70d7a04 in non-virtual thunk to content::UtilityThreadImpl::RunService(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, mojo::PendingReceiver<service_manager::mojom::Service>) () at ../../content/utility/utility_thread_impl.cc:207
#7 0x00007fffc9feab1c in Invoke<void (content::ChildThreadImpl::*)(std::__1::basic_string<char> const&, mojo::PendingReceiver<service_manager::mojom::Service>), base::WeakPtr<content::ChildThreadImpl>, std::__1::basic_string<char>, mojo::PendingReceiver<service_manager::mojom::Service> > () at ../../base/bind_internal.h:498
#8 0x00007fffc9feab1c in MakeItSo<void (content::ChildThreadImpl::*)(std::__1::basic_string<char> const&, mojo::PendingReceiver<service_manager::mojom::Service>), base::WeakPtr<content::ChildThreadImpl>, std::__1::basic_string<char>, mojo::PendingReceiver<service_manager::mojom::Service> > () at ../../base/bind_internal.h:618
#9 0x00007fffc9feab1c in RunImpl<void (content::ChildThreadImpl::*)(std::__1::basic_string<char> const&, mojo::PendingReceiver<service_manager::mojom::Service>), std::__1::tuple<base::WeakPtr<content::ChildThreadImpl>, std::__1::basic_string<char>, mojo::PendingReceiver<service_manager::mojom::Service> >, 0, 1, 2> () at ../../base/bind_internal.h:671
#10 0x00007fffc9feab1c in RunOnce() () at ../../base/bind_internal.h:640
#11 0x00007fffc7453eb0 in Run () at ../../base/callback.h:98
#12 0x00007fffc7453eb0 in RunTask() () at ../../base/task/common/task_annotator.cc:142
#13 0x00007fffc74641ae in DoWorkImpl() () at ../../base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:365
#14 0x00007fffc7463f77 in DoSomeWork() () at ../../base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:219
#15 0x00007fffc742395a in Run() () at ../../base/message_loop/message_pump_default.cc:39
#16 0x00007fffc7464a88 in non-virtual thunk to base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::Run(bool, base::TimeDelta) ()
at ../../base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:463
#17 0x00007fffc743cd07 in Run() () at ../../base/run_loop.cc:156
#18 0x00007fffc747953a in ThreadMain() () at ../../base/threading/thread.cc:376
#19 0x00007fffc74b1b95 in ThreadFunc() () at ../../base/threading/platform_thread_posix.cc:81
#20 0x00007ffff7bbd6db in start_thread (arg=0x7fffa55b4700) at pthread_create.c:463
#21 0x00007ffff1c1c88f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95
(gdb)

***********************************************************************************

Appreciate any help

Thanks
Yubtest
Techie
 
Posts: 20
Joined: Mon Jan 13, 2020 5:32 am

Re: Crash during resourcType is RT_XHR(XMLHTTPRequest)

Postby magreenblatt » Fri Apr 10, 2020 11:20 am

What OS and CEF version? What reproduction steps? Does the crash reproduce in the CEF sample apps?
magreenblatt
Site Admin
 
Posts: 12409
Joined: Fri May 29, 2009 6:57 pm

Re: Crash during resourcType is RT_XHR(XMLHTTPRequest)

Postby Yubtest » Fri Apr 10, 2020 12:45 pm

Hi,'

I have used cef_binary_80.1.14+ga33bdbc+chromium-80.0.3987.149_linux64_minimal.tar.bz2 and using ubuntu Machine.

I dint check in sample. Will let you know once I test with sample application

Thanks
Yubtest
Techie
 
Posts: 20
Joined: Mon Jan 13, 2020 5:32 am

Re: Crash during resourcType is RT_XHR(XMLHTTPRequest)

Postby Yubtest » Mon Apr 13, 2020 3:00 am

I have checked with cefclient sample and it does not have any issues.

URL which I am using is of an internal site which cant be accessible out side.


Thanks
Yubtest
Techie
 
Posts: 20
Joined: Mon Jan 13, 2020 5:32 am

Re: Crash during resourcType is RT_XHR(XMLHTTPRequest)

Postby Yubtest » Mon Apr 13, 2020 8:44 am

I have an update, was using --single-process command line and it was creating the issue. No issues when i have removed it.


Now, I need to create a separate subprocess. i have seen https://bitbucket.org/chromiumembedded/ ... executable and it seems it is for Mac, i wnt be able to use the same process for all the process as i am creating browser window from another gtk window

Can you please suggest what should be the format in Linux to create a seperate subprocess executable.

Thanks
Yubtest
Techie
 
Posts: 20
Joined: Mon Jan 13, 2020 5:32 am

Re: Crash during resourcType is RT_XHR(XMLHTTPRequest)

Postby Yubtest » Fri Apr 17, 2020 9:46 am

I have another crash during application exit. This is happening after cefShutdown and while application exit

Can Someone help me on this?

bt full
#0 0x00007ffff7de7c4c in tls_get_addr_tail (ti=0x7fffcfdc4cf8, dtv=0xcb0eb0, the_map=0x0) at ../elf/dl-tls.c:758
result = <optimized out>
__PRETTY_FUNCTION__ = "tls_get_addr_tail"
#1 0x00007ffff7deea28 in __tls_get_addr () at ../sysdeps/x86_64/tls_get_addr.S:55
#2 0x00007fffcb43f9dc in CurrentId() () at ../../base/threading/platform_thread_posix.cc:180
#3 0x00007fffcb445c07 in SetCurrentThreadPriorityForPlatform() () at ../../base/threading/platform_thread_linux.cc:116
#4 0x00007fffcb43fefd in base::PlatformThread::SetCurrentThreadPriorityImpl(base::ThreadPriority) () at ../../base/threading/platform_thread_posix.cc:309
#5 0x00007fffcb43ffdc in ThreadFunc() () at ../../base/threading/platform_thread_posix.cc:73
#6 0x00007ffff7bbd6db in start_thread (arg=0x7fffb6ffd700) at pthread_create.c:463
pd = 0x7fffb6ffd700
now = <optimized out>
unwind_buf =
{cancel_jmp_buf = {{jmp_buf = {140736263608064, -6688628619394251850, 140736263605376, 0, 14269408, 140736246818120, 6688507674599785398, 6688646727810581430}, mask_was_saved = 0}}, priv = {pad = {0x0, 0x0, 0x0, 0x0}, data = {prev = 0x0, cleanup = 0x0, canceltype = 0}}}
not_first_call = <optimized out>
#7 0x00007ffff1c1c88f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95
(gdb)

Thanks
Yubtest
Techie
 
Posts: 20
Joined: Mon Jan 13, 2020 5:32 am


Return to Support Forum

Who is online

Users browsing this forum: No registered users and 23 guests