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

Libraries not found when building for Windows with electronuserland-builder:wine #6780

Closed
lynxtaa opened this issue Apr 11, 2022 · 12 comments · Fixed by #6816
Closed

Libraries not found when building for Windows with electronuserland-builder:wine #6780

lynxtaa opened this issue Apr 11, 2022 · 12 comments · Fixed by #6816

Comments

@lynxtaa
Copy link

lynxtaa commented Apr 11, 2022

  • Electron-Builder Version: 22.14.13
  • Node Version: 16.14.2
  • Electron Version: 17.0.2
  • Electron Type (current, beta, nightly):
  • Target: nsis, zip, AppImage

When building with electronuserland-builder/wine using electron-builder@22.14.13 I have this error:

  • downloading     url=https://github.com/electron-userland/electron-builder-binaries/releases/download/winCodeSign-2.6.0/winCodeSign-2.6.0.7z size=5.6 MB parts=1
  • downloaded      url=https://github.com/electron-userland/electron-builder-binaries/releases/download/winCodeSign-2.6.0/winCodeSign-2.6.0.7z duration=1.119s
  ⨯ cannot execute  cause=exit status 53
                    errorOut=0024:err:environ:run_wineboot boot event wait timed out
    0024:err:module:import_dll Library sechost.dll (which is needed by L"C:\\windows\\system32\\advapi32.dll") not found
    0024:err:module:import_dll Library advapi32.dll (which is needed by L"C:\\windows\\system32\\USER32.dll") not found
    0024:err:module:import_dll Library sechost.dll (which is needed by L"C:\\windows\\system32\\advapi32.dll") not found
    0024:err:module:import_dll Library advapi32.dll (which is needed by L"C:\\windows\\system32\\gdi32.dll") not found
    0024:err:module:import_dll Library win32u.dll (which is needed by L"C:\\windows\\system32\\gdi32.dll") not found
    0024:err:module:import_dll Library gdi32.dll (which is needed by L"C:\\windows\\system32\\USER32.dll") not found
    0024:err:module:import_dll Library sechost.dll (which is needed by L"C:\\windows\\system32\\USER32.dll") not found
    0024:err:module:import_dll Library sechost.dll (which is needed by L"C:\\windows\\system32\\advapi32.dll") not found
    0024:err:module:import_dll Library advapi32.dll (which is needed by L"C:\\windows\\system32\\setupapi.dll") not found
    0024:err:module:import_dll Library sechost.dll (which is needed by L"C:\\windows\\system32\\advapi32.dll") not found
    0024:err:module:import_dll Library advapi32.dll (which is needed by L"C:\\windows\\system32\\rpcrt4.dll") not found
    0024:err:module:import_dll Library rpcrt4.dll (which is needed by L"C:\\windows\\system32\\setupapi.dll") not found
    0024:err:module:import_dll Library setupapi.dll (which is needed by L"C:\\windows\\system32\\USER32.dll") not found
    0024:err:module:import_dll Library win32u.dll (which is needed by L"C:\\windows\\system32\\USER32.dll") not found
    0024:err:module:import_dll Library USER32.dll (which is needed by L"Z:\\root\\.cache\\electron-builder\\winCodeSign\\winCodeSign-2.6.0\\rcedit-ia32.exe") not found
    0024:err:module:LdrInitializeThunk Importing dlls for L"Z:\\root\\.cache\\electron-builder\\winCodeSign\\winCodeSign-2.6.0\\rcedit-ia32.exe" failed, status c0000135
    002c:err:wineboot:process_run_key Error running cmd L"C:\\windows\\system32\\winemenubuilder.exe -a -r" (126).
    003c:err:service:process_send_command service protocol error - failed to write pipe!
    003c:err:service:process_send_command service protocol error - failed to write pipe!
    0060:err:winediag:nodrv_CreateWindow Application tried to create a window, but no driver could be loaded.
    0060:err:winediag:nodrv_CreateWindow The explorer process failed to start.
    002c:err:winediag:nodrv_CreateWindow Application tried to create a window, but no driver could be loaded.
    002c:err:winediag:nodrv_CreateWindow The explorer process failed to start.
    0054:err:service:process_send_command service protocol error - failed to write pipe!
    0068:err:winediag:nodrv_CreateWindow Application tried to create a window, but no driver could be loaded.
    0068:err:winediag:nodrv_CreateWindow The explorer process failed to start.
    0068:err:ole:apartment_createwindowifneeded CreateWindow failed with error 3
    0070:err:winediag:nodrv_CreateWindow Application tried to create a window, but no driver could be loaded.
    0068:err:ole:apartment_createwindowifneeded CreateWindow failed with error 0
    0070:err:winediag:nodrv_CreateWindow The explorer process failed to start.
    0070:err:ole:apartment_createwindowifneeded CreateWindow failed with error 3
    0070:err:ole:apartment_createwindowifneeded CreateWindow failed with error 0
    0068:err:ole:apartment_createwindowifneeded CreateWindow failed with error 0
    0070:err:ole:apartment_createwindowifneeded CreateWindow failed with error 0
    0084:err:winediag:nodrv_CreateWindow Application tried to create a window, but no driver could be loaded.
    0084:err:winediag:nodrv_CreateWindow The explorer process failed to start.
    0054:err:service:process_send_command service protocol error - failed to write pipe!
    0068:err:ole:start_rpcss Failed to start RpcSs service
    00a0:err:service:process_send_command service protocol error - failed to write pipe!
    0070:err:ole:start_rpcss Failed to start RpcSs service
    0054:err:service:process_send_command service protocol error - failed to write pipe!
    0068:err:ole:start_rpcss Failed to start RpcSs service
    00a0:err:service:process_send_command service protocol error - failed to write pipe!
    0070:err:ole:start_rpcss Failed to start RpcSs service
    00a0:err:service:process_send_command service protocol error - failed to write pipe!
    00a0:err:service:process_send_command service protocol error - failed to write pipe!
    00a0:err:service:process_send_command service protocol error - failed to write pipe!
    002c:err:setupapi:SetupDiInstallDevice Failed to start service L"winebus" for device L"ROOT\\WINE\\WINEBUS", error 1053.
    002c:err:setupapi:SetupDiInstallDevice Failed to control service L"winebus" for device L"ROOT\\WINE\\WINEBUS", error 1062.
    00a0:err:service:process_send_command service protocol error - failed to write pipe!
    002c:err:setupapi:SetupDiInstallDevice Failed to start service L"wineusb" for device L"ROOT\\WINE\\WINEUSB", error 1053.
    002c:err:setupapi:SetupDiInstallDevice Failed to control service L"wineusb" for device L"ROOT\\WINE\\WINEUSB", error 1062.
    wine: configuration in L"/root/.wine" has been updated.
    
                    command=wine /root/.cache/electron-builder/winCodeSign/winCodeSign-2.6.0/rcedit-ia32.exe '/builds/rubin/client/dist/win-ia32-unpacked/Rubin Next.exe' --set-version-string FileDescription 'Rubin Next' --set-version-string ProductName 'Rubin Next' --set-version-string LegalCopyright 'Copyright © 2022 Rubin Team' --set-file-version 5.22.0-beta.1.3118 --set-product-version 5.22.0.3118 --set-version-string InternalName 'Rubin Next' --set-version-string OriginalFilename '' --set-version-string CompanyName 'Rubin Team' --set-icon /builds/rubin/client/icons/icon.next.ico

