PcgRandom crashes the application.

User avatar
Sane
Member
 
Posts: 103
Joined: Tue Jun 17, 2014 09:31
GitHub: mt-sane
In-game: Sane

PcgRandom crashes the application.

by Sane » Mon Aug 10, 2015 12:54

Hi there,

when using PcgRandom's next function the application crashes.

Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
print ("----- Test starts.")
local pcg = PcgRandom(os.time())
print ("----- generated pcg.")
local value = pcg:next();
print ("----- Help me I am never printed!")
print ("----- value="..tostring(value)..".")


result:
+ debug.txt


using minetest-0.4.12-7a6e4dc (sfan5's build)
on windows.

Steps to reproduce:
o Set ... games\minimal\mods\test\init.lua to the code mentioned above.
o Run any game
Trying to stay me.
 

est31
Member
 
Posts: 172
Joined: Mon Dec 29, 2014 01:49

Re: PcgRandom crashes the application.

by est31 » Mon Aug 10, 2015 13:13

 


Return to Minetest Problems

Who is online

Users browsing this forum: No registered users and 4 guests

cron