Re: vibe.d - cannot allocate memory in static TLS block

2015-08-28 Thread ddos via Digitalmars-d
looks like too much global memory is allocated everything >1kb of global memory crashes with Error: Sys_LoadLibrary error: /home/vagrant/.callofduty4/plugin.failtest.tmp: cannot allocate memory in static TLS block Error: Failed to load the plugin /home/vagrant/.callofduty4/plugin.failtest.tmp!

Re: vibe.d - cannot allocate memory in static TLS block

2015-08-27 Thread ddos via Digitalmars-d
same result on windows

Re: vibe.d - cannot allocate memory in static TLS block

2015-08-27 Thread ddos via Digitalmars-d
-fpic was missing std.datetime didnt cause crash anymore after i added the fpic option import vibe.inet.url; import vibe.inet.urltransfer; import vibe.mail.smtp; import vibe.stream.counting; import vibe.stream.memory; import vibe.stream.operations; import vibe.stream.ssl; import vibe.stream.tls

Re: vibe.d - cannot allocate memory in static TLS block

2015-08-27 Thread ddos via Digitalmars-d
i think i started to narrow down the error, and i think the actual error is not in vibe.d, or atleast no only there since import vibe.d causes the shared lib to crash my program, i investigated the vibe.d module. it consists of all the vibe submodule + some modules of phobos. so i started comm

Re: vibe.d - cannot allocate memory in static TLS block

2015-08-27 Thread John Colvin via Digitalmars-d
On Thursday, 27 August 2015 at 15:40:20 UTC, ddos wrote: On Thursday, 27 August 2015 at 15:16:25 UTC, John Colvin wrote: I think your problem is that you need to initialise the D runtime. Perhaps adding a call to http://dlang.org/phobos/core_runtime.html#.Runtime.initialize inside OnInit will

Re: vibe.d - cannot allocate memory in static TLS block

2015-08-27 Thread ddos via Digitalmars-d
On Thursday, 27 August 2015 at 15:16:25 UTC, John Colvin wrote: I think your problem is that you need to initialise the D runtime. Perhaps adding a call to http://dlang.org/phobos/core_runtime.html#.Runtime.initialize inside OnInit will solve it for you. Also, remember to terminate the runtime

Re: vibe.d - cannot allocate memory in static TLS block

2015-08-27 Thread John Colvin via Digitalmars-d
On Thursday, 27 August 2015 at 13:08:18 UTC, ddos wrote: On Thursday, 27 August 2015 at 11:34:36 UTC, John Colvin wrote: P.S. this would be better asked in http://forum.dlang.org/group/learn or http://forum.rejectedsoftware.com made a thread before on the vibe forum too, see here http://foru

Re: vibe.d - cannot allocate memory in static TLS block

2015-08-27 Thread ddos via Digitalmars-d
removing the import vibe.d is enough to make it work as a shared library

Re: vibe.d - cannot allocate memory in static TLS block

2015-08-27 Thread ddos via Digitalmars-d
On Thursday, 27 August 2015 at 11:34:36 UTC, John Colvin wrote: P.S. this would be better asked in http://forum.dlang.org/group/learn or http://forum.rejectedsoftware.com made a thread before on the vibe forum too, see here http://forum.rejectedsoftware.com/groups/rejectedsoftware.vibed/threa

Re: vibe.d - cannot allocate memory in static TLS block

2015-08-27 Thread John Colvin via Digitalmars-d
On Thursday, 27 August 2015 at 09:06:54 UTC, ddos wrote: when i import the vibe.d module my project it dies with the error message "cannot allocate memory in static TLS block" compiled as dynamic library on debian x86 "name": "alice", "description": "A minimal D application.", "copyright": "Co

Re: vibe.d - cannot allocate memory in static TLS block

2015-08-27 Thread John Colvin via Digitalmars-d
On Thursday, 27 August 2015 at 11:33:02 UTC, John Colvin wrote: On Thursday, 27 August 2015 at 09:06:54 UTC, ddos wrote: when i import the vibe.d module my project it dies with the error message "cannot allocate memory in static TLS block" compiled as dynamic library on debian x86 "name": "al

Re: vibe.d - cannot allocate memory in static TLS block

2015-08-27 Thread ddos via Digitalmars-d
On Thursday, 27 August 2015 at 09:10:59 UTC, Rikki Cattermole wrote: Perhaps try 0.7.24 which is the last stable release (0.7.25 is in alpha according to git tags). thx rikki, but sadly the newer version didn't solve my problems

Re: vibe.d - cannot allocate memory in static TLS block

2015-08-27 Thread Rikki Cattermole via Digitalmars-d
On 27/08/15 9:06 PM, ddos wrote: when i import the vibe.d module my project it dies with the error message "cannot allocate memory in static TLS block" compiled as dynamic library on debian x86 "name": "alice", "description": "A minimal D application.", "copyright": "Copyright © 2015, dom", "au

vibe.d - cannot allocate memory in static TLS block

2015-08-27 Thread ddos via Digitalmars-d
when i import the vibe.d module my project it dies with the error message "cannot allocate memory in static TLS block" compiled as dynamic library on debian x86 "name": "alice", "description": "A minimal D application.", "copyright": "Copyright © 2015, dom", "authors": ["dom"], "targetType": "d