YSCEDC / YSCE

YSFlight Community Edition
BSD 3-Clause "New" or "Revised" License
13 stars 4 forks source link

[BUG] Crash on startup (Segmentation fault) #72

Open app4soft opened 10 months ago

app4soft commented 10 months ago

YSCE Build Number GitHub Actions artifact: https://github.com/YSCEDC/YSCE/suites/15453402534/artifacts/882539445

System Specifications

Describe the bug On the first launch ("clear install") app shows welcome screen, but after closing welcome screen message it crashes and also crashes one all next launches.

To Reproduce Steps to reproduce the behavior:

  1. Install (unpack) binary provided by GitHub Actions artifact;
  2. Launch ysflight64_gl1;
  3. Click on Close on welcome screen message;
  4. Crash;
  5. Try to relaunch;
  6. Crash without even showing welcome screen;
  7. See crash log:
Crash Log: ```Shell $ ./ysflight64_gl1 YSFLIGHT VERSION 20181124 YFSVERSION 20180930 NETVERSION 20150425 Changed to /home/user/Documents/YSFLIGHT.COM User YSFLIGHT Dir=/home/user/Documents/YSFLIGHT.COM/YSFlight Community Edition YSFLIGHT Config Dir=/home/user/Documents/YSFLIGHT.COM/YSFlight Community Edition/config Opened display. Acquired GLX extension. Chose visual. Created colormap. Created OpenGL context. Created Window. 32 32 32 32 Zzz... Slept one second. Loading Sound Plug-In. (./plugin/libsndYsflight64.so) Sound Plug-In Loaded. 1 channels, 8001 Hz, 2048 periods, 2097152 frames buffer. Loading sound/engine0.wav File Size=32058 Header Size=18 wFormatTag=1 nChannels=1 nSamplesPerSec=8000 nAvgBytesPerSec=8000 nBlockAlign=1 wBitsPerSample=8 cbSize=0 Skipping fact Data Size=32000 (0x7d00) Loading sound/engine1.wav File Size=32058 Header Size=18 wFormatTag=1 nChannels=1 nSamplesPerSec=8000 nAvgBytesPerSec=8000 nBlockAlign=1 wBitsPerSample=8 cbSize=0 Skipping fact Data Size=32000 (0x7d00) Loading sound/engine2.wav File Size=16058 Header Size=18 wFormatTag=1 nChannels=1 nSamplesPerSec=8000 nAvgBytesPerSec=8000 nBlockAlign=1 wBitsPerSample=8 cbSize=0 Skipping fact Data Size=16000 (0x3e80) Loading sound/engine3.wav File Size=16058 Header Size=18 wFormatTag=1 nChannels=1 nSamplesPerSec=8000 nAvgBytesPerSec=8000 nBlockAlign=1 wBitsPerSample=8 cbSize=0 Skipping fact Data Size=16000 (0x3e80) Loading sound/engine4.wav File Size=16058 Header Size=18 wFormatTag=1 nChannels=1 nSamplesPerSec=8000 nAvgBytesPerSec=8000 nBlockAlign=1 wBitsPerSample=8 cbSize=0 Skipping fact Data Size=16000 (0x3e80) Loading sound/engine5.wav File Size=8058 Header Size=18 wFormatTag=1 nChannels=1 nSamplesPerSec=8000 nAvgBytesPerSec=8000 nBlockAlign=1 wBitsPerSample=8 cbSize=0 Skipping fact Data Size=8000 (0x1f40) Loading sound/engine6.wav File Size=8058 Header Size=18 wFormatTag=1 nChannels=1 nSamplesPerSec=8000 nAvgBytesPerSec=8000 nBlockAlign=1 wBitsPerSample=8 cbSize=0 Skipping fact Data Size=8000 (0x1f40) Loading sound/engine7.wav File Size=8058 Header Size=18 wFormatTag=1 nChannels=1 nSamplesPerSec=8000 nAvgBytesPerSec=8000 nBlockAlign=1 wBitsPerSample=8 cbSize=0 Skipping fact Data Size=8000 (0x1f40) Loading sound/engine8.wav File Size=4058 Header Size=18 wFormatTag=1 nChannels=1 nSamplesPerSec=8000 nAvgBytesPerSec=8000 nBlockAlign=1 wBitsPerSample=8 cbSize=0 Skipping fact Data Size=4000 (0xfa0) Loading sound/engine9.wav File Size=4058 Header Size=18 wFormatTag=1 nChannels=1 nSamplesPerSec=8000 nAvgBytesPerSec=8000 nBlockAlign=1 wBitsPerSample=8 cbSize=0 Skipping fact Data Size=4000 (0xfa0) Loading sound/prop0.wav File Size=89862 Header Size=16 wFormatTag=1 nChannels=1 nSamplesPerSec=22050 nAvgBytesPerSec=44100 nBlockAlign=2 wBitsPerSample=16 cbSize=0 Data Size=89818 (0x15eda) Loading sound/prop1.wav File Size=69904 Header Size=16 wFormatTag=1 nChannels=1 nSamplesPerSec=22050 nAvgBytesPerSec=44100 nBlockAlign=2 wBitsPerSample=16 cbSize=0 Data Size=69860 (0x110e4) Loading sound/prop2.wav File Size=59590 Header Size=16 wFormatTag=1 nChannels=1 nSamplesPerSec=22050 nAvgBytesPerSec=44100 nBlockAlign=2 wBitsPerSample=16 cbSize=0 Data Size=59546 (0xe89a) Loading sound/prop3.wav File Size=46540 Header Size=16 wFormatTag=1 nChannels=1 nSamplesPerSec=22050 nAvgBytesPerSec=44100 nBlockAlign=2 wBitsPerSample=16 cbSize=0 Data Size=46496 (0xb5a0) Loading sound/prop4.wav File Size=66064 Header Size=16 wFormatTag=1 nChannels=1 nSamplesPerSec=22050 nAvgBytesPerSec=44100 nBlockAlign=2 wBitsPerSample=16 cbSize=0 Data Size=66020 (0x101e4) Loading sound/prop5.wav File Size=39266 Header Size=16 wFormatTag=1 nChannels=1 nSamplesPerSec=22050 nAvgBytesPerSec=44100 nBlockAlign=2 wBitsPerSample=16 cbSize=0 Data Size=39222 (0x9936) Loading sound/prop6.wav File Size=45790 Header Size=16 wFormatTag=1 nChannels=1 nSamplesPerSec=22050 nAvgBytesPerSec=44100 nBlockAlign=2 wBitsPerSample=16 cbSize=0 Data Size=45746 (0xb2b2) Loading sound/prop7.wav File Size=43232 Header Size=16 wFormatTag=1 nChannels=1 nSamplesPerSec=22050 nAvgBytesPerSec=44100 nBlockAlign=2 wBitsPerSample=16 cbSize=0 Data Size=43188 (0xa8b4) Loading sound/prop8.wav File Size=44348 Header Size=16 wFormatTag=1 nChannels=1 nSamplesPerSec=22050 nAvgBytesPerSec=44100 nBlockAlign=2 wBitsPerSample=16 cbSize=0 Data Size=44304 (0xad10) Loading sound/prop9.wav File Size=44476 Header Size=16 wFormatTag=1 nChannels=1 nSamplesPerSec=22050 nAvgBytesPerSec=44100 nBlockAlign=2 wBitsPerSample=16 cbSize=0 Data Size=44432 (0xad90) Loading sound/burner.wav File Size=3776 Header Size=18 wFormatTag=1 nChannels=1 nSamplesPerSec=8000 nAvgBytesPerSec=8000 nBlockAlign=1 wBitsPerSample=8 cbSize=0 Skipping fact Data Size=3717 (0xe85) Loading sound/gun.wav File Size=616 Header Size=18 wFormatTag=1 nChannels=1 nSamplesPerSec=8000 nAvgBytesPerSec=8000 nBlockAlign=1 wBitsPerSample=8 cbSize=0 Skipping fact Data Size=557 (0x22d) Loading sound/stallhorn.wav File Size=13416 Header Size=16 wFormatTag=1 nChannels=1 nSamplesPerSec=16000 nAvgBytesPerSec=32000 nBlockAlign=2 wBitsPerSample=16 cbSize=0 Data Size=13364 (0x3434) Loading sound/warning.wav File Size=6856 Header Size=16 wFormatTag=1 nChannels=1 nSamplesPerSec=8000 nAvgBytesPerSec=8000 nBlockAlign=1 wBitsPerSample=8 cbSize=0 Skipping fact Data Size=6800 (0x1a90) Loading sound/gearhorn.wav File Size=14772 Header Size=16 wFormatTag=1 nChannels=1 nSamplesPerSec=16000 nAvgBytesPerSec=32000 nBlockAlign=2 wBitsPerSample=16 cbSize=0 Data Size=14720 (0x3980) Loading sound/damage.wav File Size=2690 Header Size=18 wFormatTag=1 nChannels=1 nSamplesPerSec=8000 nAvgBytesPerSec=8000 nBlockAlign=1 wBitsPerSample=8 cbSize=0 Skipping fact Data Size=2631 (0xa47) Loading sound/missile.wav File Size=15056 Header Size=16 wFormatTag=1 nChannels=1 nSamplesPerSec=8000 nAvgBytesPerSec=8000 nBlockAlign=1 wBitsPerSample=8 cbSize=0 Skipping fact Data Size=15000 (0x3a98) Loading sound/bang.wav File Size=1742 Header Size=18 wFormatTag=1 nChannels=1 nSamplesPerSec=8000 nAvgBytesPerSec=8000 nBlockAlign=1 wBitsPerSample=8 cbSize=0 Skipping fact Data Size=1683 (0x693) Loading sound/blast.wav File Size=7758 Header Size=18 wFormatTag=1 nChannels=1 nSamplesPerSec=8000 nAvgBytesPerSec=8000 nBlockAlign=1 wBitsPerSample=8 cbSize=0 Skipping fact Data Size=7700 (0x1e14) Loading sound/touchdwn.wav File Size=3258 Header Size=18 wFormatTag=1 nChannels=1 nSamplesPerSec=8000 nAvgBytesPerSec=8000 nBlockAlign=1 wBitsPerSample=8 cbSize=0 Skipping fact Data Size=3200 (0xc80) Loading sound/hit.wav File Size=1868 Header Size=18 wFormatTag=1 nChannels=1 nSamplesPerSec=8000 nAvgBytesPerSec=8000 nBlockAlign=1 wBitsPerSample=8 cbSize=0 Skipping fact Data Size=1809 (0x711) Loading sound/blast2.wav File Size=3420 Header Size=18 wFormatTag=1 nChannels=1 nSamplesPerSec=8000 nAvgBytesPerSec=8000 nBlockAlign=1 wBitsPerSample=8 cbSize=0 Skipping fact Data Size=3361 (0xd21) Loading sound/retractldg.wav File Size=8080 Header Size=18 wFormatTag=1 nChannels=1 nSamplesPerSec=8000 nAvgBytesPerSec=8000 nBlockAlign=1 wBitsPerSample=8 cbSize=0 Skipping fact Data Size=8022 (0x1f56) Loading sound/extendldg.wav File Size=7710 Header Size=18 wFormatTag=1 nChannels=1 nSamplesPerSec=8000 nAvgBytesPerSec=8000 nBlockAlign=1 wBitsPerSample=8 cbSize=0 Skipping fact Data Size=7651 (0x1de3) Loading sound/bombsaway.wav File Size=3994 Header Size=16 wFormatTag=1 nChannels=1 nSamplesPerSec=8000 nAvgBytesPerSec=8000 nBlockAlign=1 wBitsPerSample=8 cbSize=0 Data Size=3876 (0xf24) Loading sound/rocket.wav File Size=4498 Header Size=16 wFormatTag=1 nChannels=1 nSamplesPerSec=8000 nAvgBytesPerSec=8000 nBlockAlign=1 wBitsPerSample=8 cbSize=0 Data Size=4380 (0x111c) Loading sound/notice.wav File Size=77374 Header Size=16 wFormatTag=1 nChannels=1 nSamplesPerSec=22050 nAvgBytesPerSec=44100 nBlockAlign=2 wBitsPerSample=16 cbSize=0 Data Size=77330 (0x12e12) Loading Voice Plug-In. (./plugin/libvoiceYsflight64.so) Voice Plug-In Loaded. [VOICEDLL] This is a skeleton for the future voice extension. [VOICEDLL] This DLL does not actually function at this time. FsVoiceDllInitialize (Line 26) FsVoiceDllSetMasterSwitch (Line 38) Localization File: en.uitxt Initialization Counter 0 Initialization Counter 1 Initialization Counter 2 Free 444 Free 450 Free 456 Free 462 Free 468 Free 474 Free 480 Initialization Counter 2 Initialization Counter 2 Initialization Counter 2 Initialization Counter 2 Initialization Counter 2 Initialization Counter 3 Initialization Counter 4 Date 20230825 Initialization Counter 5 Common YSFLIGHT Dir= Common YSFLIGHT Dir=. Detected ./20181124 Date 20230825 Initialization Counter 6 Initialization Counter 7 Waiting for thread #0 gets ready. Thread 0 ready. Waiting for thread #1 gets ready. Thread 1 ready. Waiting for thread #2 gets ready. Thread 2 ready. Waiting for thread #3 gets ready. Thread 3 ready. 1 same-plane map groups. FsLattice -71393.660000 -58144.860000 to 48845.680000 46720.810000 NX=121, NY=105 Set Vertices RegisterShell 58175/75 Done! Setting Polygons 146/146 Done! 400 particles / cloud. Set Vertices RegisterShell 58175/75 Done! Setting Polygons 146/146 Done! 400 particles / cloud. Set Vertices RegisterShell 58175/75 Done! Setting Polygons 146/146 Done! 400 particles / cloud. Set Vertices RegisterShell 58175/75 Done! Setting Polygons 146/146 Done! 400 particles / cloud. Set Vertices RegisterShell 58175/75 Done! Setting Polygons 146/146 Done! 400 particles / cloud. Set Vertices RegisterShell 58175/75 Done! Setting Polygons 146/146 Done! 400 particles / cloud. Set Vertices RegisterShell 58175/75 Done! Setting Polygons 146/146 Done! 400 particles / cloud. Set Vertices RegisterShell 58175/75 Done! Setting Polygons 146/146 Done! 400 particles / cloud. Set Vertices RegisterShell 58175/75 Done! Setting Polygons 146/146 Done! 400 particles / cloud. Set Vertices RegisterShell 58175/75 Done! Setting Polygons 146/146 Done! 400 particles / cloud. Set Vertices RegisterShell 58175/75 Done! Setting Polygons 146/146 Done! 400 particles / cloud. Set Vertices RegisterShell 58175/75 Done! Setting Polygons 146/146 Done! 400 particles / cloud. Initialization Counter 8 ALSA: Recover from underrun Segmentation fault ```

Expected behavior App should not crash with segmentation fault on the start.

Screenshots Screenshot_2023-08-25_09-30-18

Additional context Add any other context about the problem here.

NodokaHanamura commented 10 months ago

u2fly, Upstream refers to YSFlight source code or versions predating the source code release. Please do not use upstream to refer to YSCE CI builds, or any builds of YSCE for that matter. I have removed this reference to clarify the issue.

We'll have someone look at this as soon as we can.

NodokaHanamura commented 10 months ago

Also, just a heads up, the two main C++ devs we have on YSCEDC are currently dealing with RL matters, so I can't provide a reliable ETA for when we can resolve this. In the meantime I'm going to see about getting a windows copy of our latest build and see if I can reproduce this.

NodokaHanamura commented 10 months ago

Update - Just tested our latest CI artifact on Windows, and this is definitely a Linux issue. I've tested both GL1 and GL2 and it's definitely not GAPI related. I'll see about testing with a Linux VM and see where that gets me sometime tommorow.

app4soft commented 10 months ago

I'll see about testing with a Linux VM and see where that gets me sometime tommorow.

Use this ISO for LiveUSB or VM: https://sourceforge.net/projects/mx-linux/files/Final/Xfce/MX-23_x64.iso/download