ID:1541402
 
Resolved
world.Export() could cause crashes in threaded worlds.
BYOND Version:506
Operating System:Windows 7 Ultimate 64-bit
Web Browser:Chrome 34.0.1847.116
Applies to:Dream Daemon
Status: Resolved (506.1242)

This issue has been resolved.
Descriptive Problem Summary:
Im not entirely sure if world.export() function were changed but since I updated world.Export() always returns null.

Numbered Steps to Reproduce Problem:
Use world.Export()anywhere.

Code Snippet (if applicable) to Reproduce Problem:
var/http[] = world.Export("http://emeraldgames.x10host.com/hidden/tlc_version.txt")
if(!http)
world.log << "Error: Unable to verify game version."
world.Del()
return


Expected Results:
Returns the game version for verification.

Actual Results:
Returns null all the time.

Does the problem occur:
Every time? Or how often?
Yes
In other games?
Not sure
In other user accounts?
So far yea
On other computers?
Have not tried

When does the problem NOT occur?
When I rollback my byond version to 498.1158.
Did the problem NOT occur in any earlier versions? If so, what was the last version that worked?
498.1158

Workarounds:
Roll-back
Try this.

mob
verb
test()
var/http[] = world.Export("http://emeraldgames.x10host.com/hidden/tlc_version.txt")

if(!http)
usr << "Failed to connect."
return

var/F = http["CONTENT"]
if(F)
usr << html_encode(file2text(F))
I do have encoder after that part but the http will always be null no mater what.
My test case worked fine in the stable, your code didn't work at all.
http://files.byondhome.com/DarkerEmerald/hrm.png

In the world log you can see "Error: Unable to verify game version."
The code works when I do roll back so it has to be something with this version and my pc maybe?
Perhaps updating triggered your firewall to block BYOND? Can you test with any firewalls you may have disabled?
http://puu.sh/842z4.png It just entirely crashes.
Definitely something denying access in a weird way causing Export() to choke and die.
Lummox JR changed status to 'Unverified'
I compiled using 506.1240 on windows 7 hosted by linux 506.1240 and it still chokes up and either crashes or returns nothing.
Is this running threaded or unthreaded? Recently I discovered two separate bugs with Export() in threaded mode that will be fixed in the next release.
It was running with threads on I believe.
I'm going to go ahead and mark this fixed, as I did discover two Export() bugs and need a fix record for the release notes anyway. If this recurs however in newer builds, feel free to post a new report.
Lummox JR resolved issue with message:
world.Export() could cause crashes in threaded worlds.
Still crashing or not returning. Here is a video I made hopefully it will be helpful. Make sure to watch it in 1080p.

https://www.youtube.com/watch?v=gc2D4wCyzWM