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

[bug] Execute 'tauri build' command, stuck in 'running light to produce' for a long time without results #3399

Closed
tomgao365 opened this issue Feb 11, 2022 · 5 comments

Comments

@tomgao365
Copy link

tomgao365 commented Feb 11, 2022

Describe the bug

Execute the tauri build command, the console has been stuck at ' running light to produce' for a long time and is not responding。

I am using the project initialized with yarn create tauri-app with no other modifications.

run yarn tarui build

PS D:\Work\temp\tauri-app> yarn tauri build
yarn run v1.22.17
$ tauri build
   Compiling app v0.1.0 (D:\Work\temp\tauri-app\src-tauri)
    Finished release [optimized] target(s) in 13.08s
info: Target: x64
info: trying to sign app
info: running candle for "main.wxs"
info: running candle.exe
info: running light to produce D:\Work\temp\tauri-app\src-tauri\target\release\bundle/msi/atom-tool_0.1.0_x64_en-US.msi

run yarn tarui build --debug

PS D:\Work\temp\tauri-app> yarn tauri build --debug
yarn run v1.22.17
$ tauri build --debug
   Compiling app v0.1.0 (D:\Work\temp\tauri-app\src-tauri)
    Finished dev [unoptimized + debuginfo] target(s) in 2.61s
info: Target: x64
info: trying to sign app
info: running candle for "main.wxs"
info: running candle.exe
info: running light to produce D:\Work\temp\tauri-app\src-tauri\target\debug\bundle/msi/atom-tool_0.1.0_x64_en-US.msi

Reproduction

No response

Expected behavior

No response

Platform and versions

run `yarn tauri info`


Operating System - Windows, version 10.0.19044 X64
Webview2 - 98.0.1108.43
Visual Studio Build Tools:        
   - Visual Studio ���ɹ��� 2019   
   - Visual Studio Enterprise 2022

Node.js environment
  Node.js - 14.19.0
  @tauri-apps/cli - 1.0.0-rc.0
  @tauri-apps/api - 1.0.0-rc.0

Global packages
  npm - 6.14.16
  pnpm - 6.30.1
  yarn - 1.22.17

Rust environment
  rustc - 1.58.1
  cargo - 1.58.0

Rust environment
  rustup - 1.24.3
  rustc - 1.58.1
  cargo - 1.58.0
  toolchain - stable-x86_64-pc-windows-msvc 

App directory structure
/.history
/.vscode
/dist
/node_modules
/public
/src
/src-tauri

App
  tauri.rs - 1.0.0-rc.0
  build-type - bundle
  CSP - default-src 'self'
  distDir - ../dist
  devPath - http://localhost:3000/
  framework - Vue.js


Computer:
AMD 5800X + AMD Radeon RX550 + 32G

Stack trace

No response

Additional context

No response

@lucasfernog
Copy link
Member

Can you try with tauri build --verbose to see if the log is helpful?

@lucasfernog
Copy link
Member

Do you have the updater enabled? I just saw this is happening on our CI too, but only on the updater job. Will investigate more.

@tomgao365
Copy link
Author

The magic happened, when I added --verbose parameter, yarn tauri build --versbose and yarn tauri build --debug --verbose executed successfully。But if I remove --verbose, I still have the same problem

PS D:\Work\temp\tauri-test\tauri-app> yarn tauri build --debug --verbose
yarn run v1.22.17
$ tauri build --debug --verbose
   Compiling app v0.1.0 (D:\Work\temp\tauri-test\tauri-app\src-tauri)
    Finished dev [unoptimized + debuginfo] target(s) in 2.76s
info: Target: x64
info: trying to sign app
info: running candle for "main.wxs"
info: running candle.exe
Windows Installer XML Toolset Compiler version 3.11.2.4516
Copyright (c) .NET Foundation and contributors. All rights reserved.

main.wxs
info: running light to produce D:\Work\temp\tauri-test\tauri-app\src-tauri\target\debug\bundle/msi/tauri-app_0.1.0_x64_en-US.msi
Windows Installer XML Toolset Linker version 3.11.2.4516
Copyright (c) .NET Foundation and contributors. All rights reserved.

