Giter Club home page Giter Club logo

demo-projects's People

Contributors

dependabot[bot] avatar fiahblade avatar hecatron avatar mattkol avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

demo-projects's Issues

Unix (MacOS / Linux) support for Blazor demos

I've tried to run the Blazor Server demo on Linux, but an exception occurs because the ChromelyBlazor.Shared project uses MemoryMappedFile with names, which are not supported on Unix systems. It would be nice if this was changed.

Uncaught ReferenceError: boundControllerAsync is not defined

I have just recreated the react sample to use CefGlue in .Net Core 2.2, I'm getting an exception after clicking "Run" on the landing page when the app starts up. Not really sure how the controller binding is being handled as the wiki mentions that registering a handler is only for CefSharp.

2019-09-05 15:16:53.478 [INFO] Running Windows chromium 70.0.3538.102
[0905/151655.371:INFO:CONSOLE(38)] "Uncaught ReferenceError: boundControllerAsync is not defined", source: webpack:///./src/services/registered-js-object.service.js? (38)
[0905/151655.373:INFO:CONSOLE(9626)] "The above error occurred in the <Demo> component:
    in Demo (created by Route)
    in Route (created by App)
    in Switch (created by App)
    in Router (created by BrowserRouter)
    in BrowserRouter (created by App)
    in App

Consider adding an error boundary to your tree to customize error handling behavior.
Visit https://fb.me/react-error-boundaries to learn more about error boundaries.", source: webpack:///./node_modules/react-dom/cjs/react-dom.development.js? (9626)
[0905/151655.374:INFO:CONSOLE(12408)] "Uncaught ReferenceError: boundControllerAsync is not defined", source: webpack:///./node_modules/react-dom/cjs/react-dom.development.js? (12408)

Can't run CefGlue.Gtk.Win.Demo

Exception thrown: 'System.IO.FileNotFoundException' in mscorlib.dll
The program '[13600] cefglue_gtk_win_demo.exe' has exited with code 0 (0x0).

Steps to reproduce:

  • Download demo-projects repository
  • Build Chromely.CefGlue.Gtk.Win.Demo
  • Run in Debug or Release

I'm fairly new to this project, but after reading the codebase, I couldn't find any additional steps I had to go through to run the code. Am I missing something?

CrossPlatDemo startup

I followed the steps in the readme, I can restore, build and run without any problems or errors. Also the initial download of the missing binaries was successful.

What I get after dotnet run:

2020-03-21 11:27:47.176 [INFO] Running MacOSX chromium 77.0.3865.120
On CefGlue child process launch arguments:
/Users/user/source/demo-projects/regular-chromely/CrossPlatDemo/bin/Debug/netcoreapp3.1/osx-x64/crossplatdemo --type=gpu-process --field-trial-handle=1718379636,5549198414550298470,15611372194352481318,131072 --disable-features=OutOfBlinkCors --no-sandbox --locales-dir-path=/Users/user/source/demo-projects/regular-chromely/CrossPlatDemo/bin/Debug/netcoreapp3.1/osx-x64/locales --log-file=logs\chromely.cef_20200321.log --log-severity=info --resources-dir-path=/Users/user/source/demo-projects/regular-chromely/CrossPlatDemo/bin/Debug/netcoreapp3.1/osx-x64/ --lang=en-US --default-encoding=utf-8 --allow-file-access-from-files --allow-universal-access-from-files --disable-web-security --ignore-certificate-errors

