Partixel
(Partixel)
December 17, 2016, 8:15pm
#1
Repro: Destroy any script/module that is open when a player chats in playsolo of a teamcreate place
Put the following in ServerScriptService, hit playsolo and say anything:
repeat wait( ) until #game.Players:GetChildren( ) > 0
game.Players:GetChildren( )[ 1 ].Chatted:connect( function ( )
script:Destroy( )
end )
Add more info if possible, try to narrow this down to the minimal amount of code which will cause this issue and post that.
Partixel
(Partixel)
December 18, 2016, 12:12pm
#3
I’ve tried, however, I can’t make a minimal repo, it only crashes with the full thing
Partixel
(Partixel)
December 18, 2016, 6:40pm
#4
Silent137
(Silent137)
December 19, 2016, 11:23pm
#5
Can you send me a copy of the module in question?
Partixel
(Partixel)
December 20, 2016, 10:16am
#6
Insert that into ServerScriptService,
The module gets require()'d into ReplicatedStorage, say destroy/ to destroy the module and you should see the crash
Partixel
(Partixel)
December 20, 2016, 2:13pm
#7
Just got home, I can give you the actual file now:
V-Handle.rbxl (435.9 KB)
Open the MainModule in ReplicatedStorage, play solo and then say destroy/
EDIT: Seems to only crash if it’s a teamcreate place
Partixel
(Partixel)
January 3, 2017, 6:35pm
#8
Bump ( now that code freeze is over ( ? ) )
Partixel
(Partixel)
March 3, 2017, 2:52pm
#9
Bumperoni, this is still happening
I can provide crash logs if that helps?
Silent137
(Silent137)
March 6, 2017, 9:37pm
#10
Can you provide a bare-minimum example of this? ie: A place or module that only contains code that causes this issue?
Partixel
(Partixel)
March 10, 2017, 6:57pm
#11
EDIT: Just realised I never uploaded my bare-minimum repro, one second.
My previous repro should work ( Make sure it’s a teamcreate place )
Partixel
(Partixel)
March 10, 2017, 7:20pm
#12
I can’t make a minimal repro, I’m not sure what exactly is causing this unfortunately…
All I know is it only occurs when said module is open in a tab ( Not the current tab ) and I use the destroy/ admin command which only runs script:Destroy( ). Any waits prevents the crashes so I can’t print to see if the crash is occurring before or after the :Destroy( ) is called
The teamcreate place I’m testing it in:
Partixel
(Partixel)
March 10, 2017, 7:41pm
#13
Scratch that, I managed to get it down to the module being destroyed from a function that is called when a player chats:
Repro.rbxl (71.6 KB)
In a teamcreate place open game.ServerScriptService.Script.MainModule then play solo and say anything and it will crash
Silent137
(Silent137)
March 10, 2017, 10:36pm
#14
That doesn’t crash for me. The chat still works fine, though there is a warning in the output because nothing is returned from the chat function.
Partixel
(Partixel)
March 10, 2017, 11:27pm
#15
That’s really weird, it crashes every time for me -
Windows 10
Latest Geforce driver, GTX 980M
Are you in teamcreate? Do you open the script first and then press play solo?
Silent137
(Silent137)
March 11, 2017, 12:32am
#16
Ah, missed that it had to be opened as well. It looks like this doesn’t happen if I try to replicate this without using the chat system. Does this only happen if you use chat to trigger the module’s deletion?
Partixel
(Partixel)
March 11, 2017, 1:44pm
#17
It used to happen with .Chatted too, although it seems .Chatted no longer works in studio so I can’t test?
Silent137
(Silent137)
March 13, 2017, 6:19pm
#18
So it only happens with chat functions?
Partixel
(Partixel)
March 13, 2017, 9:38pm
#19
I believe so. I haven’t been able to replicate it any other way.
Partixel
(Partixel)
April 14, 2017, 4:03pm
#20
Any ETA on when this will be fixed?