Way to output buffer on crash

So a Roblox update after 6/9/21 makes my studio crash when I open up this game while I have this plugin enabled. Since saying just this might not be helpful enough for engineers to identify the issue, I was planning on isolating the specific module of my game causing the crash by overwriting require, trying things like this:

local require=function(module)
	local b=Instance.new'BindableEvent'
	b.Event:Connect(error)--hoping error wouldn't have a buffer
	b:Fire(module:GetFullName())
	return require(module)
end

Fwiw the error popup I get is the standard “An unexpected error occurred and Roblox needs to quit. We’re sorry!”, and no more text in the Output window.

If outputing the print buffer is not doable, it’d be nice to at least have something like C++'s cerr:

print'aaa'--no output because print is buffered
crash'An unexpected error occurred and Roblox needs to quit. We\'re sorry!'
printnow'aaa'--yes output because printnow is not buffered
crash'An unexpected error occurred and Roblox needs to quit. We\'re sorry!'
3 Likes

Thank you for the report, we have identified the source of the crash and a fix has been implemented internally.

Sadly, the earliest time for the release of this fix is August 4th next week.

We will look for possible work-arounds before that update, but you might have to disable the plugin for the time being.

4 Likes

Thanks, studio is no longer crashing for me : D


Maybe a way to emulate this feature request is by using Plugin:GetSetting and Plugin:SetSetting—I have not tested this though