DevTools listening on ws://127.0.0.1:20480/devtools/browser/d40e206c-2b73-46f4-9215-68d981416982
2020-03-21 11:27:47.423 [INFO] Running MacOSX chromium 77.0.3865.120
On CefGlue child process launch arguments:
/Users/user/source/demo-projects/regular-chromely/CrossPlatDemo/bin/Debug/netcoreapp3.1/osx-x64/crossplatdemo --type=utility --field-trial-handle=1718379636,5549198414550298470,15611372194352481318,131072 --disable-features=OutOfBlinkCors --lang=en-US --service-sandbox-type=network --no-sandbox --locales-dir-path=/Users/user/source/demo-projects/regular-chromely/CrossPlatDemo/bin/Debug/netcoreapp3.1/osx-x64/locales --log-file=logs\chromely.cef_20200321.log --log-severity=info --resources-dir-path=/Users/user/source/demo-projects/regular-chromely/CrossPlatDemo/bin/Debug/netcoreapp3.1/osx-x64/ --lang=en-US --default-encoding=utf-8 --allow-file-access-from-files --allow-universal-access-from-files --disable-web-security --ignore-certificate-errors
On CefGlue child process launch arguments:
/Users/user/source/demo-projects/regular-chromely/CrossPlatDemo/bin/Debug/netcoreapp3.1/osx-x64/crossplatdemo --type=renderer --no-sandbox --log-file=logs\chromely.cef_20200321.log --field-trial-handle=1718379636,5549198414550298470,15611372194352481318,131072 --disable-features=OutOfBlinkCors --lang=en-US --locales-dir-path=/Users/user/source/demo-projects/regular-chromely/CrossPlatDemo/bin/Debug/netcoreapp3.1/osx-x64/locales --log-file=logs\chromely.cef_20200321.log --log-severity=info --resources-dir-path=/Users/user/source/demo-projects/regular-chromely/CrossPlatDemo/bin/Debug/netcoreapp3.1/osx-x64/ --default-encoding=utf-8 --allow-file-access-from-files --allow-universal-access-from-files --disable-web-security --ignore-certificate-errors
2020-03-21 11:27:47.645 [INFO] Running MacOSX chromium 77.0.3865.120
2020-03-21 11:27:47.660 [INFO] Running MacOSX chromium 77.0.3865.120

I assumed a window would pop up? I would appreciate any tips to debug what's going on.

Additional info:
OS: MacOS Mojave 10.14.6
.net: dotnet-core 3.1

BR Merl

Edit: I just tried starting it on Linux and everything worked, restore, build, run -> downloads binaries, window appears.

CrossPlatDemo crashses when closing window on macOS

Running the CrossPlatDemo on macOS works until you try to close the window. When you close the window, you run into a crash. Here's a snippet of the crash report:

