Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.ruby > #4615 > unrolled thread
| Started by | Luis Lavena <luislavena@gmail.com> |
|---|---|
| First post | 2011-05-16 07:37 -0700 |
| Last post | 2011-05-18 05:41 -0700 |
| Articles | 8 — 3 participants |
Back to article view | Back to comp.lang.ruby
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
Re: ruby.exe crashing on windows xp Luis Lavena <luislavena@gmail.com> - 2011-05-16 07:37 -0700
Re: ruby.exe crashing on windows xp "Glory L." <glory.lo778@gmail.com> - 2011-05-16 17:08 -0500
Re: ruby.exe crashing on windows xp Phillip Gawlowski <cmdjackryan@googlemail.com> - 2011-05-16 17:17 -0500
Re: ruby.exe crashing on windows xp Phillip Gawlowski <cmdjackryan@googlemail.com> - 2011-05-16 17:55 -0500
Re: ruby.exe crashing on windows xp "Glory L." <glory.lo778@gmail.com> - 2011-05-16 21:59 -0500
Re: ruby.exe crashing on windows xp Phillip Gawlowski <cmdjackryan@googlemail.com> - 2011-05-17 21:43 -0500
Re: ruby.exe crashing on windows xp "Glory L." <glory.lo778@gmail.com> - 2011-05-18 00:45 -0500
Re: ruby.exe crashing on windows xp Luis Lavena <luislavena@gmail.com> - 2011-05-18 05:41 -0700
| From | Luis Lavena <luislavena@gmail.com> |
|---|---|
| Date | 2011-05-16 07:37 -0700 |
| Subject | Re: ruby.exe crashing on windows xp |
| Message-ID | <14788a02-447e-4939-9c8d-2830cdf3ed35@k17g2000vbn.googlegroups.com> |
On May 15, 6:10 pm, "Glory L." <glory.lo...@gmail.com> wrote: > Luis Lavena wrote in post #998653: > > > Can you provide us what is the last sentences before the crash? > > I get this pop with the following: > ruby.exe has encountered a problem and needs to be close. We are sorry > for the inconvenience. > I didn't ask the popup information, perhaps wasn't clear but I'm interested in the output at the console before the crash. > > Normally Ruby will print out the offending line that triggered the > > crash before terminating itself. > > There is nothing printed in the development log (i.e. there is no stack > trace shown through 'rails server') so where do I go about culprit line? > The console, not the log file. > I am trying to get a simple app to test with carrierwave (File uploads) > and using Mongoid's Grid FS. Submitting the form often crashes it > If you don't mind, please create a sample application, outside your existing one that present this behavior and upload it to github, that will be more easy than copy and paste your entire source code from here and will provide a reproducible environment for us to help you better. You can upload the source code to GitHub for free. -- Luis Lavena
[toc] | [next] | [standalone]
| From | "Glory L." <glory.lo778@gmail.com> |
|---|---|
| Date | 2011-05-16 17:08 -0500 |
| Message-ID | <ef1b496ca7938e7be10dc534fe2c4c99@ruby-forum.com> |
| In reply to | #4615 |
Luis Lavena wrote in post #999023: > On May 15, 6:10pm, "Glory L." <glory.lo...@gmail.com> wrote: >> Luis Lavena wrote in post #998653: >> >> > Can you provide us what is the last sentences before the crash? >> >> I get this pop with the following: >> ruby.exe has encountered a problem and needs to be close. We are sorry >> for the inconvenience. >> > > I didn't ask the popup information, perhaps wasn't clear but I'm > interested in the output at the console before the crash. > >> > Normally Ruby will print out the offending line that triggered the >> > crash before terminating itself. >> >> There is nothing printed in the development log (i.e. there is no stack >> trace shown through 'rails server') so where do I go about culprit line? >> > > The console, not the log file. >> I am trying to get a simple app to test with carrierwave (File uploads) >> and using Mongoid's Grid FS. Submitting the form often crashes it >> > > If you don't mind, please create a sample application, outside your > existing one that present this behavior and upload it to github, that > will be more easy than copy and paste your entire source code from > here and will provide a reproducible environment for us to help you > better. > > You can upload the source code to GitHub for free. OK guys here it is. I am still very new to all this and I wish things would work right out of the box easier. Sigh. Anyhow, the console logs just shows the html templates being rendered and then crashing with no other messages. Simple app created to show crashing: Simply doing http://localhost:3000/videos/new very often crashes my machine. No need to submit anything. Clone and bundle install this. I have MongoDB running as a service on Windows. Created repository. https://github.com/glorylo/crash https://glorylo@github.com/glorylo/crash.git I suspect there might be some oddity in the setup but nothing obvious is screaming at me on this. There may be something stupidly done here but still I wish Ruby was more graceful and handle errors better. Let me know if you can reproduce this. -- Posted via http://www.ruby-forum.com/.
[toc] | [prev] | [next] | [standalone]
| From | Phillip Gawlowski <cmdjackryan@googlemail.com> |
|---|---|
| Date | 2011-05-16 17:17 -0500 |
| Message-ID | <BANLkTikyjhN974C8+C3z86=fJswjmHLBnw@mail.gmail.com> |
| In reply to | #4635 |
On Tue, May 17, 2011 at 12:08 AM, Glory L. <glory.lo778@gmail.com> wrote: > > https://github.com/glorylo/crash > https://glorylo@github.com/glorylo/crash.git For future reference: The second URL is *your private commit URL*. No need to share it with anyone, the public one (the first one), will do just fine. :) -- Phillip Gawlowski Though the folk I have met, (Ah, how soon!) they forget When I've moved on to some other place, There may be one or two, When I've played and passed through, Who'll remember my song or my face.
[toc] | [prev] | [next] | [standalone]
| From | Phillip Gawlowski <cmdjackryan@googlemail.com> |
|---|---|
| Date | 2011-05-16 17:55 -0500 |
| Message-ID | <BANLkTinsBFKyu_6QZU9+JqLP_8H4Bnp8Lw@mail.gmail.com> |
| In reply to | #4635 |
On Tue, May 17, 2011 at 12:08 AM, Glory L. <glory.lo778@gmail.com> wrote: > > OK guys here it is. I am still very new to all this and I wish things > would work right out of the box easier. Sigh. > > Anyhow, the console logs just shows the html templates being rendered > and then crashing with no other messages. > > Simple app created to show crashing: > > Simply doing http://localhost:3000/videos/new very often crashes my > machine. No need to submit anything. There are no routes matching /video in this test app, nor are there any controllers, models or views beyond what Rails' setup dumps in the file system. So, please, provide some *minimal* code to get working, so we might reproduce the crash. Just update your git repository, and we can git pull the changes. :) > I suspect there might be some oddity in the setup but nothing obvious is > screaming at me on this. There may be something stupidly done here but > still I wish Ruby was more graceful and handle errors better. A segmentation fault isn't under Ruby's control, and usually a result of misbehaving C code. -- Phillip Gawlowski Though the folk I have met, (Ah, how soon!) they forget When I've moved on to some other place, There may be one or two, When I've played and passed through, Who'll remember my song or my face.
[toc] | [prev] | [next] | [standalone]
| From | "Glory L." <glory.lo778@gmail.com> |
|---|---|
| Date | 2011-05-16 21:59 -0500 |
| Message-ID | <fac4e47d9f1074e7a106789b9b2e2444@ruby-forum.com> |
| In reply to | #4643 |
Phillip Gawlowski wrote in post #999137: Thanks Phillip. I just tried to clone. There should be those files as well, I did resources :videos in the routes.rb file. It might have been a timing issue as I forgot to add some files and you cloned it then. I am leaning towards something odd with this example as I now got a simple file upload running with Mongoid but the crash example is something I cannot pinpoint. -- Posted via http://www.ruby-forum.com/.
[toc] | [prev] | [next] | [standalone]
| From | Phillip Gawlowski <cmdjackryan@googlemail.com> |
|---|---|
| Date | 2011-05-17 21:43 -0500 |
| Message-ID | <BANLkTik9N95FRAFBMgW4kZcf8kPRvT4opg@mail.gmail.com> |
| In reply to | #4655 |
On Tue, May 17, 2011 at 4:59 AM, Glory L. <glory.lo778@gmail.com> wrote: > Phillip Gawlowski wrote in post #999137: > > Thanks Phillip. > > I just tried to clone. There should be those files as well, I did > resources :videos in the routes.rb file. It might have been a timing > issue as I forgot to add some files and you cloned it then. Indeed. An update made the source work. :) > I am > leaning towards something odd with this example as I now got a simple > file upload running with Mongoid but the crash example is something I > cannot pinpoint. Yes, unfortunately(?), I cannot reproduce the crash here, either, despite throwing the largest image file I had into the upload field. Though, what might hep us is if you grab Visual Studio C++ Express[1] (it's free, but requires registration after 30 days). This *should* includes a debugger which able to hook into a crashed Ruby process (I can't test that assumption since I have a Visual Studio Pro installation and they can't quite exist side-by-side, alas). That way, you can at least get a stack trace for us, in case this happens again with your actual Rails app. [1] http://www.microsoft.com/express/Downloads/ Alternatively, you can try to install the gems you need via plain old RubyGems instead of Bundler, since Bundler doesn't appear to pick up the DevKit and its compiler package. -- Phillip Gawlowski Though the folk I have met, (Ah, how soon!) they forget When I've moved on to some other place, There may be one or two, When I've played and passed through, Who'll remember my song or my face.
[toc] | [prev] | [next] | [standalone]
| From | "Glory L." <glory.lo778@gmail.com> |
|---|---|
| Date | 2011-05-18 00:45 -0500 |
| Message-ID | <1fc8774dc66995ae65c8c6e641d0167c@ruby-forum.com> |
| In reply to | #4713 |
It is too bad the problem is isolated to my machine :( It crashes rather easily with simply going to form page.. no need to submit anything. > Alternatively, you can try to install the gems you need via plain old > RubyGems instead of Bundler, since Bundler doesn't appear to pick up > the DevKit and its compiler package. I'll install VC++ express kit as a last resort if I come across this again. It seems the Ruby community is developed largely on Mac/linux and I wonder if I should get myself a Mac to avoid some of the hurdles I already have to jump through with Cygwin, MYSGit, etc. Thanks for your time, Phillip. -- Posted via http://www.ruby-forum.com/.
[toc] | [prev] | [next] | [standalone]
| From | Luis Lavena <luislavena@gmail.com> |
|---|---|
| Date | 2011-05-18 05:41 -0700 |
| Message-ID | <9599e0e5-11ab-4635-b7f8-0eec2d61da82@z13g2000yqg.googlegroups.com> |
| In reply to | #4713 |
On May 17, 10:43 pm, Phillip Gawlowski <cmdjackr...@googlemail.com> wrote: > > Yes, unfortunately(?), I cannot reproduce the crash here, either, > despite throwing the largest image file I had into the upload field. > I was not able either. > Though, what might hep us is if you grab Visual Studio C++ Express[1] > (it's free, but requires registration after 30 days). This *should* > includes a debugger which able to hook into a crashed Ruby process (I > can't test that assumption since I have a Visual Studio Pro > installation and they can't quite exist side-by-side, alas). That way, > you can at least get a stack trace for us, in case this happens again > with your actual Rails app. > > [1]http://www.microsoft.com/express/Downloads/ I would recommend start the server using GDB, which is part of the DevKit instead of making the user jump into the daunting task of building Ruby from source completely. On the command line, locate wheer you installed the DevKit and do: C:\Path\to\DevKit\devkitvars.bat That will make GCC and friends available, including GDB Then, CD into your application directory and do: gdb ruby.exe Which will load Ruby inside GDB, from there: run -S rails server Which will run ruby inside GDB, a little bit slower but similar to doing from the command line. When the exception occurs, GDB will show that the execution halted with a SEGFAULT or SEGV exception and will allow you capture the backtrace, just do "bt" and will obtain a list of the C part of Ruby that crashed. -- Luis Lavena
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.ruby
csiph-web