1. Welcome to the Starbound support forums. Please check the support FAQs before posting: http://playstarbound.com/support

Closed [crash] Discard Stack when Locked

Discussion in 'Starbound Support' started by The | Suit, Jan 30, 2015.

Thread Status:
Not open for further replies.
  1. The | Suit

    The | Suit Agent S. Forum Moderator

    Was rummaging through a mine looking for stuff
    Holding a few torches in my hand. Clicked on a crate and caused this error.

    Code:
    Start logging at: 2015-01-30 09:57:04.930
    [09:57:04.931] Info: Star::Root using bootstrap file 'C:\Program Files (x86)\Steam\steamapps\common\Starbound\win32\sbboot.config'
    [09:57:04.931] Info: Star::Root using storage directory 'C:\Program Files (x86)\Steam\steamapps\common\Starbound\giraffe_storage\'
    [09:57:04.931] Info: Preparing Star::Root...
    [09:57:04.931] Info: Loading Configuration with config file: 'starbound.config'
    [09:57:04.931] Info: Loading Star::Configuration from 'Just (.\../giraffe_storage\starbound.config)'
    [09:57:04.983] Info: Writing Star::Configuration to '.\../giraffe_storage\starbound.config'
    [09:57:04.989] Info: Pre-loading Star::Root with 2 assets sources
    [09:57:04.989] Info: Loading Star::Assets from: '../assets/packed.pak'
    [09:57:04.989] Info: Loading Star::Assets from: '../assets/user'
    [09:57:05.187] Info: Done preparing Star::Root.
    [09:57:05.188] Info: Client version 'Beta v. Upbeat Giraffe - Update 2' Protocol: 664
    [09:57:05.188] Info: Initialized SDL
    [09:57:05.212] Info: Initialized SDL Video
    [09:57:05.298] Info: Initialized SDL Joystick
    [09:57:05.299] Info: Initialized SDL Sound
    [10:05:10.915] Info: Initializing SDL Window
    [10:05:10.928] Info: OpenGL version: '4.3.0 - Build 10.18.14.4029' vendor: 'Intel' renderer: 'Intel(R) HD Graphics 4400' shader: '4.30 - Build 10.18.14.4029'
    [10:05:10.928] Info: Re-created window 1000x600
    [10:05:10.934] Info: Renderer initialized
    [10:05:11.194] Info: Writing Star::Configuration to '.\../giraffe_storage\starbound.config'
    [10:05:23.650] Info: Client received world stop packet, leaving: Removed
    [10:05:48.485] Info: Client received world stop packet, leaving: Removed
    
    -- Removed portion of me trying to connect to friends server, but unable to get it to work for some time --
    
    [10:18:57.196] Info: Client received world stop packet, leaving: Removed
    [10:19:03.061] Info: Client received world stop packet, leaving: Removed
    [10:28:49.790] Info: Writing Star::Configuration to '.\../giraffe_storage\starbound.config'
    [10:29:13.859] Info: Writing Star::Configuration to '.\../giraffe_storage\starbound.config'
    [10:30:49.193] Info: Client received world stop packet, leaving: Removed
    [10:30:53.475] Info: Client received world stop packet, leaving: Removed
    [10:45:13.578] Info: UniverseClient: Client disconnecting...
    [10:45:13.921] Info: Client received world stop packet, leaving: Removed
    [10:45:13.965] Info: closing [ipv4]99.72.146.247:21025 (1384)
    [10:45:13.966] Info: NetSocket read loop shut down: (SocketClosedException) Socket closed
    [10:45:14.134] Info: Shutting down Star::Root
    [10:45:14.792] Error: Fatal Exception Caught: (InventoryException) Not allowed to discard stack when locked.
      StarException::StarException(char*)
      PlayerInventory::discardSwap()
      Player::discardSwap()
      _Function_handler<void (shared_ptr<Pane>), MainInterface::handleInteractAction(InteractAction)::{lambda(shared_ptr<Pane>)#1}>::(_Any_data, shared_ptr<Pane>)
      PaneManager::dismiss(shared_ptr<Pane>)
      PaneManager::sendInputEvent(shared_ptr<InputEvent>)
      MainInterface::handleInputEvent(shared_ptr<InputEvent>)
      ClientApplication::processInput(shared_ptr<InputEvent>)
      StarApplicationBase::handlePendingInput()
      StarApplicationBase::run()
      _SDL_main
      _console_main
    
     
    Last edited: Feb 5, 2015
    echelon3 likes this.
  2. teilnehmer

    teilnehmer Existential Complex

    I just jad a similar crash during the Erchius mission. Was browsing containers (I gues I had a weapon in hand, but somehow I believe it's got nothing to do with equipped item...
    Code:
    [21:08:15.158] Info: UniverseClient: Client disconnecting...
    [21:08:16.136] Info: Client received world stop packet, leaving: Removed
    [21:08:16.151] Info: closing [ipv4]85.190.137.185:21025 (17)
    [21:08:16.152] Info: NetSocket read loop shut down: (SocketClosedException) Socket closed
    [21:08:16.304] Info: Shutting down Star::Root
    [21:08:16.651] Error: Fatal Exception Caught: (InventoryException) Not allowed to discard stack when locked.
    Looks like in my case I lost the connection to the server, but before that connection loss could register, the lock occured (which is probably a good thing, saving the state before I lose connection), and consequently the game crashed. The server did not crash, by the way, I have no idea why I lost connection.
     
    The | Suit likes this.
  3. The | Suit

    The | Suit Agent S. Forum Moderator

    Same thing happened to me - the server had no issue just me
     
  4. Markelius

    Markelius Space Kumquat

    I've had the same issue. It seems to happen when using an object from a container (like a consumable) then immediately placing it back into a container. Server had no issue but my client crashed. The starbound.log showed the same message.

    I've also had issues with crashing on going to planets. It seems to be a server issue as I had my partner test by going to the planet that we were crashing on in singleplayer-no crashes, it only happens in multiplayer. Strange thing is the only thing our starbound.log files will say is something like this:
    Code:
    [01:15:08.969] Info: Client received world stop packet, leaving: Removed
    [01:15:09.605] Error: Exception caught in client main-loop: (IOException) Failed to read full buffer in readFull, eof reached.
    
    [01:15:09.681] Error: Exception caught in client main-loop: (IOException) Failed to read full buffer in readFull, eof reached.
    
    [01:15:09.741] Info: UniverseClient: Client disconnecting...
    [01:15:09.916] Info: Client received world stop packet, leaving: Removed
    [01:15:10.653] Info: closing [ipv4]75.67.0.42:21025 (1052)
    [01:15:10.654] Info: NetSocket read loop shut down: (SocketClosedException) Socket closed
    [01:15:10.665] Info: Renderer destroyed
    [01:15:10.665] Info: Application quitting!
    [01:15:10.665] Info: Client shutdown gracefully
    [01:15:10.854] Info: Shutting down Star::Root
    
     
    The | Suit likes this.
  5. RvLesh

    RvLesh Parsec Taste Tester

    Does this happen when connected to a server and you pick up an item, wait a full second (slower than your latency), then put it back?

    Does it happen if you simply double-click an item in a container so that it instantly puts it back (faster than your latency)?
     
  6. Kirona

    Kirona Void-Bound Voyager

    Same error message here, but nothing was in my hand, and I was in singleplayer ( though, with the local-server thing running in the background [which lag spikes randomly ever since they put that in, but that's another story], it could still be a "server" issue :\ ).

    Error popup (top first, then bottom after clicking OK on the top)
    [​IMG]

    EDIT: After reloading, the item I was moving (in this case, I was moving a stack of plant fiber from ship storage to my personal inventory via shift-click) is gone. Everything seems to be okay otherwise, but I shudder to think how I'd feel if it were a more rare/valuable item...
     

    Attached Files:

  7. The | Suit

    The | Suit Agent S. Forum Moderator

    You should always post the log - not the runtime screen errors. its much more descriptive.
     
    Iris Blanche likes this.
  8. echelon3

    echelon3 Scruffy Nerf-Herder

    I got the same issue. It's happened a few times for me. Once in my ship, and a few times in the Floran Party. I'm not sure what I had in my hands the first time, but all the subsequent times I've had a grenade launcher and grappling hook in my hands, and I've been shift-clicking things to stack them.

    I'm trying to post my log, but the forum keeps telling me that I'm trying to post a sneaky URL, and to delete it. I'm not sure what inside is being misconstrued as a URL, it looks pretty similar to the other ones posted, and those haven't been flagged.
    Edit: Nevermind, got it to work as a separate post.
    [DOUBLEPOST=1423251934][/DOUBLEPOST]
    Code:
    Start logging at: 2015-02-06 13:19:00.754
    [13:19:00.755] Info: Star::Root using bootstrap file 'C:\Program Files (x86)\Steam\steamapps\common\Starbound\win32\sbboot.config'
    [13:19:00.755] Info: Star::Root using storage directory 'C:\Program Files (x86)\Steam\steamapps\common\Starbound\giraffe_storage\'
    [13:19:00.755] Info: Preparing Star::Root...
    [13:19:00.755] Info: Loading Configuration with config file: 'starbound.config'
    [13:19:00.755] Info: Loading Star::Configuration from 'Just (.\../giraffe_storage\starbound.config)'
    [13:19:00.906] Info: Writing Star::Configuration to '.\../giraffe_storage\starbound.config'
    [13:19:00.914] Info: Pre-loading Star::Root with 2 assets sources
    [13:19:00.914] Info: Loading Star::Assets from: '../assets/packed.pak'
    [13:19:00.914] Info: Loading Star::Assets from: '../assets/user'
    [13:19:01.266] Info: Done preparing Star::Root.
    [13:19:01.266] Info: Client version 'Beta v. Upbeat Giraffe - Update 2' Protocol: 666
    [13:19:01.266] Info: Initialized SDL
    [13:19:01.292] Info: Initialized SDL Video
    [13:19:01.313] Info: Initialized SDL Joystick
    [13:19:01.314] Info: Initialized SDL Sound
    [13:19:01.355] Info: Opened default audio device with 44khz / 16 bit stereo audio, 2048 sample size buffer
    [13:19:01.359] Info: Finishing loading Star::Root...
    [13:19:01.362] Info: Initializing SDL Window
    [13:19:02.147] Info: Created initial window 1366x768
    [13:19:02.164] Info: Renderer initialized
    [13:19:02.165] Info: Renderer destroyed
    [13:19:02.165] Info: Initializing SDL Window
    [13:19:02.443] Info: Re-created window 1366x768
    [13:19:02.799] Info: Renderer initialized
    [13:19:20.836] Info: Done loading Star::Root.
    [13:19:20.845] Info: Renderer destroyed
    [13:19:24.083] Info: Creating default Star::Configuration
    [13:19:24.083] Info: Creating default Star::Configuration
    [13:19:24.132] Info: Renderer initialized
    [13:19:28.940] Info: Renderer destroyed
    [13:19:29.178] Info: UniverseClient: Sending Handshake Response
    [13:19:29.350] Info: Creating default Star::Configuration
    [13:19:29.350] Info: Creating default Star::Configuration
    [13:19:29.442] Info: Renderer initialized
    [13:20:01.918] Info: Client received world stop packet, leaving: Removed
    [13:24:42.395] Info: UniverseClient: Client disconnecting...
    [13:24:42.422] Info: Client received world stop packet, leaving: Removed
    [13:24:42.463] Info: closing [ipv4]127.0.0.1:21025 (1184)
    [13:24:42.464] Info: NetSocket read loop shut down: (SocketClosedException) Socket closed
    [13:24:42.994] Info: Shutting down Star::Root
    [13:24:44.103] Error: Fatal Exception Caught: (InventoryException) Not allowed to discard stack when locked.
      StarException::StarException(char*)
      PlayerInventory::discardSwap()
      Player::discardSwap()
      _Function_handler<void (shared_ptr<Pane>), MainInterface::handleInteractAction(InteractAction)::{lambda(shared_ptr<Pane>)#1}>::(_Any_data, shared_ptr<Pane>)
      PaneManager::dismiss(shared_ptr<Pane>)
      PaneManager::sendInputEvent(shared_ptr<InputEvent>)
      MainInterface::handleInputEvent(shared_ptr<InputEvent>)
      ClientApplication::processInput(shared_ptr<InputEvent>)
      StarApplicationBase::handlePendingInput()
      StarApplicationBase::run()
      _SDL_main
      _console_main
    
     
    The | Suit likes this.
  9. Kirona

    Kirona Void-Bound Voyager

    Apologies for the slow reply, wasn't able to get back online for a bit.

    I wasn't able to FIND the log when I made that post, though eventually I did find it later. However, it was pretty much identical to the other logs in this thread, and the entire contents of that first error message are what my log ended with. The second error is what I got after clicking OK on the first one (and that popped up several more times as I tabbed about getting screenshots).
     
  10. The | Suit

    The | Suit Agent S. Forum Moderator

    That's fine. I meant it more as a future reference thing when you you may want to report a new bug in the future.
     
  11. Afflicted One

    Afflicted One Phantasmal Quasar

    I am seriously getting this crash every time I play. In fact, it just happened to me 3 times in the past half hour. I've reached peak levels of frustration, and won't be returning to this game until this bug is fixed.

    Not only is the crash extremely inconvenient, but it often results in item loss.
     
    The | Suit likes this.
  12. Kenokam

    Kenokam Aquatic Astronaut

    I've been having the same issue for the last couple of days. I'll go ahead and throw my log on the pile.

    Code:
    Start logging at: 2015-02-03 20:07:38.566
    [20:07:38.567] Info: Star::Root using bootstrap file 'F:\Steam\steamapps\common\Starbound\win32\sbboot.config'
    [20:07:38.567] Info: Star::Root using storage directory 'F:\Steam\steamapps\common\Starbound\giraffe_storage\'
    [20:07:38.567] Info: Preparing Star::Root...
    [20:07:38.568] Info: Loading Configuration with config file: 'starbound.config'
    [20:07:38.568] Info: Loading Star::Configuration from 'Just (.\../giraffe_storage\starbound.config)'
    [20:07:38.619] Info: Writing Star::Configuration to '.\../giraffe_storage\starbound.config'
    [20:07:38.623] Info: Pre-loading Star::Root with 2 assets sources
    [20:07:38.623] Info: Loading Star::Assets from: '../assets/packed.pak'
    [20:07:38.666] Info: Loading Star::Assets from: '../assets/user'
    [20:07:38.901] Info: Done preparing Star::Root.
    [20:07:38.902] Info: Client version 'Beta v. Upbeat Giraffe - Update 2' Protocol: 666
    [20:07:38.902] Info: Initialized SDL
    [20:07:38.910] Info: Initialized SDL Video
    [20:07:38.915] Info: Initialized SDL Joystick
    [20:07:38.916] Info: Initialized SDL Sound
    [20:07:38.929] Info: Opened default audio device with 44khz / 16 bit stereo audio, 2048 sample size buffer
    [20:07:38.969] Info: Finishing loading Star::Root...
    [20:07:39.324] Info: Initializing SDL Window
    [20:07:39.388] Info: Created initial window 944x1001
    [20:07:39.409] Info: Renderer initialized
    [20:07:39.468] Info: Renderer destroyed
    [20:07:39.468] Info: Initializing SDL Window
    [20:07:39.509] Info: Re-created window 1920x1017
    [20:07:39.523] Info: Renderer initialized
    [20:07:39.903] Info: Writing Star::Configuration to '.\../giraffe_storage\starbound.config'
    [20:08:59.139] Info: Done loading Star::Root.
    [20:08:59.141] Info: Renderer destroyed
    [20:09:01.003] Info: Creating default Star::Configuration
    [20:09:01.003] Info: Creating default Star::Configuration
    [20:09:01.056] Info: Renderer initialized
    [20:09:15.185] Info: Renderer destroyed
    [20:09:15.940] Info: Acquiring universe lock file
    [20:09:16.017] Info: Loading settings
    [20:09:16.019] Info: Finding starter world
    [20:09:16.139] Info: UniverseServer: Loading world db for world -238124299:962690909:32294418:8:1
    [20:09:16.938] Info: UniverseServer: client connection made from local
    [20:09:17.018] Info: UniverseServer: Sending Handshake Challenge
    [20:09:17.023] Info: UniverseClient: Sending Handshake Response
    [20:09:17.034] Info: UniverseServer: Client 'Gigabyte' <1> (Fifo <0x16f06f50>) connected
    [20:09:17.036] Info: UniverseServer: Loading ship world received from client <User: Gigabyte>
    [20:09:18.323] Info: Creating default Star::Configuration
    [20:09:18.323] Info: Creating default Star::Configuration
    [20:09:18.654] Info: Renderer initialized
    [20:09:18.893] Info: UniverseServer: Loading world db for world -98322130:-270984763:-223215361:5:2
    [20:09:24.009] Info: Client received world stop packet, leaving: Removed
    [20:09:28.493] Info: Client received world stop packet, leaving: Removed
    [20:09:29.455] Info: UniverseServer: Shutting down world CelestialWorld:-98322130:-270984763:-223215361:5:2 due to inactivity
    [20:09:38.558] Info: UniverseServer: Shutting down world CelestialWorld:-238124299:962690909:32294418:8:1 due to inactivity
    [20:12:02.203] Info: UniverseServer: Loading world db for world -98322130:-270984763:-223215361:5:2
    [20:12:02.434] Info: Client received world stop packet, leaving: Removed
    [20:12:06.167] Info: Client received world stop packet, leaving: Removed
    [20:12:16.237] Info: UniverseServer: Shutting down world CelestialWorld:-98322130:-270984763:-223215361:5:2 due to inactivity
    [20:12:17.036] Info: UniverseServer: Creating world -98322130:-270984763:-223215361:5
    [20:12:29.422] Info: UniverseServer: Shutting down world CelestialWorld:-98322130:-270984763:-223215361:5 due to inactivity
    [20:13:00.772] Info: UniverseServer: Loading world db for world -98322130:-270984763:-223215361:5
    [20:13:00.985] Info: Client received world stop packet, leaving: Removed
    [20:13:11.027] Info: UniverseServer: Shutting down world ClientShipWorld:a581b34155cdcd4086676730ded3c043 due to inactivity
    [20:21:59.846] Info: UniverseServer: Loading ship world received from client <User: Gigabyte>
    [20:22:00.943] Info: Client received world stop packet, leaving: Removed
    [20:22:10.997] Info: UniverseServer: Shutting down world CelestialWorld:-98322130:-270984763:-223215361:5 due to inactivity
    [20:34:27.795] Info: UniverseServer: Creating world -98322130:-270984763:-223215361:2:3
    [20:34:28.015] Info: Placing dungeon naturalcave
    [20:34:28.015] Info: Generating dungeon naturalcave (NOT FORCED)
    [20:34:28.017] Info: Placing dungeon at (582, 900)
    [20:34:40.185] Info: UniverseServer: Shutting down world CelestialWorld:-98322130:-270984763:-223215361:2:3 due to inactivity
    [20:37:53.426] Info: UniverseServer: Loading world db for world -98322130:-270984763:-223215361:2:3
    [20:37:53.651] Info: Client received world stop packet, leaving: Removed
    [20:38:03.688] Info: UniverseServer: Shutting down world ClientShipWorld:a581b34155cdcd4086676730ded3c043 due to inactivity
    [20:42:05.249] Info: UniverseServer: Loading ship world received from client <User: Gigabyte>
    [20:42:06.419] Info: Client received world stop packet, leaving: Removed
    [20:42:16.409] Info: UniverseServer: Shutting down world CelestialWorld:-98322130:-270984763:-223215361:2:3 due to inactivity
    [20:54:49.152] Info: Writing Star::Configuration to '.\../giraffe_storage\starbound.config'
    [20:54:58.171] Info: Writing Star::Configuration to '.\../giraffe_storage\starbound.config'
    [20:55:20.870] Info: UniverseClient: Client disconnecting...
    [20:55:21.158] Info: Client received world stop packet, leaving: Removed
    [20:55:21.480] Info: UniverseServer: Client 'Gigabyte' <1> (Fifo <0x16f06f50>) disconnected
    [20:55:21.556] Info: NetSocket read loop shut down: (FifoClosedException) Fifo::read called on closed Fifo
    [20:55:21.556] Info: NetSocket read loop shut down: (FifoClosedException) Fifo::read called on closed Fifo
    [20:55:22.184] Info: Shutting down Star::Root
    [20:55:22.620] Error: Fatal Exception Caught: (InventoryException) Not allowed to discard stack when locked.
      StarException::StarException(char*)
      PlayerInventory::discardSwap()
      Player::discardSwap()
      _Function_handler<void (shared_ptr<Pane>), MainInterface::handleInteractAction(InteractAction)::{lambda(shared_ptr<Pane>)#1}>::(_Any_data, shared_ptr<Pane>)
      PaneManager::dismiss(shared_ptr<Pane>)
      PaneManager::sendInputEvent(shared_ptr<InputEvent>)
      MainInterface::handleInputEvent(shared_ptr<InputEvent>)
      ClientApplication::processInput(shared_ptr<InputEvent>)
      StarApplicationBase::handlePendingInput()
      StarApplicationBase::run()
      _SDL_main
      _console_main
    
     
    The | Suit likes this.
  13. The | Suit

    The | Suit Agent S. Forum Moderator

    Hi thanks for helping report this issue.
    This issue has currently been fixed in the latest unstable.
    Till the unstable gets pushed to stable I would advise holding an item in your hand when opening a container.
    ==
    If you wish to add anything more to this topic please use this thread.
    http://community.playstarbound.com/...wed-to-discard-stack-when-locked-error.87523/


    [ I show no discrimination between my self and others ]
     
Thread Status:
Not open for further replies.

Share This Page