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

Closes immediately after launching on Windows #496

Closed
10 of 12 tasks
jaroslawjanas opened this issue Aug 31, 2024 · 18 comments · Fixed by #510
Closed
10 of 12 tasks

Closes immediately after launching on Windows #496

jaroslawjanas opened this issue Aug 31, 2024 · 18 comments · Fixed by #510
Labels
bug Something isn't working

Comments

@jaroslawjanas
Copy link

jaroslawjanas commented Aug 31, 2024

Version

1.13.0

Platform

Windows 10

Steps to reproduce

  1. Download v1.13.0 (I think mine self-updated from an older version; I did replace the whole folder with a manually downloaded release in an attempt to fix the issue)
  2. Double-click on the .exe
  3. Wait
  4. For a few seconds the border of the app appears
    image
  5. Then the app closes immediately without trace

Details

The app should start.
The app should not close.

Checklist

  • I have looked through existing issues to make sure that this bug has not been reported before
  • I have provided a descriptive title for this issue
  • I have made sure that this bug is reproducible on the latest version of the application
  • I have provided all the information needed to reproduce this bug as efficiently as possible
  • I have sponsored this project
  • I have not read any of the above and just checked all the boxes to submit the issue
  • I have sacrificed a rubber duck to the coding gods, but my prayers were unanswered
  • I have consulted with my cat, who also couldn’t solve the issue
  • I am 90% sure this bug is related to the alignment of the planets
  • I have questioned if this bug is just a feature in disguise
  • I have asked ChatGPT for help, and now we’re both confused
  • I have consistently maintained the belief that pineapple does not belong on pizza
@jaroslawjanas jaroslawjanas added the bug Something isn't working label Aug 31, 2024
@jaroslawjanas
Copy link
Author

Might be related to #455

@Tyrrrz
Copy link
Owner

Tyrrrz commented Aug 31, 2024

Did the previous release work?

@jaroslawjanas
Copy link
Author

Did the previous release work?

I am sure it worked as I used it right before it updated.
Not sure what version it was though. It's been a while but I doubt it was too old.

@yepMad
Copy link

yepMad commented Sep 1, 2024

Windows 11 here. 1.12.2 works. 1.13 doesn't.

@jaroslawjanas jaroslawjanas changed the title Closes immediately after launching on W10 Closes immediately after launching on Windows Sep 1, 2024
@15x3
Copy link

15x3 commented Sep 6, 2024

Same problem happens here, Win 11 with 1.13.0.
But solved when I start it with administrator privileges.

@Tyrrrz
Copy link
Owner

Tyrrrz commented Sep 6, 2024

I still can't reproduce the error, and I don't see anything in the commit history since last release that could potentially be responsible for this.

Are there any messages in the event log after the crash?

@jaroslawjanas
Copy link
Author

Are there any messages in the event log after the crash?

If I knew where the logs were, I would have checked them.
Actually, it was the first thing I tried to do.

But solved when I start it with administrator privileges.

I can confirm that this works.

@Tyrrrz
Copy link
Owner

Tyrrrz commented Sep 6, 2024

If I knew where the logs were, I would have checked them.
Actually, it was the first thing I tried to do.

Press the Win key, type "Event Viewer", then go to "Windows Logs" -> "Application", and look for anything related.

@jaroslawjanas
Copy link
Author

Okay so there are three events, one of which is an error.

Log Name:      Application
Source:        Windows Error Reporting
Date:          06/09/2024 22:33:49
Event ID:      1001
Task Category: None
Level:         Information
Keywords:      Classic
User:          N/A
Computer:      [Redacted]
Description:
Fault bucket 1211254555411740047, type 5
Event Name: BEX64
Response: Not available
Cab Id: 0

Problem signature:
P1: YoutubeDownloader.exe
P2: 1.13.0.0
P3: 66960000
P4: ntdll.dll
P5: 10.0.19041.4522
P6: 8a1bb6f3
P7: 000000000008cc5f
P8: c0000409
P9: 000000000000000a
P10: 

Attached files:
\\?\C:\ProgramData\Microsoft\Windows\WER\Temp\WER957E.tmp.WERInternalMetadata.xml

These files may be available here:
\\?\C:\ProgramData\Microsoft\Windows\WER\ReportArchive\AppCrash_YoutubeDownloade_d0292095a9fbdee3d4df18c1a2f81e524a3c4db_d274d6a5_734398c6-15f9-4f76-8ac3-c7c0e356fcba

Analysis symbol: 
Rechecking for solution: 0
Report Id: 83d77eef-892b-446d-850c-1cc33eb003ef
Report Status: 268435456
Hashed bucket: 3cfc5dcbf6f0e29700cf3d99c3e3f58f
Cab Guid: 0
Event Xml:
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
  <System>
    <Provider Name="Windows Error Reporting" />
    <EventID Qualifiers="0">1001</EventID>
    <Version>0</Version>
    <Level>4</Level>
    <Task>0</Task>
    <Opcode>0</Opcode>
    <Keywords>0x80000000000000</Keywords>
    <TimeCreated SystemTime="2024-09-06T20:33:49.6205495Z" />
    <EventRecordID>333283</EventRecordID>
    <Correlation />
    <Execution ProcessID="0" ThreadID="0" />
    <Channel>Application</Channel>
    <Computer>[Redacted]</Computer>
    <Security />
  </System>
  <EventData>
    <Data>1211254555411740047</Data>
    <Data>5</Data>
    <Data>BEX64</Data>
    <Data>Not available</Data>
    <Data>0</Data>
    <Data>YoutubeDownloader.exe</Data>
    <Data>1.13.0.0</Data>
    <Data>66960000</Data>
    <Data>ntdll.dll</Data>
    <Data>10.0.19041.4522</Data>
    <Data>8a1bb6f3</Data>
    <Data>000000000008cc5f</Data>
    <Data>c0000409</Data>
    <Data>000000000000000a</Data>
    <Data>
    </Data>
    <Data>
\\?\C:\ProgramData\Microsoft\Windows\WER\Temp\WER957E.tmp.WERInternalMetadata.xml</Data>
    <Data>\\?\C:\ProgramData\Microsoft\Windows\WER\ReportArchive\AppCrash_YoutubeDownloade_d0292095a9fbdee3d4df18c1a2f81e524a3c4db_d274d6a5_734398c6-15f9-4f76-8ac3-c7c0e356fcba</Data>
    <Data>
    </Data>
    <Data>0</Data>
    <Data>83d77eef-892b-446d-850c-1cc33eb003ef</Data>
    <Data>268435456</Data>
    <Data>3cfc5dcbf6f0e29700cf3d99c3e3f58f</Data>
    <Data>0</Data>
  </EventData>
</Event>
Log Name:      Application
Source:        Windows Error Reporting
Date:          06/09/2024 22:33:48
Event ID:      1001
Task Category: None
Level:         Information
Keywords:      Classic
User:          N/A
Computer:      [Redacted]
Description:
Fault bucket , type 0
Event Name: BEX64
Response: Not available
Cab Id: 0

Problem signature:
P1: YoutubeDownloader.exe
P2: 1.13.0.0
P3: 66960000
P4: ntdll.dll
P5: 10.0.19041.4522
P6: 8a1bb6f3
P7: 000000000008cc5f
P8: c0000409
P9: 000000000000000a
P10: 

Attached files:

These files may be available here:
\\?\C:\ProgramData\Microsoft\Windows\WER\ReportQueue\AppCrash_YoutubeDownloade_d0292095a9fbdee3d4df18c1a2f81e524a3c4db_d274d6a5_734398c6-15f9-4f76-8ac3-c7c0e356fcba

Analysis symbol: 
Rechecking for solution: 0
Report Id: 83d77eef-892b-446d-850c-1cc33eb003ef
Report Status: 4
Hashed bucket: 
Cab Guid: 0
Event Xml:
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
  <System>
    <Provider Name="Windows Error Reporting" />
    <EventID Qualifiers="0">1001</EventID>
    <Version>0</Version>
    <Level>4</Level>
    <Task>0</Task>
    <Opcode>0</Opcode>
    <Keywords>0x80000000000000</Keywords>
    <TimeCreated SystemTime="2024-09-06T20:33:48.3136258Z" />
    <EventRecordID>333282</EventRecordID>
    <Correlation />
    <Execution ProcessID="0" ThreadID="0" />
    <Channel>Application</Channel>
    <Computer>[Redacted]</Computer>
    <Security />
  </System>
  <EventData>
    <Data>
    </Data>
    <Data>0</Data>
    <Data>BEX64</Data>
    <Data>Not available</Data>
    <Data>0</Data>
    <Data>YoutubeDownloader.exe</Data>
    <Data>1.13.0.0</Data>
    <Data>66960000</Data>
    <Data>ntdll.dll</Data>
    <Data>10.0.19041.4522</Data>
    <Data>8a1bb6f3</Data>
    <Data>000000000008cc5f</Data>
    <Data>c0000409</Data>
    <Data>000000000000000a</Data>
    <Data>
    </Data>
    <Data>
    </Data>
    <Data>\\?\C:\ProgramData\Microsoft\Windows\WER\ReportQueue\AppCrash_YoutubeDownloade_d0292095a9fbdee3d4df18c1a2f81e524a3c4db_d274d6a5_734398c6-15f9-4f76-8ac3-c7c0e356fcba</Data>
    <Data>
    </Data>
    <Data>0</Data>
    <Data>83d77eef-892b-446d-850c-1cc33eb003ef</Data>
    <Data>4</Data>
    <Data>
    </Data>
    <Data>0</Data>
  </EventData>
</Event>
Log Name:      Application
Source:        Application Error
Date:          06/09/2024 22:33:47
Event ID:      1000
Task Category: (100)
Level:         Error
Keywords:      Classic
User:          N/A
Computer:      [Redacted]
Description:
Faulting application name: YoutubeDownloader.exe, version: 1.13.0.0, time stamp: 0x66960000
Faulting module name: ntdll.dll, version: 10.0.19041.4522, time stamp: 0x8a1bb6f3
Exception code: 0xc0000409
Fault offset: 0x000000000008cc5f
Faulting process ID: 0x72bc
Faulting application start time: 0x01db009c11e389d8
Faulting application path: G:\Programs\YoutubeDownloader\YoutubeDownloader.exe
Faulting module path: C:\Windows\SYSTEM32\ntdll.dll
Report ID: 83d77eef-892b-446d-850c-1cc33eb003ef
Faulting package full name: 
Faulting package-relative application ID: 
Event Xml:
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
  <System>
    <Provider Name="Application Error" />
    <EventID Qualifiers="0">1000</EventID>
    <Version>0</Version>
    <Level>2</Level>
    <Task>100</Task>
    <Opcode>0</Opcode>
    <Keywords>0x80000000000000</Keywords>
    <TimeCreated SystemTime="2024-09-06T20:33:47.5796265Z" />
    <EventRecordID>333281</EventRecordID>
    <Correlation />
    <Execution ProcessID="0" ThreadID="0" />
    <Channel>Application</Channel>
    <Computer>[Redacted]</Computer>
    <Security />
  </System>
  <EventData>
    <Data>YoutubeDownloader.exe</Data>
    <Data>1.13.0.0</Data>
    <Data>66960000</Data>
    <Data>ntdll.dll</Data>
    <Data>10.0.19041.4522</Data>
    <Data>8a1bb6f3</Data>
    <Data>c0000409</Data>
    <Data>000000000008cc5f</Data>
    <Data>72bc</Data>
    <Data>01db009c11e389d8</Data>
    <Data>G:\Programs\YoutubeDownloader\YoutubeDownloader.exe</Data>
    <Data>C:\Windows\SYSTEM32\ntdll.dll</Data>
    <Data>83d77eef-892b-446d-850c-1cc33eb003ef</Data>
    <Data>
    </Data>
    <Data>
    </Data>
  </EventData>
</Event>

@Tyrrrz
Copy link
Owner

Tyrrrz commented Sep 6, 2024

Thanks.

Faulting module name: ntdll.dll, version: 10.0.19041.4522, time stamp: 0x8a1bb6f3

Looks like the same issue as reported in #493.

I've checked the file details on my own nldll.dll and it has the following version: 10.0.22621.3733 instead. Although I doubt that it matters.

The 0xc0000409 exception code seems to indicate he system detected an overrun of a stack-based buffer in this application. This overrun could potentially allow a malicious user to gain control of this application, according to this.

My only guess so far is that a 3rd party package update caused this. I've created a test branch where I rolled back Avalonia and Avalonia-related packages to the version they were referenced at in version 1.12.2 of YoutubeDownloader. Please let me know if that has any effect.

https://github.com/Tyrrrz/YoutubeDownloader/actions/runs/10745256915

@jaroslawjanas
Copy link
Author

Nope, same issue.

Log Name:      Application
Source:        Windows Error Reporting
Date:          06/09/2024 23:52:40
Event ID:      1001
Task Category: None
Level:         Information
Keywords:      Classic
User:          N/A
Computer:      [Redacted]
Description:
Fault bucket 1433170325555590815, type 5
Event Name: BEX64
Response: Not available
Cab Id: 0

Problem signature:
P1: YoutubeDownloader.exe
P2: 999.9.9.0
P3: 66960000
P4: ntdll.dll
P5: 10.0.19041.4522
P6: 8a1bb6f3
P7: 000000000008cc5f
P8: c0000409
P9: 000000000000000a
P10: 

Attached files:
\\?\C:\ProgramData\Microsoft\Windows\WER\Temp\WERC347.tmp.WERInternalMetadata.xml

These files may be available here:
\\?\C:\ProgramData\Microsoft\Windows\WER\ReportArchive\AppCrash_YoutubeDownloade_6854b539c9db64528d1c5311f637c2517db_daa7cbb5_6557de66-cffe-45dd-95fe-f072ceda5a74

Analysis symbol: 
Rechecking for solution: 0
Report Id: c0affed1-8400-4c39-b461-41ad97dea0aa
Report Status: 268435456
Hashed bucket: 2658abb4fdf1568a33e3a4d15d5f369f
Cab Guid: 0
Event Xml:
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
  <System>
    <Provider Name="Windows Error Reporting" />
    <EventID Qualifiers="0">1001</EventID>
    <Version>0</Version>
    <Level>4</Level>
    <Task>0</Task>
    <Opcode>0</Opcode>
    <Keywords>0x80000000000000</Keywords>
    <TimeCreated SystemTime="2024-09-06T21:52:40.2206471Z" />
    <EventRecordID>333290</EventRecordID>
    <Correlation />
    <Execution ProcessID="0" ThreadID="0" />
    <Channel>Application</Channel>
    <Computer>[Redacted]</Computer>
    <Security />
  </System>
  <EventData>
    <Data>1433170325555590815</Data>
    <Data>5</Data>
    <Data>BEX64</Data>
    <Data>Not available</Data>
    <Data>0</Data>
    <Data>YoutubeDownloader.exe</Data>
    <Data>999.9.9.0</Data>
    <Data>66960000</Data>
    <Data>ntdll.dll</Data>
    <Data>10.0.19041.4522</Data>
    <Data>8a1bb6f3</Data>
    <Data>000000000008cc5f</Data>
    <Data>c0000409</Data>
    <Data>000000000000000a</Data>
    <Data>
    </Data>
    <Data>
\\?\C:\ProgramData\Microsoft\Windows\WER\Temp\WERC347.tmp.WERInternalMetadata.xml</Data>
    <Data>\\?\C:\ProgramData\Microsoft\Windows\WER\ReportArchive\AppCrash_YoutubeDownloade_6854b539c9db64528d1c5311f637c2517db_daa7cbb5_6557de66-cffe-45dd-95fe-f072ceda5a74</Data>
    <Data>
    </Data>
    <Data>0</Data>
    <Data>c0affed1-8400-4c39-b461-41ad97dea0aa</Data>
    <Data>268435456</Data>
    <Data>2658abb4fdf1568a33e3a4d15d5f369f</Data>
    <Data>0</Data>
  </EventData>
</Event>
Log Name:      Application
Source:        Windows Error Reporting
Date:          06/09/2024 23:52:38
Event ID:      1001
Task Category: None
Level:         Information
Keywords:      Classic
User:          N/A
Computer:      [Redacted]
Description:
Fault bucket , type 0
Event Name: BEX64
Response: Not available
Cab Id: 0

Problem signature:
P1: YoutubeDownloader.exe
P2: 999.9.9.0
P3: 66960000
P4: ntdll.dll
P5: 10.0.19041.4522
P6: 8a1bb6f3
P7: 000000000008cc5f
P8: c0000409
P9: 000000000000000a
P10: 

Attached files:

These files may be available here:
\\?\C:\ProgramData\Microsoft\Windows\WER\ReportQueue\AppCrash_YoutubeDownloade_6854b539c9db64528d1c5311f637c2517db_daa7cbb5_6557de66-cffe-45dd-95fe-f072ceda5a74

Analysis symbol: 
Rechecking for solution: 0
Report Id: c0affed1-8400-4c39-b461-41ad97dea0aa
Report Status: 4
Hashed bucket: 
Cab Guid: 0
Event Xml:
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
  <System>
    <Provider Name="Windows Error Reporting" />
    <EventID Qualifiers="0">1001</EventID>
    <Version>0</Version>
    <Level>4</Level>
    <Task>0</Task>
    <Opcode>0</Opcode>
    <Keywords>0x80000000000000</Keywords>
    <TimeCreated SystemTime="2024-09-06T21:52:38.6319023Z" />
    <EventRecordID>333289</EventRecordID>
    <Correlation />
    <Execution ProcessID="0" ThreadID="0" />
    <Channel>Application</Channel>
    <Computer>[Redacted]</Computer>
    <Security />
  </System>
  <EventData>
    <Data>
    </Data>
    <Data>0</Data>
    <Data>BEX64</Data>
    <Data>Not available</Data>
    <Data>0</Data>
    <Data>YoutubeDownloader.exe</Data>
    <Data>999.9.9.0</Data>
    <Data>66960000</Data>
    <Data>ntdll.dll</Data>
    <Data>10.0.19041.4522</Data>
    <Data>8a1bb6f3</Data>
    <Data>000000000008cc5f</Data>
    <Data>c0000409</Data>
    <Data>000000000000000a</Data>
    <Data>
    </Data>
    <Data>
    </Data>
    <Data>\\?\C:\ProgramData\Microsoft\Windows\WER\ReportQueue\AppCrash_YoutubeDownloade_6854b539c9db64528d1c5311f637c2517db_daa7cbb5_6557de66-cffe-45dd-95fe-f072ceda5a74</Data>
    <Data>
    </Data>
    <Data>0</Data>
    <Data>c0affed1-8400-4c39-b461-41ad97dea0aa</Data>
    <Data>4</Data>
    <Data>
    </Data>
    <Data>0</Data>
  </EventData>
</Event>
Log Name:      Application
Source:        Application Error
Date:          06/09/2024 23:52:37
Event ID:      1000
Task Category: (100)
Level:         Error
Keywords:      Classic
User:          N/A
Computer:      [Redacted]
Description:
Faulting application name: YoutubeDownloader.exe, version: 999.9.9.0, time stamp: 0x66960000
Faulting module name: ntdll.dll, version: 10.0.19041.4522, time stamp: 0x8a1bb6f3
Exception code: 0xc0000409
Fault offset: 0x000000000008cc5f
Faulting process ID: 0x1710
Faulting application start time: 0x01db00a7119eea76
Faulting application path: G:\Programs\YoutubeDownloader.win-x64-test\YoutubeDownloader.exe
Faulting module path: C:\Windows\SYSTEM32\ntdll.dll
Report ID: c0affed1-8400-4c39-b461-41ad97dea0aa
Faulting package full name: 
Faulting package-relative application ID: 
Event Xml:
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
  <System>
    <Provider Name="Application Error" />
    <EventID Qualifiers="0">1000</EventID>
    <Version>0</Version>
    <Level>2</Level>
    <Task>100</Task>
    <Opcode>0</Opcode>
    <Keywords>0x80000000000000</Keywords>
    <TimeCreated SystemTime="2024-09-06T21:52:37.7854069Z" />
    <EventRecordID>333288</EventRecordID>
    <Correlation />
    <Execution ProcessID="0" ThreadID="0" />
    <Channel>Application</Channel>
    <Computer>[Redacted]</Computer>
    <Security />
  </System>
  <EventData>
    <Data>YoutubeDownloader.exe</Data>
    <Data>999.9.9.0</Data>
    <Data>66960000</Data>
    <Data>ntdll.dll</Data>
    <Data>10.0.19041.4522</Data>
    <Data>8a1bb6f3</Data>
    <Data>c0000409</Data>
    <Data>000000000008cc5f</Data>
    <Data>1710</Data>
    <Data>01db00a7119eea76</Data>
    <Data>G:\Programs\YoutubeDownloader.win-x64-test\YoutubeDownloader.exe</Data>
    <Data>C:\Windows\SYSTEM32\ntdll.dll</Data>
    <Data>c0affed1-8400-4c39-b461-41ad97dea0aa</Data>
    <Data>
    </Data>
    <Data>
    </Data>
  </EventData>
</Event>

@Tyrrrz
Copy link
Owner

Tyrrrz commented Sep 8, 2024

@TrumanXia
Copy link

“start as administer” works for me

@LukaLake
Copy link

“start as administer” works for me

Also works for my condition in windows 11.

@Tyrrrz
Copy link
Owner

Tyrrrz commented Sep 18, 2024

Does this build work for anyone without admin privs?

https://github.com/Tyrrrz/YoutubeDownloader/actions/runs/10761260851

@jaroslawjanas
Copy link
Author

Does this build work for anyone without admin privs?

https://github.com/Tyrrrz/YoutubeDownloader/actions/runs/10761260851

Works for me.

@JPBF95
Copy link

JPBF95 commented Sep 19, 2024

Does this build work for anyone without admin privs?

https://github.com/Tyrrrz/YoutubeDownloader/actions/runs/10761260851

It works, but now i have the error Video watch page is broken. Please try again in a few minutes

@jaroslawjanas
Copy link
Author

It works, but now i have the error Video watch page is broken. Please try again in a few minutes

My bad, I didn't test it that far.
The same is happening for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

7 participants