New TBrowser doesn't worked now for macos


Info in : ROOT: Rint, ver: 6.35.01,
build time: 20250422 2129, tversion 0

_ROOT Version:6.35.01 lastest
_Platform:macos 15.4
_Compiler: clang


compile ROOT with root7, webui and cocoa,

using

cx[000]:> new TBrowser

ROOT comes with a web-based browser, which is now being started. 
Revert to TBrowser by setting "Browser.Name: TRootBrowser" in rootrc file or
by starting "root --web=off"
Find more info on https://root.cern/for_developers/root7/#rbrowser
Info in <THttpEngine::Create>: Starting HTTP server on port 127.0.0.1:9054
(TBrowser *) 0x17264f8a0

show nothing but a white pages.

using root --web=off cause core dump.

*** Break *** segmentation violation
[/usr/lib/system/libsystem_platform.dylib] _sigtramp (no debug info)
[/Users/chenxu/software/ROOT/install/lib/libASImage.so] TASImage::GetPixmap() (no debug info)
[/Users/chenxu/software/ROOT/install/lib/libGui.so] TGPicturePool::GetPicture(char const*) (no debug info)
[/Users/chenxu/software/ROOT/install/lib/libGuiHtml.so] TGHtmlBrowser::TGHtmlBrowser(char const*, TGWindow const*, unsigned int, unsigned int) (no debug info)
[<unknown binary>] (no debug info)
[/Users/chenxu/software/ROOT/install/lib/libCling.so] cling::IncrementalExecutor::executeWrapper(llvm::StringRef, cling::Value*) const (no debug info)
[/Users/chenxu/software/ROOT/install/lib/libCling.so] cling::Interpreter::RunFunction(clang::FunctionDecl const*, cling::Value*) (no debug info)
[/Users/chenxu/software/ROOT/install/lib/libCling.so] cling::Interpreter::EvaluateInternal(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>> const&, cling::CompilationOptions, cling::Value*, cling::Transaction**, unsigned long) (no debug info)
[/Users/chenxu/software/ROOT/install/lib/libCling.so] cling::Interpreter::process(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>> const&, cling::Value*, cling::Transaction**, bool) (no debug info)
[/Users/chenxu/software/ROOT/install/lib/libCling.so] cling::MetaProcessor::process(llvm::StringRef, cling::Interpreter::CompilationResult&, cling::Value*, bool) (no debug info)
[/Users/chenxu/software/ROOT/install/lib/libCling.so] HandleInterpreterException(cling::MetaProcessor*, char const*, cling::Interpreter::CompilationResult&, cling::Value*) (no debug info)
[/Users/chenxu/software/ROOT/install/lib/libCling.so] TCling::ProcessLine(char const*, TInterpreter::EErrorCode*) (no debug info)
[/Users/chenxu/software/ROOT/install/lib/libCore.so] TROOT::ProcessLine(char const*, int*) (no debug info)
[/Users/chenxu/software/ROOT/install/lib/libGui.so] TRootBrowser::ExecPlugin(char const*, char const*, char const*, int, int) (no debug info)
[/Users/chenxu/software/ROOT/install/lib/libGui.so] TRootBrowser::InitPlugins(char const*) (no debug info)
[/Users/chenxu/software/ROOT/install/lib/libGui.so] TRootBrowser::TRootBrowser(TBrowser*, char const*, unsigned int, unsigned int, char const*, bool) (no debug info)
[/Users/chenxu/software/ROOT/install/lib/libGui.so] TRootBrowser::NewBrowser(TBrowser*, char const*, unsigned int, unsigned int, char const*) (no debug info)
[<unknown binary>] (no debug info)
[/Users/chenxu/software/ROOT/install/lib/libGui.so] long TPluginHandler::ExecPluginImpl<TBrowser*, char const*, unsigned int, unsigned int, char const*>(TBrowser* const&, char const* const&, unsigned int const&, unsigned int const&, char const* const&) (no debug info)
[/Users/chenxu/software/ROOT/install/lib/libGui.so] TRootGuiFactory::CreateBrowserImp(TBrowser*, char const*, unsigned int, unsigned int, char const*) (no debug info)
[/Users/chenxu/software/ROOT/install/lib/libCore.so] TBrowser::TBrowser(char const*, char const*, TBrowserImp*, char const*) (no debug info)
[<unknown binary>] (no debug info)
[/Users/chenxu/software/ROOT/install/lib/libCling.so] cling::IncrementalExecutor::executeWrapper(llvm::StringRef, cling::Value*) const (no debug info)
[/Users/chenxu/software/ROOT/install/lib/libCling.so] cling::Interpreter::RunFunction(clang::FunctionDecl const*, cling::Value*) (no debug info)
[/Users/chenxu/software/ROOT/install/lib/libCling.so] cling::Interpreter::EvaluateInternal(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>> const&, cling::CompilationOptions, cling::Value*, cling::Transaction**, unsigned long) (no debug info)
[/Users/chenxu/software/ROOT/install/lib/libCling.so] cling::Interpreter::process(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>> const&, cling::Value*, cling::Transaction**, bool) (no debug info)
[/Users/chenxu/software/ROOT/install/lib/libCling.so] cling::MetaProcessor::process(llvm::StringRef, cling::Interpreter::CompilationResult&, cling::Value*, bool) (no debug info)
[/Users/chenxu/software/ROOT/install/lib/libCling.so] HandleInterpreterException(cling::MetaProcessor*, char const*, cling::Interpreter::CompilationResult&, cling::Value*) (no debug info)
[/Users/chenxu/software/ROOT/install/lib/libCling.so] TCling::ProcessLine(char const*, TInterpreter::EErrorCode*) (no debug info)
[/Users/chenxu/software/ROOT/install/lib/libRint.so] TRint::ProcessLineNr(char const*, char const*, int*) (no debug info)
[/Users/chenxu/software/ROOT/install/lib/libRint.so] TRint::HandleTermInput() (no debug info)
[/Users/chenxu/software/ROOT/install/lib/libCore.so] TUnixSystem::CheckDescriptors() (no debug info)
[/Users/chenxu/software/ROOT/install/lib/libCore.so] TMacOSXSystem::DispatchOneEvent(bool) (no debug info)
[/Users/chenxu/software/ROOT/install/lib/libCore.so] TSystem::InnerLoop() (no debug info)
[/Users/chenxu/software/ROOT/install/lib/libCore.so] TSystem::Run() (no debug info)
[/Users/chenxu/software/ROOT/install/lib/libCore.so] TApplication::Run(bool) (no debug info)
[/Users/chenxu/software/ROOT/install/lib/libRint.so] TRint::Run(bool) (no debug info)
[/Users/chenxu/software/ROOT/install/bin/root.exe] main (no debug info)
[/usr/lib/dyld] start (no debug info)

