pyanodon / pybugreports

Central bug-report repository for pymods
The Unlicense
5 stars 1 forks source link

Game Crash While Opening a Caravan GUI #522

Closed KibaddaKaboodle closed 2 weeks ago

KibaddaKaboodle commented 3 weeks ago

Mod source

Factorio Mod Portal

Operating system

=Windows 10

What kind of issue is this?

What is the problem?

Left clicking a Caravan to open its GUI will crash the game if it's GUI is already open, giving this crash report:

Notice

The mod Pyanodons Alien Life (2.1.38) caused a non-recoverable error. Please report this error to the mod author.

Error while running event pyalienlife::open-gui (ID 277) Gui element with name caravan_flow already present in the parent element. stack traceback: [C]: in function 'add' pyalienlife/scripts/caravan/caravan-gui.lua:152: in function 'build_gui' pyalienlife/scripts/caravan/caravan-gui.lua:266: in function 'on_open_gui' pyalienlife/control.lua:241: in function <pyalienlife/control.lua:240>

Steps to reproduce

  1. Left click any Caravan to open its GUI
  2. Drag GUI to reveal the Caravan or move character to get Caravan into clickable view.
  3. Left click the Caravan who's GUI is already open.
  4. Crash :p

Additional context

No response

Log file

factorio-current.log In plain text: 0.001 2024-06-08 20:07:53; Factorio 1.1.107 (build 62234, win64, steam) 0.002 Operating system: Windows 10 (build 19045) 0.000 Initializing Steam API. 0.002 Program arguments: "C:\Steam\steamapps\common\Factorio\bin\x64\Factorio.exe" "--mod-directory" "C:\Users*UserName\AppData\Roaming\Factorio\mods" 0.002 Config path: C:/Users/UserName/AppData/Roaming/Factorio/config/config.ini 0.002 Read data path: C:/Steam/steamapps/common/Factorio/data 0.002 Write data path: C:/Users/UserName/AppData/Roaming/Factorio [387946/1952442MB] 0.002 Binaries path: C:/Steam/steamapps/common/Factorio/bin 0.011 System info: [CPU: AMD Ryzen 5 1600 Six-Core Processor, 12 cores, RAM: 5521/16336 MB, page: 10230/25552 MB, virtual: 4335/134217727 MB, extended virtual: 0 MB] 0.083 Memory info: 0.083 [0]: Unknown F4-2666C15-8GVR 8192 MB 1333 MHz 1.2 v 0.083 [1]: Unknown F4-2666C15-8GVR 8192 MB 1333 MHz 1.2 v 0.085 Display options: [FullScreen: 1] [VSync: 0] [UIScale: custom (100.0%)] [Native DPI: 1] [Screen: 255] [Special: lmw] [Lang: en] 0.155 Video driver: windows 0.155 Available displays: 1 0.155 [0]: \.\DISPLAY1 - Radeon RX 580 Series {0x80005, [0,0], 2560x1080, 32bit, 60Hz} 0.194 [Direct3D11] Display: 0, Output: 0, DisplayAdapter: 0, RenderingAdapter: 0; d3dcompiler_47.dll 0.290 Initialised Direct3D[0]: Radeon RX 580 Series; id: 1002-67df; driver: aticfx64.dll 31.0.21912.14 0.290 D3D Feature Level: 11.1, DXGI 1.5+, SwapChain: 3,flip-discard,-,-,-,none 0.290 [Local Video Memory] Budget: 3463MB, CurrentUsage: 0MB, Reservation: 0/1833MB 0.290 [Non-Local Vid.Mem.] Budget: 7503MB, CurrentUsage: 0MB, Reservation: 0/3879MB 0.290 Tiled resources: Tier 2 0.290 Unified Memory Architecture: No 0.290 BGR 565 Supported: Yes 0.290 MaximumFrameLatency: 3, GPUThreadPriority: 0 0.291 Graphics settings preset: very-high 0.291 Dedicated video memory size 4074 MB 0.357 Desktop composition is active. 0.357 Graphics options: [Graphics quality: high] [Video memory usage: all] [DXT: high-quality] [Color: 32bit] 0.357 [Max threads (load/render): 32/8] [Max texture size: 0] [Tex.Stream.: 0] [Rotation quality: normal] [Other: STDCWT] [B:0,C:0,S:100] 0.396 [Audio] Backend:SDL(default); Driver:wasapi, Device:Default device, Depth:16, Channels:2, Frequency:44100 1.004 Info ModManager.cpp:258: Found duplicate mod flib, using higher version (0.14.1 > 0.14.0). 2.243 Data stage cache loaded in: 0.596578 seconds. 2.270 Checksum for core: 607699937 2.270 Checksum of base: 1054619811 2.270 Checksum of stdlib: 0 2.270 Checksum of pycoalprocessing: 2136549339 2.270 Checksum of pycoalprocessinggraphics: 0 2.270 Checksum of pyfusionenergy: 1291422854 2.270 Checksum of pyfusionenergygraphics: 0 2.270 Checksum of pyindustry: 2343110249 2.270 Checksum of pyrawores: 1937397021 2.270 Checksum of pypetroleumhandling: 1778371473 2.270 Checksum of pyraworesgraphics: 0 2.270 Checksum of pyalienlife: 3997539584 2.270 Checksum of pypetroleumhandlinggraphics: 0 2.270 Checksum of pyalienlifegraphics: 0 2.270 Checksum of pyalienlifegraphics2: 0 2.270 Checksum of pyalienlifegraphics3: 0 2.270 Checksum of pypostprocessing: 2011432158 2.985 Prototype list checksum: 2401751404 3.063 Loading sounds... 4.959 Info PlayerData.cpp:78: Local player-data.json unavailable 4.959 Info PlayerData.cpp:81: Cloud player-data.json available, timestamp 1717902464 5.553 Initial atlas bitmap size is 16384 5.629 Created atlas bitmap 16384x16376 [none] 5.688 Created atlas bitmap 16384x16384 [none] 5.753 Created atlas bitmap 16384x16384 [none] 5.809 Created atlas bitmap 16384x16372 [none] 5.853 Created atlas bitmap 16384x16372 [none] 5.892 Created atlas bitmap 16384x16384 [none] 5.929 Created atlas bitmap 16384x16380 [none] 5.969 Created atlas bitmap 16384x16380 [none] 6.004 Created atlas bitmap 16384x16380 [none] 6.040 Created atlas bitmap 16384x16380 [none] 6.065 Created atlas bitmap 16384x16384 [none] 6.069 Created atlas bitmap 16384x14096 [none] 6.070 Created atlas bitmap 8192x4208 [decal] 6.071 Created atlas bitmap 16384x7040 [low-object] 6.072 Created atlas bitmap 8192x4304 [mipmap, linear-minification, linear-magnification, linear-mip-level] 6.073 Created atlas bitmap 16384x6640 [terrain, mipmap, linear-minification, linear-mip-level] 6.073 Created atlas bitmap 4096x3216 [terrain-effect-map, mipmap, linear-minification, linear-mip-level] 6.073 Created atlas bitmap 4096x1856 [smoke, mipmap, linear-minification, linear-magnification] 6.073 Created atlas bitmap 4096x3088 [mipmap] 6.074 Created atlas bitmap 8192x5024 [icon, not-compressed, mipmap, linear-minification, linear-magnification, linear-mip-level] 6.075 Created atlas bitmap 8192x1496 [alpha-mask] 6.104 Created atlas bitmap 16384x16380 [shadow, linear-magnification, alpha-mask] 6.148 Created atlas bitmap 16384x16384 [shadow, linear-magnification, alpha-mask] 6.149 Created atlas bitmap 16384x2556 [shadow, linear-magnification, alpha-mask] 6.149 Created atlas bitmap 8192x2352 [shadow, mipmap, linear-magnification, alpha-mask] 6.149 Created atlas bitmap 2048x1328 [icon-background, not-compressed, mipmap, linear-minification, linear-magnification, linear-mip-level, ] 6.158 Texture processor created (2048). GPU accelerated compression Supported: yes, Enabled: yes/yes. Test passed. YCoCgDXT PSNR: 35.83, BC3 PSNR: 33.82 19.408 Atlases loaded from disk cache. 19.436 Parallel Sprite Loader initialized (threads: 0) 19.534 Sprites loaded 19.557 Generated mipmaps (4) for atlas [13] of size 16384x7040
19.568 Generated mipmaps (3) for atlas [14] of size 8192x4304
19.590 Generated mipmaps (3) for atlas [15] of size 16384x6640
19.603 Generated mipmaps (3) for atlas [16] of size 4096x3216
19.614 Generated mipmaps (3) for atlas [17] of size 4096x1856
19.655 Generated mipmaps (3) for atlas [18] of size 4096x3088
19.666 Generated mipmaps (5) for atlas [19] of size 8192x5024
19.677 Generated mipmaps (3) for atlas [24] of size 8192x2352
19.681 Custom mipmaps uploaded (1898) 19.702 Custom inputs active: 1 20.333 Factorio initialised 20.367 Steam Storage Quota: 23124/23841 29.080 Loading map C:\Users*UserName
\AppData\Roaming\Factorio\saves\Caravan Bug Report.zip: 2648121 bytes. 29.170 Loading level.dat: 5488451 bytes. 29.174 Info Scenario.cpp:204: Map version 1.1.107-0 29.483 Loading script.dat: 333887 bytes. 29.488 Checksum for script C:/Users/UserName/AppData/Roaming/Factorio/temp/currently-playing/control.lua: 3702463597 29.502 Checksum for script pycoalprocessing/control.lua: 1893279140 29.511 Checksum for script pyrawores/control.lua: 959836179 29.514 Checksum for script pypetroleumhandling/control.lua: 994055510 29.547 Checksum for script pyalienlife/control.lua: 4244840497 29.549 Checksum for script pypostprocessing/control.lua: 2927937539 45.413 Error MainLoop.cpp:1404: Exception at tick 2685: The mod Pyanodons Alien Life (2.1.38) caused a non-recoverable error. Please report this error to the mod author.

Error while running event pyalienlife::open-gui (ID 189) Gui element with name caravan_flow already present in the parent element. stack traceback: [C]: in function 'add' pyalienlife/scripts/caravan/caravan-gui.lua:152: in function 'build_gui' pyalienlife/scripts/caravan/caravan-gui.lua:266: in function 'on_open_gui' pyalienlife/control.lua:241: in function <pyalienlife/control.lua:240>

przemo1232 commented 2 weeks ago

fixed https://github.com/pyanodon/pyalienlife/commit/2bca169d89bc32f7f6adc4375281046ac1dc7a48