Process:               crossplatdemo [61718]
Path:                  /Users/USER/*/crossplatdemo
Identifier:            org.cef.framework
Version:               96.0.18.0 (18.0)
Code Type:             X86-64 (Native)
Parent Process:        dotnet [61716]
Responsible:           Terminal [13213]
User ID:               2046689332

Date/Time:             2022-01-19 15:42:13.109 -0500
OS Version:            macOS 11.6.1 (20G224)
Report Version:        12
Bridge OS Version:     6.0 (19P548)
Anonymous UUID:        171AF21C-39C1-D742-0230-0E29946C4868

Sleep/Wake UUID:       C7952719-A8B0-4BF9-9C25-153FDBFF6821

Time Awake Since Boot: 120000 seconds
Time Since Wake:       23000 seconds

System Integrity Protection: enabled

Crashed Thread:        17  Chrome_IOThread

Exception Type:        EXC_BREAKPOINT (SIGTRAP)
Exception Codes:       0x0000000000000002, 0x0000000000000000
Exception Note:        EXC_CORPSE_NOTIFY

Termination Signal:    Trace/BPT trap: 5
Termination Reason:    Namespace SIGNAL, Code 0x5
Terminating Process:   exc handler [61718]

Application Specific Information:
Calling windowShouldClose: on the delegate for the UnderlayOpenGLHostingWindow 0x7ff722b24e80

Thread 0:: CrBrowserMain  Dispatch queue: com.apple.main-thread
0   libsystem_kernel.dylib        	0x00007fff203629ee __ulock_wait + 10
1   libsystem_pthread.dylib       	0x00007fff20397f60 _pthread_join + 362
2   libcef.dylib                  	0x00000001b2c50514 uhash_compareUnicodeString_69 + 988804
3   libcef.dylib                  	0x00000001b2c2f810 uhash_compareUnicodeString_69 + 854400
4   libcef.dylib                  	0x00000001b10d5279 cdef_copy_rect8_16bit_to_16bit_sse4_1 + 15863929
5   libcef.dylib                  	0x00000001b10d2cff cdef_copy_rect8_16bit_to_16bit_sse4_1 + 15854335
6   libcef.dylib                  	0x00000001b10d411d cdef_copy_rect8_16bit_to_16bit_sse4_1 + 15859485
7   libcef.dylib                  	0x00000001b28c7bea __gxx_personality_v0 + 401066
8   libcef.dylib                  	0x00000001b28c7b42 __gxx_personality_v0 + 400898
9   libcef.dylib                  	0x00000001b28a8035 __gxx_personality_v0 + 271093
10  ???                           	0x000000011136670d 0 + 4583745293
11  ???                           	0x0000000111366507 0 + 4583744775
12  ???                           	0x00000001113199df 0 + 4583430623
13  libchromely.dylib             	0x000000010cc56581 -[RootWindowDelegate cleanup] + 225
14  libchromely.dylib             	0x000000010cc56493 -[RootWindowDelegate windowShouldClose:] + 115
15  com.apple.AppKit              	0x00007fff230267c9 __19-[NSWindow __close]_block_invoke + 153
16  com.apple.AppKit              	0x00007fff23026723 -[NSWindow __close] + 284
17  com.apple.AppKit              	0x00007fff22eb62bb -[NSApplication(NSResponder) sendAction:to:from:] + 288
18  com.apple.AppKit              	0x00007fff22eb615f -[NSControl sendAction:to:] + 86
19  com.apple.AppKit              	0x00007fff22eb6091 __26-[NSCell _sendActionFrom:]_block_invoke + 131
20  com.apple.AppKit              	0x00007fff22eb5f98 -[NSCell _sendActionFrom:] + 171
21  com.apple.AppKit              	0x00007fff22eb5ede -[NSButtonCell _sendActionFrom:] + 96
22  com.apple.AppKit              	0x00007fff22eb2fc7 NSControlTrackMouse + 1820
23  com.apple.AppKit              	0x00007fff22eb2883 -[NSCell trackMouse:inRect:ofView:untilMouseUp:] + 130
24  com.apple.AppKit              	0x00007fff22eb274a -[NSButtonCell trackMouse:inRect:ofView:untilMouseUp:] + 697
25  com.apple.AppKit              	0x00007fff22eb1a72 -[NSControl mouseDown:] + 722
26  com.apple.AppKit              	0x00007fff22eafe5e -[NSWindow(NSEventRouting) _handleMouseDownEvent:isDelayedEvent:] + 4961
27  com.apple.AppKit              	0x00007fff22e1f648 -[NSWindow(NSEventRouting) _reallySendEvent:isDelayedEvent:] + 2594
28  com.apple.AppKit              	0x00007fff22e1ea06 -[NSWindow(NSEventRouting) sendEvent:] + 347
29  com.apple.AppKit              	0x00007fff22e1ce14 -[NSApplication(NSEvent) sendEvent:] + 352
30  com.apple.AppKit              	0x00007fff230f5be1 -[NSApplication _handleEvent:] + 65
31  com.apple.AppKit              	0x00007fff22c85c8e -[NSApplication run] + 623
32  libcef.dylib                  	0x00000001b2c593bc base::mac::CxxPersonalityRoutine(int, _Unwind_Action, unsigned long long, _Unwind_Exception*, _Unwind_Context*) + 4764
33  libcef.dylib                  	0x00000001b2c581d3 base::mac::CxxPersonalityRoutine(int, _Unwind_Action, unsigned long long, _Unwind_Exception*, _Unwind_Context*) + 179
34  libcef.dylib                  	0x00000001b2c173bd uhash_compareUnicodeString_69 + 754989
35  libcef.dylib                  	0x00000001b2be33fd uhash_compareUnicodeString_69 + 542061
36  libcef.dylib                  	0x00000001b28c7d3b __gxx_personality_v0 + 401403
37  ???                           	0x0000000111319aad 0 + 4583430829
38  ???                           	0x0000000111319a23 0 + 4583430691
39  ???                           	0x00000001113199df 0 + 4583430623
40  libchromely.dylib             	0x000000010cc56fc9 createwindow + 233
41  ???                           	0x0000000111319174 0 + 4583428468
42  ???                           	0x0000000111318ba7 0 + 4583426983
43  ???                           	0x0000000111318011 0 + 4583424017
44  ???                           	0x0000000110787d1f 0 + 4571299103
45  ???                           	0x0000000110786bdd 0 + 4571294685
46  ???                           	0x000000011077c716 0 + 4571252502
47  ???                           	0x000000010fb46125 0 + 4558446885
48  libcoreclr.dylib              	0x0000000108fec359 CallDescrWorkerInternal + 124
49  libcoreclr.dylib              	0x0000000108e4052f MethodDescCallSite::CallTargetWorker(unsigned long const*, unsigned long*, int) + 1519
50  libcoreclr.dylib              	0x0000000108e4052f MethodDescCallSite::CallTargetWorker(unsigned long const*, unsigned long*, int) + 1519
51  libcoreclr.dylib              	0x0000000108e4052f MethodDescCallSite::CallTargetWorker(unsigned long const*, unsigned long*, int) + 1519
52  libcoreclr.dylib              	0x0000000108e4052f MethodDescCallSite::CallTargetWorker(unsigned long const*, unsigned long*, int) + 1519
53  libcoreclr.dylib              	0x0000000108e4052f MethodDescCallSite::CallTargetWorker(unsigned long const*, unsigned long*, int) + 1519
54  libcoreclr.dylib              	0x0000000108e4052f MethodDescCallSite::CallTargetWorker(unsigned long const*, unsigned long*, int) + 1519
55  libcoreclr.dylib              	0x0000000108e4052f MethodDescCallSite::CallTargetWorker(unsigned long const*, unsigned long*, int) + 1519
56  libcoreclr.dylib              	0x0000000108e4052f MethodDescCallSite::CallTargetWorker(unsigned long const*, unsigned long*, int) + 1519
57  libcoreclr.dylib              	0x0000000108e4052f MethodDescCallSite::CallTargetWorker(unsigned long const*, unsigned long*, int) + 1519
58  libcoreclr.dylib              	0x0000000108e4052f MethodDescCallSite::CallTargetWorker(unsigned long const*, unsigned long*, int) + 1519
59  libcoreclr.dylib              	0x0000000108e4052f MethodDescCallSite::CallTargetWorker(unsigned long const*, unsigned long*, int) + 1519
60  libcoreclr.dylib              	0x0000000108e4052f MethodDescCallSite::CallTargetWorker(unsigned long const*, unsigned long*, int) + 1519
61  libcoreclr.dylib              	0x0000000108e4052f MethodDescCallSite::CallTargetWorker(unsigned long const*, unsigned long*, int) + 1519
62  libcoreclr.dylib              	0x0000000108e4052f MethodDescCallSite::CallTargetWorker(unsigned long const*, unsigned long*, int) + 1519
63  libcoreclr.dylib              	0x0000000108e4052f MethodDescCallSite::CallTargetWorker(unsigned long const*, unsigned long*, int) + 1519
64  libcoreclr.dylib              	0x0000000108e4052f MethodDescCallSite::CallTargetWorker(unsigned long const*, unsigned long*, int) + 1519
65  libcoreclr.dylib              	0x0000000108e4052f MethodDescCallSite::CallTargetWorker(unsigned long const*, unsigned long*, int) + 1519
66  libcoreclr.dylib              	0x0000000108e4052f MethodDescCallSite::CallTargetWorker(unsigned long const*, unsigned long*, int) + 1519
67  libcoreclr.dylib              	0x0000000108e4052f MethodDescCallSite::CallTargetWorker(unsigned long const*, unsigned long*, int) + 1519
68  libcoreclr.dylib              	0x0000000108e4052f MethodDescCallSite::CallTargetWorker(unsigned long const*, unsigned long*, int) + 1519
69  libcoreclr.dylib              	0x0000000108e4052f MethodDescCallSite::CallTargetWorker(unsigned long const*, unsigned long*, int) + 1519
70  libcoreclr.dylib              	0x0000000108e4052f MethodDescCallSite::CallTargetWorker(unsigned long const*, unsigned long*, int) + 1519
...

It seems like something is going wrong when calling shutdown on libcef, but it's hard to be certain because the stack trace is missing symbols for a handful of calls after -[RootWindowDelegate cleanup].

BlazorDemos/ServerAppDemo can leave a process behind when window closed via Window.Close()

Discovered while setting up a frameless application, an orphaned process can result when WindowController.Close() is called. The leftover process is the blazorTask spawned in Program.Main.

https://github.com/chromelyapps/demo-projects/blob/master/blazor/ServerAppDemo/Program.cs

I'm able to avoid the issue by setting up a couple static fields on Program (Task/CancellationTokenSource)

private static Task BlazorTask;
private static CancellationTokenSource BlazorTaskTokenSource;

creating the task with the CancellationTokenSource token

// start the kestrel server in a background thread
BlazorTaskTokenSource = new CancellationTokenSource();
BlazorTask = new Task(() =>
{
    CreateHostBuilder(args, port).Build().Run();
}, BlazorTaskTokenSource.Token, TaskCreationOptions.LongRunning);
BlazorTask.Start();

and adding an event handler for ProcessExit

AppDomain.CurrentDomain.ProcessExit += ProcessExit;

private static void ProcessExit(object sender, EventArgs e)
{
    Task.Run(() =>
    {
        WaitHandle.WaitAny(new[] { BlazorTaskTokenSource.Token.WaitHandle });
        BlazorTask?.Dispose();
    });
    BlazorTaskTokenSource.Cancel();
}

I'm not 100% certain this is the right solution, however. If the above is something better done with a pull request, I'm happy submit one--just let me know.

Vertical scrollbar always showing

Hello,

When running the regular demo, a vertical scrollbar is always showing as if the content (html) is longer than the window's height, even when it's not.
Also, in the movies list example, there are 2 scrollbars, one from the html and the other from Chromely.

How can I remove it? Knowing that changing the height in the config files doesn't change anything.

Thank you!

Communication protocol between angular app and dotnet

Hello,

In the sample ChromelyAngular, I saw that there is some JSON serialization and the use of the ChromelyController. I understood the the communication protocol is a REST API. Is that correct ?

Is there any other protocol that we can use between Angular and dotnet, like websocket, signalr, grpc, any inproc com possibility ?

Thank you

I solved all ChromelyBlazor.WebAssembly build problems

Problem 1:

  • xcopy doesn't work on Linux

Problem 2:

  • ChromelyBlazor.WebAssembly shouldn't know anything about ChromelyBlazor.WebAssemblyApp because ChromelyBlazor.WebAssemblyApp is using ChromelyBlazor.WebAssembly

Solution 1:

  • Remove this from ChromelyBlazor.WebAssembly:
  <Target Name="PostBuild" AfterTargets="PostBuildEvent">
    <Exec Command="xcopy &quot;$(ProjectDir)wwwroot&quot; &quot;$(SolutionDir)\ChromelyBlazor.WebAssemblyApp\bin\x64\Debug\net6.0\win-x64\app&quot;   /i /s /r /y /c&#xD;&#xA;xcopy &quot;$(TargetDir)wwwroot&quot; &quot;$(SolutionDir)\ChromelyBlazor.WebAssemblyApp\bin\x64\Debug\net6.0\win-x64\app&quot;   /i /s /r /y /c" />
  </Target>
  • Add this to ChromelyBlazor.WebAssemblyApp:
  <ItemGroup>
    <None Include="$(SolutionDir)ChromelyBlazor.WebAssembly\wwwroot\**" CopyToOutputDirectory="PreserveNewest" LinkBase="app\" />
  </ItemGroup>

  <Target Name="PostBuild" AfterTargets="PostBuildEvent">
    <ItemGroup>
      <AfterBuildWwwRoot Include="$(SolutionDir)ChromelyBlazor.WebAssembly\bin\$(ConfigurationName)\$(TargetFramework)\wwwroot\**\*.*" />
    </ItemGroup>
    <Copy SourceFiles="@(AfterBuildWwwRoot)" DestinationFiles="@(AfterBuildWwwRoot->'$(TargetDir)\app\%(RecursiveDir)%(Filename)%(Extension)')" SkipUnchangedFiles="true" />
  </Target>

Problem 3:

  • If you add any NuGet that has its own wwwroot content to the ChromelyBlazor.WebAssembly and use it there like this:
    <link href="_content/Blazorise/blazorise.css" rel="stylesheet" />
    or like this:
    <script src="_content/Microsoft.AspNetCore.Components.WebAssembly.Authentication/AuthenticationService.js"></script>
    then Solution 1 will not work, because _content directory will not be created in the app directory.

Solution 2:

  • you have to publish ChromelyBlazor.WebAssembly so that _content directory will be created (it is not created on build, only on publish)
  • create a folder publish profile named FolderProfile.pubxml in ChromelyBlazor.WebAssembly
  • Visual Studio will save it as ChromelyBlazor.WebAssembly\Properties\PublishProfiles\FolderProfile.pubxml
  • add this to ChromelyBlazor.WebAssemblyApp:
  <PropertyGroup>
    <PublishProfileDirectory>$(SolutionDir)ChromelyBlazor.WebAssembly\Properties\PublishProfiles</PublishProfileDirectory>
    <PublishProfileFileName>FolderProfile</PublishProfileFileName>
  </PropertyGroup>

  <Target Name="PostBuild" AfterTargets="PostBuildEvent">

    <MSBuild 
      Projects="$(SolutionDir)ChromelyBlazor.WebAssembly\ChromelyBlazor.WebAssembly.csproj" 
      Properties="DeployOnBuild=true;PublishProfile=$(PublishProfileFileName);PublishProfileRootFolder=$(PublishProfileDirectory);PublishUrl=$(TargetDir);PlatformTarget=AnyCPU" />

  </Target>
  • publish will automatically create a wwwroot folder inside ChromelyBlazor.WebAssemblyApp\bin\x64\Debug\net6.0\win-x64 so we have to rename app to wwwroot in our code
  • change config.StartUrl = "http://app/index.html"; to config.StartUrl = "http://wwwroot/index.html";
  • change
    new UrlScheme(DefaultSchemeName.LOCALREQUEST, "http", "app", string.Empty, UrlSchemeType.LocalResource, false)
    to
    new UrlScheme(DefaultSchemeName.LOCALREQUEST, "http", "wwwroot", string.Empty, UrlSchemeType.LocalResource, false)

You can see a working solution here: https://github.com/Jinjinov/Ididit/blob/main/Ididit.Wasm.Chromely/Ididit.Wasm.Chromely.csproj

The demo Chromely.CefGlue.Gtk.Linux.Demo not working on Ubuntu 18.04

I'm using the dotnet sdk on Ubuntu 18.04, the build is OK but when I do dotnet run to start the app I get the following error:
2019-09-12 14:20:35.892 [INFO] Running Linux chromium 70.0.3538.102
[0912/142035.970031:ERROR:icu_util.cc(172)] Invalid file descriptor to ICU data received.

Thank you.

Crossplat demo does not work on Mac

When I run it, I've got crash in libcef.dylib, last messages in terminal are

[1110/052302.260519:ERROR:icu_util.cc(177)] icudtl.dat not found in bundle
[1110/052302.260615:ERROR:icu_util.cc(241)] Invalid file descriptor to ICU data received.

StackTrace:

Crashed Thread:        0  Dispatch queue: com.apple.main-thread

Exception Type:        EXC_BREAKPOINT (SIGTRAP)
Exception Codes:       0x0000000000000002, 0x0000000000000000
Exception Note:        EXC_CORPSE_NOTIFY

Termination Signal:    Trace/BPT trap: 5
Termination Reason:    Namespace SIGNAL, Code 0x5
Terminating Process:   exc handler [28272]

Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0   libcef.dylib                  	0x00000001a667aaa5 ChromeAppModeStart_v6 + 3007717
1   libcef.dylib                  	0x00000001a667c3d0 ChromeAppModeStart_v6 + 3014160
2   libcef.dylib                  	0x00000001a8f46b42 cef_time_delta + 39472562
3   libcef.dylib                  	0x00000001a68f76b7 ChromeAppModeStart_v6 + 5615863
4   libcef.dylib                  	0x00000001a68f712c ChromeAppModeStart_v6 + 5614444
5   libcef.dylib                  	0x00000001a403909b cef_initialize + 283
6   ???                           	0x000000011bb5f3df 0 + 4759876575
7   ???                           	0x000000011bb5c73a 0 + 4759865146
8   ???                           	0x000000011bb4ed47 0 + 4759809351
9   ???                           	0x000000011bb4d8a8 0 + 4759804072
10  ???                           	0x000000011bb45f5f 0 + 4759773023
11  ???                           	0x000000011ae80523 0 + 4746380579
12  libcoreclr.dylib              	0x000000010c40742b CallDescrWorkerInternal + 124
13  libcoreclr.dylib              	0x000000010c253239 MethodDescCallSite::CallTargetWorker(unsigned long const*, unsigned long*, int) + 1657
14  libcoreclr.dylib              	0x000000010c11ac26 RunMain(MethodDesc*, short, int*, PtrArray**) + 726
15  libcoreclr.dylib              	0x000000010c11af98 Assembly::ExecuteMainMethod(PtrArray**, int) + 408
16  libcoreclr.dylib              	0x000000010c15b548 CorHost2::ExecuteAssembly(unsigned int, char16_t const*, int, char16_t const**, unsigned int*) + 504
17  libcoreclr.dylib              	0x000000010c092832 coreclr_execute_assembly + 226
18  libhostpolicy.dylib           	0x000000010c0069a7 0x10bff6000 + 68007
19  libhostpolicy.dylib           	0x000000010c00797e 0x10bff6000 + 72062
20  libhostfxr.dylib              	0x000000010bfbb8ef 0x10bf92000 + 170223
21  libhostfxr.dylib              	0x000000010bfbabe2 0x10bf92000 + 166882
22  libhostfxr.dylib              	0x000000010bfb6bea 0x10bf92000 + 150506
23  dotnet                        	0x000000010bf42402 0x10bf36000 + 50178
24  dotnet                        	0x000000010bf429f5 0x10bf36000 + 51701
25  libdyld.dylib                 	0x00007fff6805bcc9 start + 1

COM Interop is not supported on this platform.

Hi Guys,

I have downloaded the latest source code of demo-projects and I adjusted the Chromely.CrossPlat project to work on Linux platform and I got the following error:

$ dotnet run --project Chromely.CrossPlat
Unhandled exception. System.PlatformNotSupportedException: COM Interop is not supported on this platform.
   at System.Threading.Thread.SetApartmentStateUnchecked(ApartmentState state, Boolean throwOnError)
   at System.Threading.Thread.SetApartmentState(ApartmentState state, Boolean throwOnError)
   at System.Threading.Thread.SetApartmentState(ApartmentState state)
   at Chromely.NativeHosts.ThreadApt.STA()
   at Program.<Main>$(String[] args) in /Chromely/demo-projects/regular-chromely/Chromely.CrossPlat/Program.cs:line 10

imagen

imagen

I ran this into
OS: Fedora 36 x64.
.Net: 6.0.107

publish, linux cannot execute

Unable to load shared library 'libcef' or one of its dependencies. In order to help diagnose loading problems, consider setting the LD_DEBUG environment variable: liblibcef: cannot open shared object file: No such file or directory

Crossplat demo does not work on Linux

When trying to run the crossplat demo on Ubuntu 20.04, it compiles without errors but fails to start.

$ dotnet build
Microsoft (R) Build Engine version 16.4.0+e901037fe for .NET Core
Copyright (C) Microsoft Corporation. All rights reserved.

  Restore completed in 16 sec for /app/CrossPlatDemo.csproj.
  CrossPlatDemo -> /app/bin/Debug/netcoreapp3.1/linux-x64/crossplatdemo.dll

Build succeeded.
    0 Warning(s)
    0 Error(s)

Time Elapsed 00:00:18.21

$ dotnet run
Unhandled exception. System.DllNotFoundException: Unable to load shared library 'libgdk-3.so.0' or one of its dependencies. In order to help diagnose loading problems, consider setting the LD_DEBUG environment variable: liblibgdk-3.so.0: cannot open shared object file: No such file or directory
   at Chromely.NativeHost.InteropLinux.gdk_set_allowed_backends(String backend)
   at Chromely.NativeHost.ChromelyLinuxHost..ctor()
   at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor, Boolean wrapExceptions)
   at System.Reflection.RuntimeConstructorInfo.Invoke(BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument)
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitCache(ServiceCallSite callSite, RuntimeResolverContext context, ServiceProviderEngineScope serviceProviderEngine, RuntimeResolverLock lockType)
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitRootCache(ServiceCallSite singletonCallSite, RuntimeResolverContext context)
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSite(ServiceCallSite callSite, TArgument argument)
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitConstructor(ConstructorCallSite constructorCallSite, RuntimeResolverContext context)
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument)
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitCache(ServiceCallSite callSite, RuntimeResolverContext context, ServiceProviderEngineScope serviceProviderEngine, RuntimeResolverLock lockType)
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitRootCache(ServiceCallSite singletonCallSite, RuntimeResolverContext context)
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSite(ServiceCallSite callSite, TArgument argument)
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitConstructor(ConstructorCallSite constructorCallSite, RuntimeResolverContext context)
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument)
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitCache(ServiceCallSite callSite, RuntimeResolverContext context, ServiceProviderEngineScope serviceProviderEngine, RuntimeResolverLock lockType)
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitRootCache(ServiceCallSite singletonCallSite, RuntimeResolverContext context)
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSite(ServiceCallSite callSite, TArgument argument)
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitIEnumerable(IEnumerableCallSite enumerableCallSite, RuntimeResolverContext context)
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument)
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitCache(ServiceCallSite callSite, RuntimeResolverContext context, ServiceProviderEngineScope serviceProviderEngine, RuntimeResolverLock lockType)
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitRootCache(ServiceCallSite singletonCallSite, RuntimeResolverContext context)
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSite(ServiceCallSite callSite, TArgument argument)
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.Resolve(ServiceCallSite callSite, ServiceProviderEngineScope scope)
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.DynamicServiceProviderEngine.<>c__DisplayClass1_0.<RealizeService>b__0(ServiceProviderEngineScope scope)
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.ServiceProviderEngine.GetService(Type serviceType, ServiceProviderEngineScope serviceProviderEngineScope)
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.ServiceProviderEngine.GetService(Type serviceType)
   at Microsoft.Extensions.DependencyInjection.ServiceProvider.GetService(Type serviceType)
   at Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetRequiredService(IServiceProvider provider, Type serviceType)
   at Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetRequiredService[T](IServiceProvider provider)
   at Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetServices[T](IServiceProvider provider)
   at Chromely.Core.ChromelyApp.RegisterControllerRoutes(ServiceProvider serviceProvider)
   at Chromely.Core.AppBuilder.Build()
   at CrossPlatDemo.Demo.Program.Main(String[] args) in /app/Program.cs:line 27

Running prepends this

$ LD_DEBUG=libs dotnet run
      8734:	find library=libpthread.so.0 [0]; searching
      8734:	 search cache=/etc/ld.so.cache
      8734:	  trying file=/lib/x86_64-linux-gnu/libpthread.so.0
      8734:	
      8734:	find library=libdl.so.2 [0]; searching
      8734:	 search cache=/etc/ld.so.cache
      8734:	  trying file=/lib/x86_64-linux-gnu/libdl.so.2
      8734:	
      8734:	find library=libc.so.6 [0]; searching
      8734:	 search cache=/etc/ld.so.cache
      8734:	  trying file=/lib/x86_64-linux-gnu/libc.so.6
      8734:	
      8734:	
      8734:	calling init: /lib/x86_64-linux-gnu/libpthread.so.0
      8734:	
      8734:	
      8734:	calling init: /lib/x86_64-linux-gnu/libc.so.6
      8734:	
      8734:	
      8734:	calling init: /lib/x86_64-linux-gnu/libdl.so.2
      8734:	
      8734:	
      8734:	initialize program: docker
      8734:	
      8734:	
      8734:	transferring control: docker
      8734:	
      8734:	find library=libnss_compat.so.2 [0]; searching
      8734:	 search cache=/etc/ld.so.cache
      8734:	  trying file=/lib/x86_64-linux-gnu/libnss_compat.so.2
      8734:	
      8734:	
      8734:	calling init: /lib/x86_64-linux-gnu/libnss_compat.so.2
      8734:	
      8734:	find library=libnss_nis.so.2 [0]; searching
      8734:	 search cache=/etc/ld.so.cache
      8734:	  trying file=/lib/x86_64-linux-gnu/libnss_nis.so.2
      8734:	
      8734:	find library=libnsl.so.1 [0]; searching
      8734:	 search cache=/etc/ld.so.cache
      8734:	  trying file=/lib/x86_64-linux-gnu/libnsl.so.1
      8734:	
      8734:	find library=libnss_files.so.2 [0]; searching
      8734:	 search cache=/etc/ld.so.cache
      8734:	  trying file=/lib/x86_64-linux-gnu/libnss_files.so.2
      8734:	
      8734:	
      8734:	calling init: /lib/x86_64-linux-gnu/libnss_files.so.2
      8734:	
      8734:	
      8734:	calling init: /lib/x86_64-linux-gnu/libnsl.so.1
      8734:	
      8734:	
      8734:	calling init: /lib/x86_64-linux-gnu/libnss_nis.so.2

before showing the stack trace above.

Any ideas, what I'm missing?

Can't load flash web site

Hi,

I try to load a flash web site with CefGlue gtk linux and i Don't know how to fix it.

I have enable flash, install pepperFlash, use no-zygote, …

Now i have the message "Right-click to run Adobe flash player", the right-click doesn't works. Maybe it's the web site is not allowed?

Any ideas or solutions?

Thanks

icudtl.dat not found in bundle

Hello, I'm getting the following error on osx 10.15.4, although the file is there...

image

I've set the RuntimeIdentifier and config file as described in the docs.
Any ideas?

Typescript sources in DevTools in ReactApp Demo

I tried to run ReactApp demo and can't find how to debug typescript code in devtools. When I open dev tools I see only minified js and there is no way to add sources for debug.
I look at dist folder and found that source maps are generated but they are not accessible through dev tools.

How to enable browsing source code in dev tools for chromely? I know this is possible for electron, so should be possible for chromely also.

What I tried:

  • add sourceRoot with absolute path to source for generated source maps
  • add inlineSource: true parcel setting in package.json
  • put src folder into dist folder

But nothing of these helps. Dev Tools still doesn't show sources.

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.