Also I've tried to upgrade electronuserland-builder/16-wine and electron-builder@23.0.3. Same error.

It works OK when using electronuserland-builder/14-wine-01.22.

Maybe it has something to do with 7f3e35b ?

@lynxtaa lynxtaa changed the title Libraries not found when building NSIS with electronuserland-builder:wine Libraries not found when building for Windows with electronuserland-builder:wine Apr 11, 2022
@lynxtaa
Copy link
Author

lynxtaa commented Apr 11, 2022

Also, I have the same error with "signAndEditExecutable": false

@4ekin
Copy link

4ekin commented Apr 12, 2022

Same error with electronuserland-builder/wine and electron-builder@21.2.0
But it's very strange that these errors I see only in CI, on my local machine (ubuntu) there are no errors

@lynxtaa
Copy link
Author

lynxtaa commented Apr 12, 2022

@4ekin Same, I have these errors only when running in Gitlab CI

@4ekin
Copy link

4ekin commented Apr 12, 2022

My .gitlab-ci runs docker in docker (maybe it's useful information)

services:
  - docker:19-dind

@lynxtaa
Copy link
Author

lynxtaa commented Apr 12, 2022

@4ekin Right now as a workaround I'm successfully using NodeJS 16 with older electronuserland/builder

build-nightly:
  image: electronuserland/builder:14-wine-01.22
  script:
    # Remove NodeJS 14
    - rm -rf /usr/local/bin/*
    # Install NodeJS 16
    - curl -fsSL https://deb.nodesource.com/setup_16.x | bash -
    - apt-get install -y nodejs
    - npm ci
    - npm run dist

@mmaietta
Copy link
Collaborator

Maybe it has something to do with 7f3e35b ?

We could downgrade node version from 14.19.1 back down to 14.17.0 and see if that works? Nothing else changed between the node 14 images. The node 16 images didn't exist prior so I'm not sure what is happening there

@lynxtaa
Copy link
Author

lynxtaa commented Apr 21, 2022

Maybe it has something to do with 7f3e35b ?

We could downgrade node version from 14.19.1 back down to 14.17.0 and see if that works? Nothing else changed between the node 14 images. The node 16 images didn't exist prior so I'm not sure what is happening there

Let's try. Maybe it'll help, thanks.

To be clear, right now I have errors only when running inside Gitlab CI with electronuserland/builder:wine and electronuserland/builder:16-wine but no errors with electronuserland/builder:14-wine-01.22

@mmaietta
Copy link
Collaborator

If it's happening on both node 14 and node 16 images for 04.22, then my best guess is that either some of the dependencies that were installed are a new version, or the wine version changed.
Is it possible to get the wine version from the 01.22 and 04.22 docker images? I'm not familiar with wine tbh, I just built the pipeline for deploying the images.

@lynxtaa
Copy link
Author

lynxtaa commented Apr 21, 2022

If it's happening on both node 14 and node 16 images for 04.22, then my best guess is that either some of the dependencies that were installed are a new version, or the wine version changed. Is it possible to get the wine version from the 01.22 and 04.22 docker images? I'm not familiar with wine tbh, I just built the pipeline for deploying the images.

You're right, wine version is different in 04.22

Image Wine Version
electronuserland/builder:14-wine-01.22 wine-6.0.2
electronuserland/builder:wine wine-7.0
electronuserland/builder:16-wine wine-7.0

@mmaietta
Copy link
Collaborator

I was able to figure out a way to force install a specific version, so we'll try locking it to 6.0.4. I'll try and get a deployment out soon

@mmaietta
Copy link
Collaborator

@lynxtaa @4ekin can you please test now with latest wine images? It over-wrote the 04.22 tagged image

@lynxtaa
Copy link
Author

lynxtaa commented Apr 25, 2022

@mmaietta It works now! Thank you for our help ❤️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants