Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Doesn't work on a mac #4

Closed
amansx opened this issue Sep 15, 2020 · 7 comments
Closed

Doesn't work on a mac #4

amansx opened this issue Sep 15, 2020 · 7 comments

Comments

@amansx
Copy link

amansx commented Sep 15, 2020

[example app]fillMainArgs [./.app/Contents/MacOS/app --enable-logging --v=10] 3
[example app]ExecuteProcess
[example app]Initialize Settings
[example app]RemoteDebuggingPort= 6696
[example app]IgnoreCertificateErrors= false
[example app]CommandLineArgsDisabled= false
[example app]File /Users/aman/Projects/gomvc/icon.png does not exist
[example app]fillMainArgs [./
.app/Contents/MacOS/app --enable-logging --v=10] 3
init_gui
cef_initialize
on_before_command_line_processing
on_register_custom_schemes
[0915/113659.510557:VERBOSE1:pref_proxy_config_tracker_impl.cc(185)] 0xce58da0: set chrome proxy config service to 0xce5a4c0
[0915/113659.512004:VERBOSE1:webrtc_internals.cc(119)] Could not get the download directory.
get_browser_process_handler
[0915/113659.513443:WARNING:gpu_process_host.cc(1217)] The GPU process has crashed 1 time(s)
get_resource_bundle_handler
[0915/113659.520208:VERBOSE2:content_settings_policy_provider.cc(245)] Skipping unset preference: profile.managed_cookies_allowed_for_urls
[0915/113659.520248:VERBOSE2:content_settings_policy_provider.cc(245)] Skipping unset preference: profile.managed_cookies_blocked_for_urls
[0915/113659.520270:VERBOSE2:content_settings_policy_provider.cc(245)] Skipping unset preference: profile.managed_cookies_sessiononly_for_urls
[0915/113659.520289:VERBOSE2:content_settings_policy_provider.cc(245)] Skipping unset preference: profile.managed_images_allowed_for_urls
[0915/113659.520306:VERBOSE2:content_settings_policy_provider.cc(245)] Skipping unset preference: profile.managed_images_blocked_for_urls
[0915/113659.520323:VERBOSE2:content_settings_policy_provider.cc(245)] Skipping unset preference: profile.managed_insecure_content_allowed_for_urls
[0915/113659.520340:VERBOSE2:content_settings_policy_provider.cc(245)] Skipping unset preference: profile.managed_insecure_content_blocked_for_urls
[0915/113659.520357:VERBOSE2:content_settings_policy_provider.cc(245)] Skipping unset preference: profile.managed_javascript_allowed_for_urls
[0915/113659.520374:VERBOSE2:content_settings_policy_provider.cc(245)] Skipping unset preference: profile.managed_javascript_blocked_for_urls
[0915/113659.520391:VERBOSE2:content_settings_policy_provider.cc(245)] Skipping unset preference: profile.managed_notifications_allowed_for_urls
[0915/113659.520408:VERBOSE2:content_settings_policy_provider.cc(245)] Skipping unset preference: profile.managed_notifications_blocked_for_urls
[0915/113659.520425:VERBOSE2:content_settings_policy_provider.cc(245)] Skipping unset preference: profile.managed_plugins_allowed_for_urls
[0915/113659.520441:VERBOSE2:content_settings_policy_provider.cc(245)] Skipping unset preference: profile.managed_plugins_blocked_for_urls
[0915/113659.520458:VERBOSE2:content_settings_policy_provider.cc(245)] Skipping unset preference: profile.managed_popups_allowed_for_urls
[0915/113659.520474:VERBOSE2:content_settings_policy_provider.cc(245)] Skipping unset preference: profile.managed_popups_blocked_for_urls
[0915/113659.520491:VERBOSE2:content_settings_policy_provider.cc(245)] Skipping unset preference: profile.managed_web_usb_ask_for_urls
[0915/113659.520508:VERBOSE2:content_settings_policy_provider.cc(245)] Skipping unset preference: profile.managed_web_usb_blocked_for_urls
[0915/113659.520525:VERBOSE2:content_settings_policy_provider.cc(245)] Skipping unset preference: profile.managed_legacy_cookie_access_allowed_for_domains
[0915/113659.520542:VERBOSE2:content_settings_policy_provider.cc(313)] Skipping unset preference: profile.managed_auto_select_certificate_for_urls
initialize_window_delegate
cef_run_message_loop
[0915/113659.562396:WARNING:gpu_process_host.cc(1217)] The GPU process has crashed 2 time(s)
[0915/113659.563684:WARNING:gpu_process_host.cc(1217)] The GPU process has crashed 3 time(s)
[0915/113659.565045:WARNING:gpu_process_host.cc(1217)] The GPU process has crashed 4 time(s)
[0915/113659.566373:WARNING:gpu_process_host.cc(1217)] The GPU process has crashed 5 time(s)
[0915/113659.567625:WARNING:gpu_process_host.cc(1217)] The GPU process has crashed 6 time(s)
[0915/113659.567658:FATAL:gpu_data_manager_impl_private.cc(439)] GPU process isn't usable. Goodbye.

@Gurkengewuerz
Copy link
Owner

I've never tested this on mac. It should work because of the multithreading architecture. I can't test this that good on my pc. Do you have more information. Can you give me a step by step instruction what you did? Have you followed the Application Layout guide from the CEF Wiki?

@amansx
Copy link
Author

amansx commented Sep 16, 2020

I did not, I'm going through it again and will let you know

@amansx
Copy link
Author

amansx commented Sep 16, 2020

on of the issues I found was the ifdef on linux you'll probably need to add APPLE_ && MACH

@amansx
Copy link
Author

amansx commented Sep 16, 2020

I'll work with you over the next few months and can help get this out

@Gurkengewuerz
Copy link
Owner

PR are welcome as i din't have much time the next days

@fserb
Copy link

fserb commented Sep 27, 2021

Dropping a note here, in case someone is still around.

I got this compiling by:

  • Replacing #ifdef linux on the darwin files with #if defined(__APPLE__) && defined(__MACH__)
  • Replacing the cgo line with: #cgo darwin LDFLAGS: -F./Release -framework "Chromium Embedded Framework"

This makes go compile all cfe (and the examples).

Then I created an app directory, following the layout. When I try to run the binary, I get the same error as above.

It's not very clear what I should be putting as the "helper" binary? I copied the same binary that go generated.

Gurkengewuerz added a commit that referenced this issue Oct 11, 2021
@Gurkengewuerz
Copy link
Owner

Hello everyone.
I've found a bit of time to try cefgo on an old MacMini back from 2011. I made some changes to compile it on macOS. I also added a note for bundling on macOS and refer to the CEF Wiki. Sadly i could not run the example on my MacMini. The exception i got is related with the GPU. Could you guys try it?

@Gurkengewuerz Gurkengewuerz closed this as not planned Won't fix, can't repro, duplicate, stale Jul 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants