[MacRuby-devel] PDFKit status?

2010-12-05 Thread Yasu Imao
Hi, I'm wondering what the status of using PDFKit in MacRuby. Should it be fully usable now? I encountered a possible bug. framework 'cocoa' framework 'Quartz' path = pdfDoc = PDFDocument.alloc.initWithURL(NSURL.fileURLWithPath(path)) selections = pdfDoc.findString("the",withOptions:NSCa

Re: [MacRuby-devel] PDFKit status?

2010-12-05 Thread Matt Aimonetti
Can you please file a ticket (find the info on the website) and maybe try to reduce the problem to a few lines of code? Thanks, - Matt Sent from my iPhone On Dec 5, 2010, at 16:27, Yasu Imao wrote: > Hi, > > I'm wondering what the status of using PDFKit in MacRuby. Should it be fully > us

Re: [MacRuby-devel] PDFKit status?

2010-12-05 Thread Laurent Sansonetti
Hi Yasu, I tried your sample with a large pdf in my environment a few times and it never crashed. But I suspect the exception you're getting is due to a memory problem, maybe related to the GC. Can you try setting the GC_DISABLE environment variable to 1 when running the script? If it doesn't

Re: [MacRuby-devel] PDFKit status?

2010-12-05 Thread Yasu Imao
Hi Laurent and Matt, I tried the script with GC_DISABLE=1 (I'm not sure if this is how it should be, though), and with GC_DISABLE set to 1, the script run without any problem. As with my first post, 'sample.pdf' is a 12000 word academic journal article PDF in English. I also tried .map{|x| x.