[go: up one dir, main page]

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

Hello world program exit with non-zero code #625

Open
jinreal opened this issue Oct 4, 2022 · 6 comments
Open

Hello world program exit with non-zero code #625

jinreal opened this issue Oct 4, 2022 · 6 comments

Comments

@jinreal
Copy link
jinreal commented Oct 4, 2022

I'm compiling a hello world app using DlangUI following the official wiki using vscode, I have edited the app.d file and run dub run, it shows "Program exited with code -1073741701".

I have tried the following but have no luck:

  1. dub upgrade --force-remove
  2. dub build --force
  3. remove dub.selections.json

Environment:

dmd: v2.100.2-dirty
dub: 1.29.2
os: Windows 10 Professional 21H1 (64bit)

Output of dub run:

bindbc-loader 1.0.1: target for configuration "noBC" is up to date.
bindbc-opengl 1.0.2: target for configuration "dynamic" is up to date.
derelict-util 3.0.0-beta.2: target for configuration "library" is up to date.
derelict-ft 2.0.0-beta.5: target for configuration "library" is up to date.
derelict-sdl2 3.0.0-beta.8: target for configuration "derelict-sdl2-dynamic" is up to date.
inilike 1.2.1: target for configuration "library" is up to date.
isfreedesktop 0.1.1: target for configuration "library" is up to date.
xdgpaths 0.2.5: target for configuration "library" is up to date.
icontheme 1.2.3: target for configuration "library" is up to date.
dlangui 0.9.187: target for configuration "default" is up to date.
helloworld ~master: building configuration "application"...
C:\Users\JinReal\AppData\Local\dub\packages\dlangui-0.9.187\dlangui\src\dlangui\graphics\resources.d(104,8): Deprecation: module `std.xml` is deprecated - Will be removed from Phobos in 2.101.0. If you still need it, go to https://github.com/DigitalMars/undeaD
C:\Users\JinReal\AppData\Local\dub\packages\dlangui-0.9.187\dlangui\src\dlangui\widgets\styles.d(28,16): Deprecation: module `std.xml` is deprecated - Will be removed from Phobos in 2.101.0. If you still need it, go to https://github.com/DigitalMars/undeaD
C:\Users\JinReal\AppData\Local\dub\packages\dlangui-0.9.187\dlangui\3rdparty\dimage\png.d(585,1): Deprecation: Usage of the `body` keyword is deprecated. Use `do` instead.
Linking...
To force a rebuild of up-to-date targets, run again with --force.
Copying files for dlangui...
Running helloworld.exe
Program exited with code -1073741701
@GrimMaple
Copy link
Collaborator

Hello! Can you please post what does dub --verbose output?

@GrimMaple
Copy link
Collaborator

Actually, I'm pretty sure that it's the win_app.def that causes problems. I remember removing that previously, but I think it got reverted. Can you please test what happens, if you remove "sourceFiles-windows-x86-dmd": ["$PACKAGE_DIR/src/win_app.def"], from dlangui's dub.json? it should fix everything, possibly

@jinreal
Copy link
Author
jinreal commented Oct 5, 2022

Actually, I'm pretty sure that it's the win_app.def that causes problems. I remember removing that previously, but I think it got reverted. Can you please test what happens, if you remove "sourceFiles-windows-x86-dmd": ["$PACKAGE_DIR/src/win_app.def"], from dlangui's dub.json? it should fix everything, possibly

Sorry I forgot to post the full output of dub run, I've updated the OP.

(I came here after creating a post in stackoverflow)

@jinreal
Copy link
Author
jinreal commented Oct 5, 2022

lol, it works now. I didn't change anything.

@GrimMaple
Copy link
Collaborator

I would still like to see the output for dub --verbose to understand what is being compiled ^^

@jinreal
Copy link
Author
jinreal commented Oct 6, 2022

Output of dub run --verbose:
(it works now...)

