Docker failed to start on Windows 11 - windows

I intend to run a Linux-based container on Windows. I installed Docker 4.3.2 and 4.4.4 community editions based on WLS2 to do that. After enabling all prerequisites for windows (WSL2, Hyper-V, Containers) and installing Docker, I tried to launch the docker desktop, at first, the docker icon appears on the taskbar but after a few seconds it disappears without showing any error message.
System specification:
OS: Windows 11 pro version 21H2 Build 22000.376
Docker version: 4.3.2 community edition
WSL: wsl v2
Here is the log for last try:
[001:21:20:01.354][I] (25d488c5) 2784eefb-BackendAPI S<-C 5cad5efc-GoBackendClient-CSharp GET /settings
[ at Docker.Core.HttpClientExtensions.<GetJsonAsync>d__0`1.MoveNext() in C:\workspaces\4.3.x\src\github.com\docker\pinata\win\src\Docker.Core\HttpClientExtensions.cs:line 16
[ at Docker.Core.HttpClientExtensions.GetJsonAsync[T](HttpClient httpClient, String uri, CancellationToken cancellationToken)
[ at Docker.Core.GoBackend.GoBackendClient.GetSettingsAsync() in C:\workspaces\4.3.x\src\github.com\docker\pinata\win\src\Docker.Core\GoBackend\GoBackendClient.cs:line 248
[ at Docker.Core.SettingsLoader.<WatchSettingsFile>d__9.MoveNext() in C:\workspaces\4.3.x\src\github.com\docker\pinata\win\src\Docker.Core\SettingsLoader.cs:line 71
[ at Docker.Core.SettingsLoader.WatchSettingsFile()
[001:21:20:01.356][I] (25d488c5) 2784eefb-BackendAPI S->C 5cad5efc-GoBackendClient-CSharp GET /settings (542.5µs): {"acceptCanaryUpdates":false,"activeOrganizationName":"","analyticsEnabled":true,"autoDownloadUpdates":false,"autoStart":true,"cpus":2,"credentialHelper":"docker-credential-wincred.exe","customWslDistroDir":"","dataFolder":"C:\\ProgramData\\DockerDesktop\\vm-data","disableHardwareAcceleration":false,"disableTips":false,"disableUpdate":false,"diskSizeMiB":65536,"diskTRIM":true,"displayRestartDialog":true,"displaySwitchVersionPack":true,"displaySwitchWinLinContainers":true,"displayed18362Deprecation":false,"displayedElectronPopup":[],"displayedTutorial":false,"dns":"8.8.8.8","enableIntegrationWithDefaultWslDistro":true,"exposeDockerAPIOnTCP2375":false,"filesharingDirectories":[],"integratedWslDistros":[],"kubernetesEnabled":false,"kubernetesInitialInstallPerformed":false,"lastLoginDate":0,"latestBannerKey":"","licenseTermsVersion":2,"lifecycleTimeoutSeconds":600,"memoryMiB":2048,"openUIOnStartupDisabled":false,"overrideProxyExclude":"","overrideProxyHttp":"","overrideProxyHttps":"","proxyHttpMode":"system","settingsVersion":16,"showKubernetesSystemContainers":false,"skipUpdateToWSLPrompt":true,"skipWSLMountPerfWarning":false,"socksProxyPort":0,"swapMiB":1024,"swarmFederationExplicitlyLoggedOut":false,"synchronizedDirectories":[],"tipLastId":"float64","tipLastViewedTime":0,"updateAvailableTime":0,"updatePopupAppearanceTime":0,"updateSkippedBuild":"","useCredentialHelper":true,"useDnsForwarder":true,"useNightlyBuildUpdates":false,"useVirtualizationFramework":false,"useVpnkit":true,"useWindowsContainers":false,"versionPack":"default","vpnKitMaxPortIdleTime":"float64","vpnKitTransparentProxy":false,"vpnkitCIDR":"1...4","wslEnableGrpcfuse":false,"wslEngineEnabled":true}
[001:21:20:01.357][I] (18c069ce) 2784eefb-BackendAPI S<-C 5cad5efc-GoBackendClient-CSharp GET /ping
[ at Docker.Core.GoBackend.GoBackendClient.WaitForServer(Object state) in C:\workspaces\4.3.x\src\github.com\docker\pinata\win\src\Docker.Core\GoBackend\GoBackendClient.cs:line 88
[001:21:20:01.357][I] (18c069ce) 2784eefb-BackendAPI S->C 5cad5efc-GoBackendClient-CSharp GET /ping (0s): {"serverTime":1641043201357640200}
[001:21:20:01.482][I] (3a878ee0) 2784eefb-BackendAPI S<-C 5cad5efc-GoBackendClient-CSharp GET /settings
[ at Docker.Core.HttpClientExtensions.<GetJsonAsync>d__0`1.MoveNext() in C:\workspaces\4.3.x\src\github.com\docker\pinata\win\src\Docker.Core\HttpClientExtensions.cs:line 16
[ at Docker.Core.HttpClientExtensions.GetJsonAsync[T](HttpClient httpClient, String uri, CancellationToken cancellationToken)
[ at Docker.Core.GoBackend.GoBackendClient.GetSettingsAsync() in C:\workspaces\4.3.x\src\github.com\docker\pinata\win\src\Docker.Core\GoBackend\GoBackendClient.cs:line 248
[ at Docker.Core.SettingsLoader.<<OnChanged>b__10_0>d.MoveNext() in C:\workspaces\4.3.x\src\github.com\docker\pinata\win\src\Docker.Core\SettingsLoader.cs:line 102
[ at Docker.Core.SettingsLoader.<OnChanged>b__10_0()
[001:21:20:01.483][I] (3a878ee0) 2784eefb-BackendAPI S->C 5cad5efc-GoBackendClient-CSharp GET /settings (1.1523ms): {"acceptCanaryUpdates":false,"activeOrganizationName":"","analyticsEnabled":true,"autoDownloadUpdates":false,"autoStart":true,"cpus":2,"credentialHelper":"docker-credential-wincred.exe","customWslDistroDir":"","dataFolder":"C:\\ProgramData\\DockerDesktop\\vm-data","disableHardwareAcceleration":false,"disableTips":false,"disableUpdate":false,"diskSizeMiB":65536,"diskTRIM":true,"displayRestartDialog":true,"displaySwitchVersionPack":true,"displaySwitchWinLinContainers":true,"displayed18362Deprecation":false,"displayedElectronPopup":[],"displayedTutorial":false,"dns":"8.8.8.8","enableIntegrationWithDefaultWslDistro":true,"exposeDockerAPIOnTCP2375":false,"filesharingDirectories":[],"integratedWslDistros":[],"kubernetesEnabled":false,"kubernetesInitialInstallPerformed":false,"lastLoginDate":0,"latestBannerKey":"","licenseTermsVersion":2,"lifecycleTimeoutSeconds":600,"memoryMiB":2048,"openUIOnStartupDisabled":false,"overrideProxyExclude":"","overrideProxyHttp":"","overrideProxyHttps":"","proxyHttpMode":"system","settingsVersion":16,"showKubernetesSystemContainers":false,"skipUpdateToWSLPrompt":true,"skipWSLMountPerfWarning":false,"socksProxyPort":0,"swapMiB":1024,"swarmFederationExplicitlyLoggedOut":false,"synchronizedDirectories":[],"tipLastId":"float64","tipLastViewedTime":0,"updateAvailableTime":0,"updatePopupAppearanceTime":0,"updateSkippedBuild":"","useCredentialHelper":true,"useDnsForwarder":true,"useNightlyBuildUpdates":false,"useVirtualizationFramework":false,"useVpnkit":true,"useWindowsContainers":false,"versionPack":"default","vpnKitMaxPortIdleTime":"float64","vpnKitTransparentProxy":false,"vpnkitCIDR":"1...4","wslEnableGrpcfuse":false,"wslEngineEnabled":true}
[001:21:20:01.506][I] (b724d811) 2784eefb-BackendAPI S<-C 5cad5efc-GoBackendClient-CSharp GET /settings
[ at Docker.Core.HttpClientExtensions.<GetJsonAsync>d__0`1.MoveNext() in C:\workspaces\4.3.x\src\github.com\docker\pinata\win\src\Docker.Core\HttpClientExtensions.cs:line 16
[ at Docker.Core.HttpClientExtensions.GetJsonAsync[T](HttpClient httpClient, String uri, CancellationToken cancellationToken)
[ at Docker.Core.GoBackend.GoBackendClient.GetSettingsAsync() in C:\workspaces\4.3.x\src\github.com\docker\pinata\win\src\Docker.Core\GoBackend\GoBackendClient.cs:line 248
[ at Docker.Core.SettingsLoader.<<OnChanged>b__10_0>d.MoveNext() in C:\workspaces\4.3.x\src\github.com\docker\pinata\win\src\Docker.Core\SettingsLoader.cs:line 102
[ at Docker.Core.SettingsLoader.<OnChanged>b__10_0()
[001:21:20:01.506][I] (b724d811) 2784eefb-BackendAPI S->C 5cad5efc-GoBackendClient-CSharp GET /settings (557.5µs): {"acceptCanaryUpdates":false,"activeOrganizationName":"","analyticsEnabled":true,"autoDownloadUpdates":false,"autoStart":true,"cpus":2,"credentialHelper":"docker-credential-wincred.exe","customWslDistroDir":"","dataFolder":"C:\\ProgramData\\DockerDesktop\\vm-data","disableHardwareAcceleration":false,"disableTips":false,"disableUpdate":false,"diskSizeMiB":65536,"diskTRIM":true,"displayRestartDialog":true,"displaySwitchVersionPack":true,"displaySwitchWinLinContainers":true,"displayed18362Deprecation":false,"displayedElectronPopup":[],"displayedTutorial":false,"dns":"8.8.8.8","enableIntegrationWithDefaultWslDistro":true,"exposeDockerAPIOnTCP2375":false,"filesharingDirectories":[],"integratedWslDistros":[],"kubernetesEnabled":false,"kubernetesInitialInstallPerformed":false,"lastLoginDate":0,"latestBannerKey":"","licenseTermsVersion":2,"lifecycleTimeoutSeconds":600,"memoryMiB":2048,"openUIOnStartupDisabled":false,"overrideProxyExclude":"","overrideProxyHttp":"","overrideProxyHttps":"","proxyHttpMode":"system","settingsVersion":16,"showKubernetesSystemContainers":false,"skipUpdateToWSLPrompt":true,"skipWSLMountPerfWarning":false,"socksProxyPort":0,"swapMiB":1024,"swarmFederationExplicitlyLoggedOut":false,"synchronizedDirectories":[],"tipLastId":"float64","tipLastViewedTime":0,"updateAvailableTime":0,"updatePopupAppearanceTime":0,"updateSkippedBuild":"","useCredentialHelper":true,"useDnsForwarder":true,"useNightlyBuildUpdates":false,"useVirtualizationFramework":false,"useVpnkit":true,"useWindowsContainers":false,"versionPack":"default","vpnKitMaxPortIdleTime":"float64","vpnKitTransparentProxy":false,"vpnkitCIDR":"1...4","wslEnableGrpcfuse":false,"wslEngineEnabled":true}
[001:21:20:01.544][I] (dafb5e19) 2784eefb-BackendAPI S<-C 5cad5efc-GoBackendClient-CSharp GET /features
[ at Docker.Core.GoBackend.GoBackendClient.<GetFeaturesAsync>d__15.MoveNext() in C:\workspaces\4.3.x\src\github.com\docker\pinata\win\src\Docker.Core\GoBackend\GoBackendClient.cs:line 196
[ at Docker.Core.GoBackend.GoBackendClient.GetFeaturesAsync()
[ at Docker.Core.Features.Features.get_FeatureList() in C:\workspaces\4.3.x\src\github.com\docker\pinata\win\src\Docker.Core\Features\Features.cs:line 21
[ at Docker.Core.Features.Features.GetEnabled() in C:\workspaces\4.3.x\src\github.com\docker\pinata\win\src\Docker.Core\Features\Features.cs:line 74
[ at Docker.ApiServices.Analytics.SegmentApi.<Track>d__21.MoveNext() in C:\workspaces\4.3.x\src\github.com\docker\pinata\win\src\Docker.ApiServices\Analytics\Analytics.cs:line 115
[ at Docker.ApiServices.Analytics.SegmentApi.Track(String eventType, IDictionary`2 additionalProperties, Settings settings)
[ at Docker.ApiServices.Analytics.SegmentApi.<TrackAsync>d__19.MoveNext() in C:\workspaces\4.3.x\src\github.com\docker\pinata\win\src\Docker.ApiServices\Analytics\Analytics.cs:line 70
[ at Docker.ApiServices.Analytics.SegmentApi.TrackAsync(AnalyticEvents analyticEvent, IDictionary`2 additionalProperties)
[ at Docker.Program.Run(IReadOnlyCollection`1 args) in C:\workspaces\4.3.x\src\github.com\docker\pinata\win\src\Docker.Desktop\Program.cs:line 235
[ at Docker.Program.Main(String[] args) in C:\workspaces\4.3.x\src\github.com\docker\pinata\win\src\Docker.Desktop\Program.cs:line 131
[001:21:20:01.550][I] (dafb5e19) 2784eefb-BackendAPI S->C 5cad5efc-GoBackendClient-CSharp GET /features (1.1525ms): {"Auth0":{"description":"Login and authentication is handled by auth0","enabled":false,"label":"Perform login via auth0","name":"Login via auth0","type":1},"NightlyBuilds":{"description":"Switch the application update to the night builds","enabled":false,"label":"Enable nightly builds","name":"Nightly builds","type":1},"ProUser":{"description":"You can upgrade your current tier [here](URL)","enabled":false,"label":"personal","name":"ProUser","type":3},"Procd":{"description":"Enable advanced process management functionality like suspend and resume of containers and the VM","enabled":true,"label":"Enable process management daemon","name":"Process management daemon","type":1},"SignInBanner":{"description":"Show persistent non-dismissible banner to encourage sign in","enabled":false,"label":"Display sign in banner if not logged in","name":"Sign in banner","type":1},"SimultaneousLinuxAndWindowsContainers":{"description":"Allow both Linux and Windows containers simultaneously using docker cli contexts","enabled":false,"label":"Simultaneous Linux and Windows containers","name":"Simultaneous Linux and Windows containers","type":3},"WhaleMenuRedesign":{"description":"Display Whale menu done with Electron","enabled":false,"label":"Enable Whale Menu Redesign","name":"Whale Menu Redesign","type":1},"grpcfuseV2":{"description":"Switch off to use the legacy osxfs file sharing instead.","enabled":true,"label":"Use grpcfuse for filesharing by default","name":"Grpcfuse","type":1},"mutagenV0":{"description":"Use Mutagen to synchronize files in a container with your local disk.","enabled":false,"label":"Two-way file synchronisation","name":"Mutagen","type":1}}
Failed tries:
1- check with different version of Docker desktop 2,3,4.3.2,4.4.4
2- Reconfig the JSON file
3- disable and enabling Docker related services on windows (Hyper-v, Containers, WSL2)
4- updating WSL2
5- installing different Linux distributions on WSL2
6- running the Docker services manually
7- running DockerCli on privileged permission using PowerShell
8- running Docker debugger tools to identify the problem
9- search on Docker repository for a similar issue

After too many searches and tries, finally I resolved it by fresh installations of Windows 11.
There is a problem with the upgraded windows version especially if you already installed and config WSL2 or other Docker dependencies on the previous version.

Did you try to restart, read the doc on how to get it installed.
Make sure that you have hyper-v enabled as well as windows WSL system features.

Related

How to fix AdsError 1792 (0X700) for TwinCAT 3

I am using a Windows PC as my Development PC (XAE) and another Windows PC as my Remote PC (XAR). I have connected them successfully. It is shown in the picture below.
But, this error appeared when I tried to Activate the configuration after connecting to the Runtime PC. This error AdsError: 1792 (0X700) appeared on both (Development PC and the Runtime PC simultaneously).
I have already done the TCP and UDP settings.
Kindly view the event viewer error picture.
Please reference the following link
https://infosys.beckhoff.com/english.php?content=../content/1033/tc3_security_management/1850044555.html&id=
If you are using versioned C++ project, you should check the "Sign TwinCAT C++ executables (*.tmx)" checkbox. Otherwise you get an error such as
ERR | 12/14/2021 10:24:58 AM 051 ms | 'TCOM Server' (10): Error loading repository driver 'C:\TwinCAT\3.1\Boot\Repository\C++ Module Vendor\StateMachineDrv\0.0.0.1\StateMachineDrv' - hr = 0xc0000603

Visual Studio Code blank terminal, can't enter/type anything [Windows 10]

I am facing this issue where I was working fine with Visual Studio Code, installed some extensions, and then my terminal is frozen (blank screen). I am not able to type anything inside terminal.
The image below shows how my terminal looks:
I even tried uninstalling VS Code (as well as all the extensions), updated Windows, and then reinstalled the fresh copy of VS code. But the problem is still there.
I tried some suggested methods in other threads to make the terminal work again, but the terminal problem does not go away.
Some of the suggested solutions that I already tried are:
Re-installing VS Code, updating, and restarting VS Code as well as Windows.
Changing the default Command Line Shell from CMD to Powershell and git bash and back again
Adding a new Command Line Shell
Resizing the terminal window
Zoom In/Out of the terminal
checked the "Use legacy console" option in Powershell options
changed Change inheritEnv to true as "terminal.integrated.inheritEnv": true
Inside the terminal window, Pressed Ctrl + c and hit enter
changed the explorer kind in VS Code form inherited to external "terminal.explorerKind": "external"
changing the renderer type from auto to DOM, canvas forth and back "terminal.integrated.rendererType": "canvas"
System Info:
Windows 10, version 1909
VS Code Info:
Version: 1.44.2 (user setup)
Commit: ff915844119ce9485abfe8aa9076ec76b5300ddd
Date: 2020-04-16T16:36:23.138Z
Electron: 7.1.11
Chrome: 78.0.3904.130
Node.js: 12.8.1
V8: 7.8.279.23-electron.0
OS: Windows_NT x64 6.2.9200
Output of code --log trace:
https://justpaste.it/673hy
Output of code --version
1.44.2
ff915844119ce9485abfe8aa9076ec76b5300ddd
x64
Output of code --status
Version: Code 1.44.2 (ff915844119ce9485abfe8aa9076ec76b5300ddd, 2020-04-16T16:36:23.138Z)
OS Version: Windows_NT x64 6.2.9200
CPUs: Intel(R) Core(TM) i5-4200U CPU # 1.60GHz (4 x 2295)
Memory (System): 7.93GB (2.87GB free)
VM: 0%
Screen Reader: no
Process Argv: --log trace
GPU Status: 2d_canvas: enabled
flash_3d: enabled
flash_stage3d: enabled
flash_stage3d_baseline: enabled
gpu_compositing: enabled
multiple_raster_threads: enabled_on
oop_rasterization: disabled_off
protected_video_decode: unavailable_off
rasterization: enabled
skia_renderer: disabled_off_ok
video_decode: enabled
viz_display_compositor: enabled_on
viz_hit_test_surface_layer: disabled_off_ok
webgl: enabled
webgl2: enabled
CPU % Mem MB PID Process
0 105 13036 code main
0 84 9172 shared-process
0 38 9916 utility
0 213 11576 window (Settings - adv_exe_6 - Visual Studio Code)
0 22 3760 winpty-process
0 7 7652 console-window-host (Windows internal process)
0 7 8760 C:\WINDOWS\System32\cmd.exe
0 20 6228 winpty-process
0 7 232 console-window-host (Windows internal process)
0 44 10196 C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe
0 78 7988 extensionHost
0 64 2840 electron_node tsserver.js
0 35 10444 electron_node typingsInstaller.js typesMap.js
0 60 13140 "C:\Users\ITKHAN\AppData\Local\Programs\Microsoft VS Code\Code.exe" "c:\Users\ITKHAN\AppD
ata\Local\Programs\Microsoft VS Code\resources\app\extensions\json-language-features\server\dist\jsonServerMain" --node-
ipc --clientProcessId=7988
0 42 14272 electron_node tsserver.js
0 22 9492 winpty-process
0 68 5716 C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe
0 7 5724 console-window-host (Windows internal process)
0 11 12124 watcherService
0 7 14004 console-window-host (Windows internal process)
0 22 13552 winpty-process
0 7 10100 console-window-host (Windows internal process)
0 7 11960 C:\WINDOWS\System32\cmd.exe
0 143 13760 gpu-process
0 15 14188 electron-crash-reporter
Workspace Stats:
| Window (Settings - adv_exe_6 - Visual Studio Code)
| Folder (adv_exe_6): 8 files
| File types: js(4) stackdump(1) html(1) css(1)
| Conf files:
I would really appreciate if someone could help me in debugging this issue. Thanks.
Here's a video that helped me find a way to solve this issue.
I unchecked the compatibility mode in VS Code properties where it says Run this program in compatibility mode for:.
But this made the terminal open in an external window instead of being integrated in VS Code whenever I opened an new terminal inside VS Code.
So I also disabled the Conpty for Windows terminal inside VS code settings > Terminal > Inegrated:Windows Enable Conpty
"terminal.integrated.windowsEnableConpty": false
The interesting point to note here is that this solution didn't work for me when this problem first arose. At that time, I had my VS code with all the extensions installed. After updating Windows, reinstalling fresh copy of VS code without any extensions, this solution did do the trick for me.
So, the underlying issue was probably with the outdated Windows, or some extensions that I had installed.
I switched off git.autorefresh in the settings. In VS code, go to file --> Preferences ---> settings and in the search bar type git.autorefresher; then, uncheck whether auto refreshing is enabled. under Git:Autorefresh:
This way worked for me.
As I had the same problem but a different reason for it:
I had these lines in the ~/.zshrc file, which was added by the angular cli. Removing it resolved the issue
# Load Angular CLI autocompletion.
source <(ng completion script)
See also https://code.visualstudio.com/docs/supporting/faq#_resolving-shell-environment-fails

Problem running IntelliJ Idea remotely via xquartz (x11 for mac). java.awt.HeadlessException

At the moment I am trying to run Intellij Idea remotely using x11 over ssh, such that I see the widgets on my personal iMac, but the IDE is actually running on my work issued MacPro. This way I can work from home during the Corona outbreak with a decent size monitor without violating company policy concerning work related code on a personal computer. To that effect I enabled X11 forwarding on the SSH daemon running on my work machine, and installed xquartz on both machines. From my home machine I was able to ssh into my work machine and run x11 programs such as xclock and xeyes without any problems. When I try to run Idea, however I get an exception:
/Applications/IntelliJ\ IDEA.app/Contents/MacOS/idea
2020-03-17 20:29:57,056 [ 2940] ERROR - nsions.impl.ExtensionPointImpl - null
java.awt.HeadlessException
at java.desktop/java.awt.GraphicsEnvironment.checkHeadless(GraphicsEnvironment.java:208)
at java.desktop/java.awt.Window.<init>(Window.java:548)
at java.desktop/java.awt.Frame.<init>(Frame.java:423)
at java.desktop/java.awt.Frame.<init>(Frame.java:388)
at java.desktop/javax.swing.JFrame.<init>(JFrame.java:180)
at com.intellij.openapi.wm.impl.welcomeScreen.FlatWelcomeFrame.<init>(FlatWelcomeFrame.java:93)
at com.intellij.openapi.wm.impl.welcomeScreen.FlatWelcomeFrameProvider.createFrame(FlatWelcomeFrameProvider.java:27)
at com.intellij.openapi.wm.impl.welcomeScreen.WelcomeFrame.lambda$createWelcomeFrame$1(WelcomeFrame.java:177)
at com.intellij.openapi.extensions.impl.ExtensionProcessingHelper.computeSafeIfAny(ExtensionProcessingHelper.java:45)
at com.intellij.openapi.extensions.ExtensionPointName.computeSafeIfAny(ExtensionPointName.java:60)
at com.intellij.openapi.wm.impl.welcomeScreen.WelcomeFrame.createWelcomeFrame(WelcomeFrame.java:177)
at com.intellij.openapi.wm.impl.welcomeScreen.WelcomeFrame.prepareToShow(WelcomeFrame.java:159)
at com.intellij.idea.IdeStarter.main(ApplicationLoader.kt:510)
at com.intellij.idea.ApplicationLoader$startApp$8$1.run(ApplicationLoader.kt:240)
at com.intellij.openapi.application.TransactionGuardImpl.performUserActivity(TransactionGuardImpl.java:193)
at com.intellij.idea.ApplicationLoader$startApp$8.run(ApplicationLoader.kt:239)
at java.base/java.util.concurrent.CompletableFuture$UniRun.tryFire(CompletableFuture.java:783)
at java.base/java.util.concurrent.CompletableFuture$Completion.run(CompletableFuture.java:478)
at java.desktop/java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:313)
at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:776)
at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:727)
at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:721)
at java.base/java.security.AccessController.doPrivileged(Native Method)
at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85)
at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:746)
at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:908)
at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:781)
at com.intellij.ide.IdeEventQueue.lambda$dispatchEvent$8(IdeEventQueue.java:424)
at com.intellij.openapi.progress.impl.CoreProgressManager.computePrioritized(CoreProgressManager.java:698)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:423)
at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:203)
at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:124)
at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:113)
at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:109)
at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
at java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:90)
2020-03-17 20:29:57,058 [ 2942] ERROR - nsions.impl.ExtensionPointImpl - IntelliJ IDEA 2019.3.3 Build #IU-193.6494.35
2020-03-17 20:29:57,058 [ 2942] ERROR - nsions.impl.ExtensionPointImpl - JDK: 11.0.5; VM: OpenJDK 64-Bit Server VM; Vendor: JetBrains s.r.o
2020-03-17 20:29:57,058 [ 2942] ERROR - nsions.impl.ExtensionPointImpl - OS: Mac OS X
2020-03-17 20:29:57,067 [ 2951] ERROR - nsions.impl.ExtensionPointImpl - Last Action:
2020-03-17 20:29:57,068 [ 2952] ERROR - llij.ide.plugins.PluginManager - java.awt.HeadlessException
java.util.concurrent.CompletionException: java.awt.HeadlessException
at java.base/java.util.concurrent.CompletableFuture.encodeThrowable(CompletableFuture.java:314)
at java.base/java.util.concurrent.CompletableFuture.completeThrowable(CompletableFuture.java:319)
at java.base/java.util.concurrent.CompletableFuture$UniRun.tryFire(CompletableFuture.java:787)
at java.base/java.util.concurrent.CompletableFuture$Completion.run(CompletableFuture.java:478)
at java.desktop/java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:313)
at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:776)
at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:727)
at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:721)
at java.base/java.security.AccessController.doPrivileged(Native Method)
at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85)
at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:746)
at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:908)
at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:781)
at com.intellij.ide.IdeEventQueue.lambda$dispatchEvent$8(IdeEventQueue.java:424)
at com.intellij.openapi.progress.impl.CoreProgressManager.computePrioritized(CoreProgressManager.java:698)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:423)
at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:203)
at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:124)
at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:113)
at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:109)
at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
at java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:90)
Caused by: java.awt.HeadlessException
at java.desktop/java.awt.GraphicsEnvironment.checkHeadless(GraphicsEnvironment.java:208)
at java.desktop/java.awt.Window.<init>(Window.java:548)
at java.desktop/java.awt.Frame.<init>(Frame.java:423)
at java.desktop/java.awt.Frame.<init>(Frame.java:388)
at java.desktop/javax.swing.JFrame.<init>(JFrame.java:180)
at com.intellij.openapi.wm.impl.welcomeScreen.WelcomeFrame.<init>(WelcomeFrame.java:48)
at com.intellij.openapi.wm.impl.welcomeScreen.WelcomeFrame.createWelcomeFrame(WelcomeFrame.java:178)
at com.intellij.openapi.wm.impl.welcomeScreen.WelcomeFrame.prepareToShow(WelcomeFrame.java:159)
at com.intellij.idea.IdeStarter.main(ApplicationLoader.kt:510)
at com.intellij.idea.ApplicationLoader$startApp$8$1.run(ApplicationLoader.kt:240)
at com.intellij.openapi.application.TransactionGuardImpl.performUserActivity(TransactionGuardImpl.java:193)
at com.intellij.idea.ApplicationLoader$startApp$8.run(ApplicationLoader.kt:239)
at java.base/java.util.concurrent.CompletableFuture$UniRun.tryFire(CompletableFuture.java:783)
... 19 more
I tried setting one of the idea.vmoptions -Djava.awt.headless=false to help it figure out that there is a actually a remote display device, but this did not help matters. Any help welcome. I am sure I am not the only person working from home and hitting this problem.
The IntelliJ for Mac does not use X11. The moment you start IntelliJ, it will display on your MacPro. It's a big misunderstood for years that Java Application on MacOS could do X11 Forwarding.
You need to use IntelliJ for Linux, running on Linux (could be Docker Container) to do X11 Forwarding.

