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

error output:wine: cannot find L"C:\\windows\\system32\\winemenubuilder.exe" #4336

Closed
lacymorrow opened this issue Oct 20, 2019 · 18 comments
Closed
Labels

Comments

@lacymorrow
Copy link

lacymorrow commented Oct 20, 2019

  • Version: 21.2.0
    Building for x64 Windows

Used to work, few months and a new system later, Windows builds no longer work from Mac.

                    out=WiX Toolset Linker version 4.0.0.5512
Copyright (c) .NET Foundation and contributors. All rights reserved.

Updating file information.

                    errorOut=wine: cannot find L"C:\\windows\\system32\\winemenubuilder.exe"
    err:wineboot:ProcessRunKeys Error running cmd L"C:\\windows\\system32\\winemenubuilder.exe -a -r" (2)
    Z:\Users\tmorrow\repo\cinematic\.desktop-installer\__msi-x64\project.wxs(141) : error LGHT0103 : The system cannot find the file 'Z:\Users\tmorrow\repo\cinematic\.desktop-installer\win-unpacked\resources\app\.reify-cache\00fbb6e6961ad6900660bc58cd1ed66bf0e72a24.js'.
    
                    command=/Users/tmorrow/Library/Caches/electron-builder/wine/wine-2.0.3-mac-10.13/bin/wine 'Z:\Users\tmorrow\Library\Caches\electron-builder\wix\wix-4.0.0.5512.2\light.exe' -out 'Z:\Users\tmorrow\repo\cinematic\.desktop-installer\Cinematic 1.1.1.msi' -v -spdb -sw1076 '-dappDir=Z:\Users\tmorrow\repo\cinematic\.desktop-installer\win-unpacked' -pedantic -wx -sval project.wixobj
                    workingDir=
@spencer17x
Copy link

Can you solve this problem? I also encountered the same problem as you.

@lacymorrow
Copy link
Author

lacymorrow commented Oct 23, 2019

What kind of project do you have @XuZpeng ?

I'm building using wojtkowiak/meteor-desktop so there's a whole separate set of issues but I've noticed it seems to be related to the msi build (Windows).

That being said I was able to get it working a few days ago and the error showed up again.

@lacymorrow
Copy link
Author

lacymorrow commented Oct 23, 2019

FWIW I can create and build a project using https://github.com/sindresorhus/electron-boilerplate no problem, so it has to do with the implementation of electron-boilerplate

@spencer17x
Copy link

@lacymorrow I can use windows to package it.

@lacymorrow
Copy link
Author

I'm not building MSI packages, instead I'm using nsis packages. These work and can be built no problem from MacOS.

I'm using Appveyor to build MSI packages and 32-bit.

@dehmer
Copy link

dehmer commented Nov 4, 2019

Same problem here after updating from 20.44.4 to 22.1.0 under macOS 10.14.6 (Mojave)

win:
  target:
    - target: nsis
      arch:
        - x64
        - ia32

@lacymorrow
Copy link
Author

@dehmer Want to post your error log? I didn't think this error would occur with nsis targets.

@hkennyv
Copy link

hkennyv commented Nov 6, 2019

i'm running into this same error trying to build for windows. i'm on mac os mojave 10.14.6. any progress on this issue?

  ⨯ cannot execute  cause=signal: killed
                    errorOut=wine: cannot find L"C:\\windows\\system32\\winemenubuilder.exe"
    err:wineboot:ProcessRunKeys Error running cmd L"C:\\windows\\system32\\winemenubuilder.exe -a -r" (2)
    wine: Unhandled page fault on read access to 0x004cb000 at address 0x403472 (thread 0009), starting debugger...
    
                    command=/Users/khuynh/Library/Caches/electron-builder/wine/wine-2.0.3-mac-10.13/bin/wine '/Users/khuynh/react-electron-starter/dist/MyApp Setup 0.1.0.exe'
                    workingDir=
  ⨯ /Users/khuynh/react-electron-starter/node_modules/app-builder-lib/node_modules/app-builder-bin/mac/app-builder exited with code ERR_ELECTRON_BUILDER_CANNOT_EXECUTE  stackTrace=

@BusinessDuck
Copy link
Contributor

Electron [email protected]
OS 10.13.6 High Sierra

Same problem

System information:
[11:22:54]	[Step 1/1]         Wine build: wine-2.0.3
[11:22:54]	[Step 1/1]         Platform: i386
[11:22:54]	[Step 1/1]         Version: Windows 7
[11:22:54]	[Step 1/1]         Host system: Darwin
[11:22:54]	[Step 1/1]         Host version: 17.7.0
[11:22:54]	[Step 1/1]     
[11:22:54]	[Step 1/1]                     errorOut=wine: cannot find L"C:\\windows\\system32\\winemenubuilder.exe"
[11:22:54]	[Step 1/1]     err:wineboot:ProcessRunKeys Error running cmd L"C:\\windows\\system32\\winemenubuilder.exe -a -r" (2)
[11:22:54]	[Step 1/1]     wine: Unhandled page fault on read access to 0x004cb000 at address 0x403472 (thread 0009), starting debugger...
[11:22:54]	[Step 1/1]     err:winediag:nulldrv_CreateWindow Application tried to create a window, but no driver could be loaded.
[11:22:54]	[Step 1/1]     err:winediag:nulldrv_CreateWindow The graphics driver is missing. Check your build!
[11:22:54]	[Step 1/1]     winedevice.exe(15247,0x401fc000) malloc: *** error for object 0x407009a2: pointer being freed was not allocated

@BusinessDuck
Copy link
Contributor

rollback electron-builder to 21.2.0 solve my problem, but latest version still looks unstable

@beevelop
Copy link

I can confirm the issue on macOS 10.14.6 (18G103) and [email protected].

  ⨯ cannot execute  cause=signal: killed
                    errorOut=wine: cannot find L"C:\\windows\\system32\\winemenubuilder.exe"
    err:wineboot:ProcessRunKeys Error running cmd L"C:\\windows\\system32\\winemenubuilder.exe -a -r" (2)
    wine: Unhandled page fault on read access to 0x004cb000 at address 0x403472 (thread 0009), starting debugger...

@empurium
Copy link

rollback electron-builder to 21.2.0 solve my problem, but latest version still looks unstable

This fixed for me as well, thank you for the suggestion!

@hkennyv
Copy link

hkennyv commented Nov 29, 2019

It looks like they fixed it in the latest minor release. I was able to build for -mwl on macOS 10.14.6.

[email protected]

@dehmer
Copy link

dehmer commented Nov 29, 2019

[email protected] looks good to me. Also on macOS 10.14.6.
A keeper ;-)

@stale
Copy link

stale bot commented Jan 28, 2020

Is this still relevant? If so, what is blocking it? Is there anything you can do to help move it forward?

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

@stale stale bot added the backlog label Jan 28, 2020
@stale stale bot closed this as completed Feb 4, 2020
@tsyopa
Copy link

tsyopa commented Apr 23, 2020

Removing electron-builder cache folder helped in my case.
On macos it is located in ~/Library/Caches/electron-builder

@justong86
Copy link

Same problem。
check your menory!!! I'm just guessing,meybe not enough available memory to complete this task.

@fionaInBits
Copy link

same problem. macOS 13.2, electron 11.5.0, electron-builder 22.9.1

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

No branches or pull requests

10 participants