light.exe : warning LGHT1076 : ICE03: String overflow (greater than length permitted in column); Table: Component, Column: Component, Key(s): msvcp140_atomic_wait.dll_system_amd64.DFEFC2FE_EEE6_424C_841B_D4E66F0C84A3
light.exe : warning LGHT1076 : ICE03: String overflow (greater than length permitted in column); Table: Component, Column: Component, Key(s): msvcp140_codecvt_ids.dll_system_amd64.DFEFC2FE_EEE6_424C_841B_D4E66F0C84A3
light.exe : warning LGHT1076 : ICE03: String overflow (greater than length permitted in column); Table: FeatureComponents, Column: Component_, Key(s): Microsoft_VC142_CRT_x64.msm.msvcp140_atomic_wait.dll_system_amd64.DFEFC2FE_EEE6_424C_841B_D4E66F0C84A3
light.exe : warning LGHT1076 : ICE03: String overflow (greater than length permitted in column); Table: FeatureComponents, Column: Component_, Key(s): Microsoft_VC142_CRT_x64.msm.msvcp140_codecvt_ids.dll_system_amd64.DFEFC2FE_EEE6_424C_841B_D4E66F0C84A3
light.exe : warning LGHT1076 : ICE03: String overflow (greater than length permitted in column); Table: File, Column: Component_, Key(s): msvcp140_atomic_wait.dll.DFEFC2FE_EEE6_424C_841B_D4E66F0C84A3     
light.exe : warning LGHT1076 : ICE03: String overflow (greater than length permitted in column); Table: File, Column: Component_, Key(s): msvcp140_codecvt_ids.dll.DFEFC2FE_EEE6_424C_841B_D4E66F0C84A3     
light.exe : warning LGHT1076 : ICE03: String overflow (greater than length permitted in column); Table: File, Column: File, Key(s): api_ms_win_core_errorhandling_l1_1_0.dll.DFEFC2FE_EEE6_424C_841B_D4E66F0C84A3
light.exe : warning LGHT1076 : ICE03: String overflow (greater than length permitted in column); Table: File, Column: File, Key(s): api_ms_win_core_interlocked_l1_1_0.dll.DFEFC2FE_EEE6_424C_841B_D4E66F0C84A3
light.exe : warning LGHT1076 : ICE03: String overflow (greater than length permitted in column); Table: File, Column: File, Key(s): api_ms_win_core_libraryloader_l1_1_0.dll.DFEFC2FE_EEE6_424C_841B_D4E66F0C84A3
light.exe : warning LGHT1076 : ICE03: String overflow (greater than length permitted in column); Table: File, Column: File, Key(s): api_ms_win_core_localization_l1_2_0.dll.DFEFC2FE_EEE6_424C_841B_D4E66F0C84A3
light.exe : warning LGHT1076 : ICE03: String overflow (greater than length permitted in column); Table: File, Column: File, Key(s): api_ms_win_core_namedpipe_l1_1_0.dll.DFEFC2FE_EEE6_424C_841B_D4E66F0C84A3
light.exe : warning LGHT1076 : ICE03: String overflow (greater than length permitted in column); Table: File, Column: File, Key(s): api_ms_win_core_processenvironment_l1_1_0.dll.DFEFC2FE_EEE6_424C_841B_D4E66F0C84A3
light.exe : warning LGHT1076 : ICE03: String overflow (greater than length permitted in column); Table: File, Column: File, Key(s): api_ms_win_core_processthreads_l1_1_0.dll.DFEFC2FE_EEE6_424C_841B_D4E66F0C84A3
light.exe : warning LGHT1076 : ICE03: String overflow (greater than length permitted in column); Table: File, Column: File, Key(s): api_ms_win_core_processthreads_l1_1_1.dll.DFEFC2FE_EEE6_424C_841B_D4E66F0C84A3
light.exe : warning LGHT1076 : ICE03: String overflow (greater than length permitted in column); Table: File, Column: File, Key(s): api_ms_win_core_rtlsupport_l1_1_0.dll.DFEFC2FE_EEE6_424C_841B_D4E66F0C84A3
light.exe : warning LGHT1076 : ICE03: String overflow (greater than length permitted in column); Table: File, Column: File, Key(s): api_ms_win_crt_environment_l1_1_0.dll.DFEFC2FE_EEE6_424C_841B_D4E66F0C84A3
light.exe : warning LGHT1076 : ICE03: String overflow (greater than length permitted in column); Table: File, Column: File, Key(s): api_ms_win_crt_filesystem_l1_1_0.dll.DFEFC2FE_EEE6_424C_841B_D4E66F0C84A3
light.exe : warning LGHT1076 : ICE03: String overflow (greater than length permitted in column); Table: ModuleComponents, Column: Component, Key(s): msvcp140_atomic_wait.dll_system_amd64.DFEFC2FE_EEE6_424C_841B_D4E66F0C84A3.Microsoft_VC142_CRT_X64.DFEFC2FE_EEE6_424C_841B_D4E66F0C84A3.0
light.exe : warning LGHT1076 : ICE03: String overflow (greater than length permitted in column); Table: ModuleComponents, Column: Component, Key(s): msvcp140_codecvt_ids.dll_system_amd64.DFEFC2FE_EEE6_424C_841B_D4E66F0C84A3.Microsoft_VC142_CRT_X64.DFEFC2FE_EEE6_424C_841B_D4E66F0C84A3.0
D:\Work\temp\tauri-test\tauri-app\src-tauri\target\debug\wix\x64\main.wxs(96) : warning LGHT1076 : ICE57: Component 'CMP_UninstallShortcut' has both per-user and per-machine data with an HKCU Registry KeyPath.
D:\Work\temp\tauri-test\tauri-app\src-tauri\target\debug\wix\x64\main.wxs(28) : warning LGHT1076 : ICE61: This product should remove only older versions of itself. The Maximum version is not less than the current product. (0.1.0 0.1.0)
    Finished 1 bundle at:
        D:\Work\temp\tauri-test\tauri-app\src-tauri\target\debug\bundle/msi/tauri-app_0.1.0_x64_en-US.msi
Done in 11.10s.

@lucasfernog
Copy link
Member

Thanks for the information @tomgao365 I'll see where this is freezing.

@tomgao365
Copy link
Author

😀
Thank you, I love tauri, it's amazing.

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

No branches or pull requests

2 participants