Starting a cmake-built application with administrative priviliges from Visual Studio 2019 on a remote Linux machine

Running IDE-Machine Windows 10 with Visual Studio 2019.
Target-System for debugging is a Ubuntu 18.04.
Using CMake available in Visual Stdio addons.
Test software is the same lib, with the simple_test program, which already leads to the issue (https://github.com/OpenEtherCATsociety/SOEM).
After passing the eth-interface to the built program, it stops with cause it can't get root.
Already tried to pass sudo in the launch.vs.json and also pipe sudo the program.
Tried to change the access to the security permission for the eth-device.
"configurations": [
{
"type": "cppdbg",
"name": "simple_test (test\\linux\\simple_test\\simple_test)",
"project": "CMakeLists.txt",
"projectTarget": "simple_test (test\\linux\\simple_test\\simple_test)",
... // standard setup
"args": [
"enp3s0" //the eth dev I want to use
],
... // standard setup
]
}
The result of the program without root is:
>SOEM (Simple Open EtherCAT Master)
>Simple test
>Starting simple test
>No socket connection on enp3s0
>Execute as root
expecting something like:
>>sudo ~/SOEM/test/linux/simple_test/simple_test enp3s0
>SOEM (Simple Open EtherCAT Master)
>Simple test
>Starting simple test
>ec_init on enp3s0 succeeded.
>2 slaves found and configured.
>Slaves mapped, state to SAFE_OP.
>segments : 1 : 2 0 0 0
>Request operational state for all slaves
>Calculated workcounter 3
>Operational state reached for all slaves.
>^Cocessdata cycle 320, WKC 3 , O: 00 I: 00 T:0
Suggestions about this would be helpful.
Thanks
Okay solved my problem.
You have to pass sudo to the debugger by adding sudo to "debuggerPath": "/usr/bin/gdb" like this:
"debuggerPath": "sudo /usr/bin/gdb"
Resolved for me.

Pebble can't install app in any way - cloudpebble or command line

I've enjoyed developing simple apps for my pebble watch, but since yesterday I cannot install any new ones on my phone (I do have spare slots on pebble).
I've tried installing old (working) apps via cloudpebble portal, but I get following:
Saving
Compiling
Preparing to install app
Installation rejected. Check your phone for details.
(Phone message: There was an error trying to install the provided app.)
So I've tried installation through a command line:
$ pebble install --cloudpebble -vvvv
But this is the output:
INFO:requests.packages.urllib3.connectionpool:Starting new HTTP connection (1): 209.118.208.39
DEBUG:pebble_tool.util.analytics:Queueing analytics data: {'platform': 'native_sdk', 'data': {}, 'event': 'invoke_command_install', 'identity': {'sdk_client_id': '93381446-f47e-4be5-bd4a-781af1f42c3a', 'user': u'55b8844a6638300025560100'}, 'sdk': {'project': {'sdk': u'3', 'is_watchface': True, 'type': 'native', 'uuid': '2737c550-fd8a-4e70-82be-1b887e5d7a4d', 'app_name': u'MoveInGrid'}, 'host': {'platform': 'Darwin-15.2.0-x86_64-i386-64bit', 'python_version': '2.7.10', 'is_vm': False}, 'version': u'3.8.2', 'tool_version': '4.0.1'}}
DEBUG:requests.packages.urllib3.connectionpool:"HEAD / HTTP/1.1" 301 0
INFO:requests.packages.urllib3.connectionpool:Starting new HTTPS connection (1): td.getpebble.com
DEBUG:requests.packages.urllib3.connectionpool:"POST /td.pebble.sdk_events HTTP/1.1" 200 0
Waiting for phone to connect...
Connected.
DEBUG:libpebble2.communication:-> WatchVersion(command=None, data=WatchVersionRequest())
DEBUG:libpebble2.communication:-> 0001001000
DEBUG:libpebble2.communication:<- 00960010015509b4fb76322e392e31000000000000000000000000000000000000000000000000000035343636346264000005015222545f76312e352e350000000000000000000000000000000000000000000000000000316331363237350001050152e2f83256335233000000000051313536303535453030513604750648b4b026658a035509b4fb656e5f55530000015858585858585800
DEBUG:libpebble2.communication:<- WatchVersion(command=1, data=WatchVersionResponse(running=WatchFirmwareVersion(timestamp=1426699515, version_tag=v2.9.1, git_hash=54664bd, is_recovery=False, hardware_platform=5, metadata_version=1), recovery=WatchFirmwareVersion(timestamp=1377981535, version_tag=v1.5.5, git_hash=1c16275, is_recovery=True, hardware_platform=5, metadata_version=1), bootloader_timestamp=1390606386, board=V3R3, serial=Q156055E00Q6, bt_address=04750648b4b0, resource_crc=644188675, resource_timestamp=1426699515, language=en_US, language_version=1, capabilities=24866934413088856, is_unfaithful=None))
Installing app...
App install failed.
INFO:root:Spent 0.001597 seconds waiting for analytics.
I've tried several things to resolve this issue:
creating new project from provided template;
disconnecting the watch;
watch factory reset;
iOS pebble app reinstallation;
creating and linking to a new cloudpebble account,
but still no luck installing any new apps or reinstalling old ones...
Any help would be greatly appreciated (or more tips on what else to try...).
PS: Apps load just fine in an emulator.
PS2: I can download and install apps from the store just fine [I found PixelMiner that way : )].
PS3: I do have a developer connection on and there is a valid IP shown on iOS app.
I got an answer from Morris on pebble forums. I was developing for SDK3, but still running older version of firmware on a pebble watch. After an update, deployment works again!
Original response:
You are building with the latest SDK but your watch has not the latest firmware.
You either have to upgrade your Pebble Classic to firmware V3.8.2 (see Upgrade to SDK3) or if you want to build for the old firmware you have to use SDK2 instead (see SDK2)

Resources