Using dub registry url 'https://code.dlang.org/'
Refreshing local packages (refresh existing: true)...
Looking for local package map at C:\ProgramData\dub\packages\local-packages.json
Looking for local package map at C:\Users\JinReal\AppData\Local\dub\packages\local-packages.json
Looking for local package map at E:\code\prototypes\lang\d\ui2\helloworld\.dub\packages\local-packages.json
Note: Failed to determine version of package helloworld at .. Assuming ~master.
Refreshing local packages (refresh existing: false)...
Looking for local package map at C:\ProgramData\dub\packages\local-packages.json
Looking for local package map at C:\Users\JinReal\AppData\Local\dub\packages\local-packages.json
Looking for local package map at E:\code\prototypes\lang\d\ui2\helloworld\.dub\packages\local-packages.json
  Found dependency dlangui 0.9.187
    Found dependency bindbc-opengl 1.0.2
      Found dependency bindbc-loader 1.0.1
    Found dependency derelict-ft 2.0.0-beta.5
      Found dependency derelict-util 3.0.0-beta.2
    Found dependency icontheme 1.2.3
      Found dependency inilike 1.2.1
      Found dependency xdgpaths 0.2.5
        Found dependency isfreedesktop 0.1.1
    Found dependency derelict-sdl2 3.0.0-beta.8
    Found dependency x11 1.0.21
    Found dependency dsfml 2.1.1
      Found dependency dsfml:graphics 2.1.1
        Found dependency dsfml:system 2.1.1
        Found dependency dsfml:window 2.1.1
      Found dependency dsfml:audio 2.1.1
      Found dependency dsfml:network 2.1.1
Refreshing local packages (refresh existing: false)...
Looking for local package map at C:\ProgramData\dub\packages\local-packages.json
Looking for local package map at C:\Users\JinReal\AppData\Local\dub\packages\local-packages.json
Looking for local package map at E:\code\prototypes\lang\d\ui2\helloworld\.dub\packages\local-packages.json
  Found dependency dlangui 0.9.187
    Found dependency bindbc-opengl 1.0.2
      Found dependency bindbc-loader 1.0.1
    Found dependency derelict-ft 2.0.0-beta.5
      Found dependency derelict-util 3.0.0-beta.2
    Found dependency icontheme 1.2.3
      Found dependency inilike 1.2.1
      Found dependency xdgpaths 0.2.5
        Found dependency isfreedesktop 0.1.1
    Found dependency derelict-sdl2 3.0.0-beta.8
    Found dependency x11 1.0.21
    Found dependency dsfml 2.1.1
      Found dependency dsfml:graphics 2.1.1
        Found dependency dsfml:system 2.1.1
        Found dependency dsfml:window 2.1.1
      Found dependency dsfml:audio 2.1.1
      Found dependency dsfml:network 2.1.1
Generating using build
Configuring dependent helloworld, deps:"dlangui"
  Configuring dependent dlangui, deps:"bindbc-opengl", "derelict-ft", "derelict-sdl2", "icontheme"
    Configuring dependent bindbc-opengl, deps:"bindbc-loader"
      Configuring dependent bindbc-loader, deps:
    Configuring dependent derelict-ft, deps:"derelict-util"
      Configuring dependent derelict-util, deps:
    Configuring dependent derelict-sdl2, deps:"derelict-util"
    Configuring dependent icontheme, deps:"inilike", "xdgpaths"
      Configuring dependent inilike, deps:
      Configuring dependent xdgpaths, deps:"isfreedesktop"
        Configuring dependent isfreedesktop, deps:
