Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Oct 30 23:43
    straight-shoota closed #9783
  • Oct 30 23:36
    straight-shoota labeled #9789
  • Oct 30 23:36
    straight-shoota labeled #9789
  • Oct 30 23:31
    straight-shoota edited #9867
  • Oct 30 23:31
    straight-shoota labeled #9867
  • Oct 30 23:31
    straight-shoota labeled #9867
  • Oct 30 23:31
    straight-shoota labeled #9867
  • Oct 30 23:31
    straight-shoota opened #9867
  • Oct 30 22:51
    straight-shoota edited #9866
  • Oct 30 22:51
    straight-shoota labeled #9866
  • Oct 30 22:51
    straight-shoota labeled #9866
  • Oct 30 22:51
    straight-shoota opened #9866
  • Oct 30 22:08
    straight-shoota labeled #9804
  • Oct 30 22:08
    straight-shoota labeled #9804
  • Oct 30 21:38
    straight-shoota labeled #9828
  • Oct 30 21:38
    straight-shoota labeled #9828
  • Oct 30 20:51
    bcardiff labeled #9865
  • Oct 30 20:51
    bcardiff labeled #9865
  • Oct 30 20:51
    bcardiff opened #9865
  • Oct 30 18:21
    bcardiff synchronize #9864
George Dietrich
@Blacksmoke16
nvm, obs are
can you share the error?
emanzx
@emanzx
yes..
Im wraping in rescue this is the backtrace I got [Sender] Exception backtrace:["crystal_sigfault_handler", "crystal_sigfault_handler", "__crystal_sigfault_handler", "Fiber::swapcontext<Pointer(Fiber::Context), Pointer(Fiber::Context)>:Nil"]
George Dietrich
@Blacksmoke16
and whats the exception message?
looks like you got a segfault, not an overflow?
emanzx
@emanzx
hmm..
[Sender] Exception:Arithmetic overflow
[Sender] Exception massage:Arithmetic overflow
[Sender] Exception backtrace:["crystal_sigfault_handler", "crystal_sigfault_handler", "__crystal_sigfault_handler", "Fiber::swapcontext<Pointer(Fiber::Context), Pointer(Fiber::Context)>:Nil"]
George Dietrich
@Blacksmoke16
ah
yea idk
emanzx
@emanzx
maybe I just remove the rescue
Unhandled exception in spawn: Arithmetic overflow (DB::Error)
from crystal_sigfault_handler
from
crystal_sigfault_handler
from __crystal_sigfault_handler
from Fiber::swapcontext<Pointer(Fiber::Context), Pointer(Fiber::Context)>:Nil
emanzx
@emanzx
do I need to do something to increase the batch size? in my OS..
George Dietrich
@Blacksmoke16
:shrug:
emanzx
@emanzx
nvm.. this mean its too much for me.. haha.. sticking with 1000 batch size..
From IRC (bridge bot)
@FromIRC
<mps> ok, crystal on alpine is fixed by rebuilding 'gc' with ./configure option '--disable-parallel-mark'
<mps> but now with 'make compiler_spec' it sigfaults with '..Invalid memory access (signal 11) at address 0x7f72e8253378'
<mps> jhass: sorry to annoy you but I see that the 'make spec' is 'disabled' on Arch linux. did you tried it and if does it shows these problem
From IRC (bridge bot)
@FromIRC
<jhass> mps: it's split on arch and CI because it consumes too much memory for the build environments. I don't think anybody reevaluated that recently
<jhass> --disable-parallel-mark seems like a bad solution, I guess it simply disables any threading done by libgc
<mps> jhass: that option fixes some other packages from hangs, not only crystal
<jhass> I'm just saying it seems like a crude workaround rather than a fix
<mps> we will see if the new musl 1.2.2 will have something better for this
<jhass> I'm sure it makes things considerably slower
<mps> well, looks like 'gc' have more serious issues than this, according to bug reports
<mps> main issue 'gc' doesn't use MT-forks properly, I think
From IRC (bridge bot)
@FromIRC
<mps> and not only 'gc' but a lot of software around
<mps> btw, how core crystal developers can be contacted, except github where I don't have account (and will not open it)
George Dietrich
@Blacksmoke16
maybe the forums?
From IRC (bridge bot)
@FromIRC
<mps> @Blacksmoke16: yes, I thought about it, I'm subscribed there
From IRC (bridge bot)
@FromIRC
<avane> hi all, I'm trying to use ENV, but when I do I seem to get the following error: https://bin.snopyta.org/?f95745cc53c16981#2sVHRuA7hdV4oDVjydi2gxXiBAmD9PZ3ojYFRZJCWbXd . is this a known issue?
George Dietrich
@Blacksmoke16
Can you share your code
From IRC (bridge bot)
@FromIRC
<avane> ENV["LANG"] ||= "en_US.utf8"
George Dietrich
@Blacksmoke16
Oh lol, that's it?
The error points to something with Time
So...has to be more to it
From IRC (bridge bot)
@FromIRC
<avane> yeah, that's all. program compiles fine without that one line
George Dietrich
@Blacksmoke16
what crystal version?
From IRC (bridge bot)
@FromIRC
<avane> for the record, I'm using Crystal 0.35.1, LLVM: 10.0.1
George Dietrich
@Blacksmoke16
iirc this came up before but idk if it ever was figured out. could try clearing your cache rm -rf ~/.cache/crystal
and/or how did you install crystal?
From IRC (bridge bot)
@FromIRC
<avane> ah it seems that the crystal-env shard was causing the issue. also I compiled crystal from source, I use portage.
George Dietrich
@Blacksmoke16
that would do it
Julien Reichardt
@j8r
This shard is old, and does not provide much.
Better copying a little chunk of code than adding a dependency
MapMaths
@MapMaths
Hi! I'm just learning Crystal. How to run Crystal in VSCode?
George Dietrich
@Blacksmoke16
like via a run button?
assuming you can open a terminal just do crystal src/my_app.cr
George Dietrich
@Blacksmoke16
hm?
MapMaths
@MapMaths
Sorry