Which browser is installed on your system?
Do you have chrome?
Can you run with root --web=chrome -e 'new TBrowser'

firefox and chrome both white without any things.

With older MacOS 15.1 current ROOT master works for me - with all browsers.
I will try to update and check

Also after update to MacOS 15.4.1 I see no problems.

Can you check JavaScript console in the chrome if it shows any error messages?

many error messages

did you tried root --web=off? or it’s just deprecated?

Such failure does not appear to me.
But it can be caused by your language settings.
Can you try to use alternative location for openui5.
Just call in ROOT:

root [1] gEnv->SetValue("WebGui.openui5src","https://openui5.hana.ondemand.com/1.128.0/")
root [2] new TBrowser

it works

So it’s openui problem?

This is only workaround - you are using openui5 from external resource.

ROOT includes only subset and something is missing.

That is default language in your chrome browser?

default language Chinese, English, neither worked.

I cannot reproduce problem on my system.
Can you help me to debug it?

I want to get network log from your web browser when it try to start ROOT TBrowser widget.
To get it, please do following steps.

  1. Start chrome browser and enable developer console (Ctrl + Shit + I) and go to network tab
  2. Start ROOT with following parameters: root --web=server -e 'new TBrowse'
  3. Copy printed URL into your chrome browser
  4. When web page is loaded, many files will be loaded by the chrome browser. Please create har file by pressing “Import HAR file…” button marked on my screenshot.
  5. And send me created har file.

Did you copy full URL - with extra args?

Yes, with all args - otherwise ROOT server will refuse to open HTTP page

Please try to cleanup browser cache - your log shows that some files loaded from the disk cache.
And your log is not complete.

Also try to run same procedure with root --web=server on some other web browser - like Firefox or Safari

may be some chrome plugins.

tried safari, the har file below

some js not loaded correctly

Seems to be har file does not include failures.
Are there other failures before loading Menu.js or ActionItem.js


all 404 failures

It is very strange - openui5 should not try to load separate components - but just full library.

For you the solution can be create .rootrc file in home directory and put there:

WebGui.openui5src: https://openui5.hana.ondemand.com/1.128.0/