Performing "debug" build using D:\env\dmd2\windows\bin\dmd.exe for x86_64.
bindbc-loader 1.0.1: target for configuration "noBC" is up to date.
Using existing build in C:\Users\JinReal\AppData\Local\dub\packages\bindbc-loader-1.0.1\bindbc-loader\.dub\build\noBC-debug-windows-x86_64-dmd_v2.100.2-dirty-03102FCD65BD5670B3E15316C60D0AD4\.
Copying target from C:\Users\JinReal\AppData\Local\dub\packages\bindbc-loader-1.0.1\bindbc-loader\.dub\build\noBC-debug-windows-x86_64-dmd_v2.100.2-dirty-03102FCD65BD5670B3E15316C60D0AD4\BindBC_Loader.lib to C:\Users\JinReal\AppData\Local\dub\packages\bindbc-loader-1.0.1\bindbc-loader\lib
bindbc-opengl 1.0.2: target for configuration "dynamic" is up to date.
Using existing build in C:\Users\JinReal\AppData\Local\dub\packages\bindbc-opengl-1.0.2\bindbc-opengl\.dub\build\dynamic-debug-windows-x86_64-dmd_v2.100.2-dirty-2081EAE9F749D124D9D5EABA15F2EB46\.       
Copying target from C:\Users\JinReal\AppData\Local\dub\packages\bindbc-opengl-1.0.2\bindbc-opengl\.dub\build\dynamic-debug-windows-x86_64-dmd_v2.100.2-dirty-2081EAE9F749D124D9D5EABA15F2EB46\BindBC_OpenGL.lib to C:\Users\JinReal\AppData\Local\dub\packages\bindbc-opengl-1.0.2\bindbc-opengl\lib
derelict-util 3.0.0-beta.2: target for configuration "library" is up to date.
Using existing build in C:\Users\JinReal\AppData\Local\dub\packages\derelict-util-3.0.0-beta.2\derelict-util\.dub\build\library-debug-windows-x86_64-dmd_v2.100.2-dirty-C8D2BD2C09AC45CA441761EF8DA05CAD\.Copying target from C:\Users\JinReal\AppData\Local\dub\packages\derelict-util-3.0.0-beta.2\derelict-util\.dub\build\library-debug-windows-x86_64-dmd_v2.100.2-dirty-C8D2BD2C09AC45CA441761EF8DA05CAD\DerelictUtil.lib to C:\Users\JinReal\AppData\Local\dub\packages\derelict-util-3.0.0-beta.2\derelict-util\lib
derelict-ft 2.0.0-beta.5: target for configuration "library" is up to date.
Using existing build in C:\Users\JinReal\AppData\Local\dub\packages\derelict-ft-2.0.0-beta.5\derelict-ft\.dub\build\library-debug-windows-x86_64-dmd_v2.100.2-dirty-ABD6351AEFCC0B07256C04EE69411242\.    
Copying target from C:\Users\JinReal\AppData\Local\dub\packages\derelict-ft-2.0.0-beta.5\derelict-ft\.dub\build\library-debug-windows-x86_64-dmd_v2.100.2-dirty-ABD6351AEFCC0B07256C04EE69411242\DerelictFT.lib to C:\Users\JinReal\AppData\Local\dub\packages\derelict-ft-2.0.0-beta.5\derelict-ft\lib
derelict-sdl2 3.0.0-beta.8: target for configuration "derelict-sdl2-dynamic" is up to date.
Using existing build in C:\Users\JinReal\AppData\Local\dub\packages\derelict-sdl2-3.0.0-beta.8\derelict-sdl2\.dub\build\derelict-sdl2-dynamic-debug-windows-x86_64-dmd_v2.100.2-dirty-6F5133A89BCDDDDE65E61EC8A8AC20A3\.
Copying target from C:\Users\JinReal\AppData\Local\dub\packages\derelict-sdl2-3.0.0-beta.8\derelict-sdl2\.dub\build\derelict-sdl2-dynamic-debug-windows-x86_64-dmd_v2.100.2-dirty-6F5133A89BCDDDDE65E61EC8A8AC20A3\DerelictSDL2.lib to C:\Users\JinReal\AppData\Local\dub\packages\derelict-sdl2-3.0.0-beta.8\derelict-sdl2\lib
inilike 1.2.1: target for configuration "library" is up to date.
Using existing build in C:\Users\JinReal\AppData\Local\dub\packages\inilike-1.2.1\inilike\.dub\build\library-debug-windows-x86_64-dmd_v2.100.2-dirty-63A7C976E9F2B7C5D7F2BEE9B1CA8E61\.
Copying target from C:\Users\JinReal\AppData\Local\dub\packages\inilike-1.2.1\inilike\.dub\build\library-debug-windows-x86_64-dmd_v2.100.2-dirty-63A7C976E9F2B7C5D7F2BEE9B1CA8E61\inilike.lib to C:\Users\JinReal\AppData\Local\dub\packages\inilike-1.2.1\inilike\lib
isfreedesktop 0.1.1: target for configuration "library" is up to date.
Using existing build in C:\Users\JinReal\AppData\Local\dub\packages\isfreedesktop-0.1.1\isfreedesktop\.dub\build\library-debug-windows-x86_64-dmd_v2.100.2-dirty-87DA7F3B5D81EFD00815AFB108936D05\.       
Copying target from C:\Users\JinReal\AppData\Local\dub\packages\isfreedesktop-0.1.1\isfreedesktop\.dub\build\library-debug-windows-x86_64-dmd_v2.100.2-dirty-87DA7F3B5D81EFD00815AFB108936D05\isfreedesktop.lib to C:\Users\JinReal\AppData\Local\dub\packages\isfreedesktop-0.1.1\isfreedesktop\lib
xdgpaths 0.2.5: target for configuration "library" is up to date.
Using existing build in C:\Users\JinReal\AppData\Local\dub\packages\xdgpaths-0.2.5\xdgpaths\.dub\build\library-debug-windows-x86_64-dmd_v2.100.2-dirty-A1EA7C6FF17E36D8C3F5437FC4389992\.
Copying target from C:\Users\JinReal\AppData\Local\dub\packages\xdgpaths-0.2.5\xdgpaths\.dub\build\library-debug-windows-x86_64-dmd_v2.100.2-dirty-A1EA7C6FF17E36D8C3F5437FC4389992\xdgpaths.lib to C:\Users\JinReal\AppData\Local\dub\packages\xdgpaths-0.2.5\xdgpaths\lib
icontheme 1.2.3: target for configuration "library" is up to date.
Using existing build in C:\Users\JinReal\AppData\Local\dub\packages\icontheme-1.2.3\icontheme\.dub\build\library-debug-windows-x86_64-dmd_v2.100.2-dirty-CEDB5407300C2B8DF451F13F0EA4C1AD\.
Copying target from C:\Users\JinReal\AppData\Local\dub\packages\icontheme-1.2.3\icontheme\.dub\build\library-debug-windows-x86_64-dmd_v2.100.2-dirty-CEDB5407300C2B8DF451F13F0EA4C1AD\icontheme.lib to C:\Users\JinReal\AppData\Local\dub\packages\icontheme-1.2.3\icontheme\lib
dlangui 0.9.187: target for configuration "default" is up to date.
Using existing build in C:\Users\JinReal\AppData\Local\dub\packages\dlangui-0.9.187\dlangui\.dub\build\default-debug-windows-x86_64-dmd_v2.100.2-dirty-AFC14D4BC1FD8D1C8F4E888C0F16702D\.
Copying target from C:\Users\JinReal\AppData\Local\dub\packages\dlangui-0.9.187\dlangui\.dub\build\default-debug-windows-x86_64-dmd_v2.100.2-dirty-AFC14D4BC1FD8D1C8F4E888C0F16702D\dlangui.lib to C:\Users\JinReal\AppData\Local\dub\packages\dlangui-0.9.187\dlangui\lib
helloworld ~master: target for configuration "application" is up to date.
Using existing build in E:\code\prototypes\lang\d\ui2\helloworld\.dub\build\application-debug-windows-x86_64-dmd_v2.100.2-dirty-C151CEF1904ED1099AD7642E11770053\.
Copying target from E:\code\prototypes\lang\d\ui2\helloworld\.dub\build\application-debug-windows-x86_64-dmd_v2.100.2-dirty-C151CEF1904ED1099AD7642E11770053\helloworld.exe to E:\code\prototypes\lang\d\ui2\helloworld        
Copying target from E:\code\prototypes\lang\d\ui2\helloworld\.dub\build\application-debug-windows-x86_64-dmd_v2.100.2-dirty-C151CEF1904ED1099AD7642E11770053\helloworld.pdb to E:\code\prototypes\lang\d\ui2\helloworld        
To force a rebuild of up-to-date targets, run again with --force.
Copying files for dlangui...
  C:\Users\JinReal\AppData\Local\dub\packages\dlangui-0.9.187\dlangui\libs\windows\x86_64\libfreetype-6.dll to E:\code\prototypes\lang\d\ui2\helloworld\libfreetype-6.dll
Running helloworld.exe

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

2 participants