Discussion:
[Skim-app-develop] Skim beach ball?
Christiaan Hofman
2008-01-24 21:18:29 UTC
Permalink
Adam, can you confirm that the PDF at the following link beach balls
Skim:
<http://penguin.comms.unsw.edu.au/~ben/pub/page25-watermarked.pdf>

Christiaan
Adam R. Maxwell
2008-01-24 21:28:11 UTC
Permalink
Post by Christiaan Hofman
Adam, can you confirm that the PDF at the following link beach balls
<http://penguin.comms.unsw.edu.au/~ben/pub/page25-watermarked.pdf>
Yeah, it sure does. Here's part of the sample; looks like it's trying
to draw a thumbnail. Preview opens it just fine, although the file
looks pretty weird. Does it beachball on Tiger also?

787 -[SKMainWindowController objectInThumbnailsAtIndex:]
787 -[PDFPage(SKExtensions) thumbnailWithSize:forBox:readingBarRect:]
787 -[PDFPage(SKExtensions)
thumbnailWithSize:forBox:shadowBlurRadius:shadowOffset:readingBarRect:]
787 -[PDFPage drawWithBox:]
787 -[PDFPage(PDFPagePrivate) drawWithBox:inContext:]
787 CGContextDrawPDFPage
787 CGPDFDrawingContextDraw
787 CGPDFScannerScan
787 read_objects
787 handle_xname
787 op_Do
787 CGPDFDrawingContextDrawImage
787 CGContextDrawImage
787 ripc_DrawImage
787 ripc_AcquireImage
787 CGSImageDataLock
787 img_data_lock
787 img_interpolate_read
673 resample_band
673 resample_band
114 img_interpolate_read
Adam R. Maxwell
2008-01-24 21:44:24 UTC
Permalink
Post by Adam R. Maxwell
Post by Christiaan Hofman
Adam, can you confirm that the PDF at the following link beach balls
<http://penguin.comms.unsw.edu.au/~ben/pub/page25-watermarked.pdf>
Yeah, it sure does. Here's part of the sample; looks like it's trying
to draw a thumbnail. Preview opens it just fine, although the file
looks pretty weird. Does it beachball on Tiger also?
787 -[SKMainWindowController objectInThumbnailsAtIndex:]
787 -[PDFPage(SKExtensions)
thumbnailWithSize:forBox:readingBarRect:]
787 -[PDFPage(SKExtensions)
thumbnailWithSize:forBox:shadowBlurRadius:shadowOffset:readingBarRect
:]
787 -[PDFPage drawWithBox:]
787 -[PDFPage(PDFPagePrivate) drawWithBox:inContext:]
787 CGContextDrawPDFPage
I really don't understand this. FVPDFIcon draws this thing just fine,
and it uses CGContextDrawPDFPage. If I call

CGContextDrawPDFPage([[NSGraphicsContext currentContext]
graphicsPort], [self pageRef]);

in thumbnailWithSize:..., I see the same hang, so it's not something
specific to PDFPage.
Christiaan Hofman
2008-01-24 21:55:51 UTC
Permalink
Post by Adam R. Maxwell
Post by Adam R. Maxwell
Post by Christiaan Hofman
Adam, can you confirm that the PDF at the following link beach balls
<http://penguin.comms.unsw.edu.au/~ben/pub/page25-watermarked.pdf>
Yeah, it sure does. Here's part of the sample; looks like it's trying
to draw a thumbnail. Preview opens it just fine, although the file
looks pretty weird. Does it beachball on Tiger also?
787 -[SKMainWindowController objectInThumbnailsAtIndex:]
787 -[PDFPage(SKExtensions)
thumbnailWithSize:forBox:readingBarRect:]
787 -[PDFPage(SKExtensions)
thumbnailWithSize:forBox:shadowBlurRadius:shadowOffset:readingBarRect
:]
787 -[PDFPage drawWithBox:]
787 -[PDFPage(PDFPagePrivate) drawWithBox:inContext:]
787 CGContextDrawPDFPage
I really don't understand this. FVPDFIcon draws this thing just fine,
and it uses CGContextDrawPDFPage. If I call
CGContextDrawPDFPage([[NSGraphicsContext currentContext]
graphicsPort], [self pageRef]);
in thumbnailWithSize:..., I see the same hang, so it's not something
specific to PDFPage.
I would expect that PDFPage does essentially the same thing. Perhaps
it's some option in the graphics context?

I really wonder how Preview draws its thumbnails, because it does not
seem to have as serious problems with some files.

Christiaan
Adam R. Maxwell
2008-01-24 22:14:34 UTC
Permalink
Post by Christiaan Hofman
I would expect that PDFPage does essentially the same thing. Perhaps
it's some option in the graphics context?
Could be, or the page was screwed up by PDFDocument somehow. A
problem with the graphics context is more likely, but drawing to an
NSBitmapImageRep has the same problem.
Post by Christiaan Hofman
I really wonder how Preview draws its thumbnails, because it does not
seem to have as serious problems with some files.
It's now using PDFThumbnailView, I think, but I've no idea what that
does internally. It's fast, but the thumbnail have a pretty small
maximum size. They might be using CGLayers or something.
Christiaan Hofman
2008-01-24 22:23:41 UTC
Permalink
Post by Adam R. Maxwell
Post by Christiaan Hofman
I would expect that PDFPage does essentially the same thing. Perhaps
it's some option in the graphics context?
Could be, or the page was screwed up by PDFDocument somehow. A
problem with the graphics context is more likely, but drawing to an
NSBitmapImageRep has the same problem.
Post by Christiaan Hofman
I really wonder how Preview draws its thumbnails, because it does not
seem to have as serious problems with some files.
It's now using PDFThumbnailView, I think, but I've no idea what that
does internally. It's fast, but the thumbnail have a pretty small
maximum size. They might be using CGLayers or something.
BTW, can you log into the radar site? I tried to update my bugreport
on this (or a similar) issue. But I got a "account does not exist"
error.

Christiaan
Adam R. Maxwell
2008-01-24 22:36:04 UTC
Permalink
Post by Christiaan Hofman
Post by Adam R. Maxwell
Post by Christiaan Hofman
I would expect that PDFPage does essentially the same thing. Perhaps
it's some option in the graphics context?
Could be, or the page was screwed up by PDFDocument somehow. A
problem with the graphics context is more likely, but drawing to an
NSBitmapImageRep has the same problem.
Here's another oddity: I thought I'd try loading a CGPDFDocument
manually and drawing the first page, but in the thumbnail method -
[PDFPage document] returns nil. I don't see how that is even possible.
Post by Christiaan Hofman
Post by Adam R. Maxwell
Post by Christiaan Hofman
I really wonder how Preview draws its thumbnails, because it does not
seem to have as serious problems with some files.
It's now using PDFThumbnailView, I think, but I've no idea what that
does internally. It's fast, but the thumbnail have a pretty small
maximum size. They might be using CGLayers or something.
BTW, can you log into the radar site? I tried to update my bugreport
on this (or a similar) issue. But I got a "account does not exist"
error.
Working okay here. Maybe a keychain problem?
Christiaan Hofman
2008-01-24 22:43:25 UTC
Permalink
Post by Adam R. Maxwell
Post by Christiaan Hofman
Post by Adam R. Maxwell
Post by Christiaan Hofman
I would expect that PDFPage does essentially the same thing. Perhaps
it's some option in the graphics context?
Could be, or the page was screwed up by PDFDocument somehow. A
problem with the graphics context is more likely, but drawing to an
NSBitmapImageRep has the same problem.
Here's another oddity: I thought I'd try loading a CGPDFDocument
manually and drawing the first page, but in the thumbnail method -
[PDFPage document] returns nil. I don't see how that is even
possible.
Post by Christiaan Hofman
Post by Adam R. Maxwell
Post by Christiaan Hofman
I really wonder how Preview draws its thumbnails, because it does not
seem to have as serious problems with some files.
It's now using PDFThumbnailView, I think, but I've no idea what that
does internally. It's fast, but the thumbnail have a pretty small
maximum size. They might be using CGLayers or something.
BTW, can you log into the radar site? I tried to update my bugreport
on this (or a similar) issue. But I got a "account does not exist"
error.
Working okay here. Maybe a keychain problem?
No, I explicitly typed it even. And my developer account (which is
the same) has no problem. Also their site looks like a mess. do they
have several/new sites? I tried bugreport.apple.com.

Christiaan
Adam R. Maxwell
2008-01-24 22:51:45 UTC
Permalink
Post by Christiaan Hofman
Post by Adam R. Maxwell
Post by Christiaan Hofman
Post by Adam R. Maxwell
Post by Christiaan Hofman
I would expect that PDFPage does essentially the same thing. Perhaps
it's some option in the graphics context?
Could be, or the page was screwed up by PDFDocument somehow. A
problem with the graphics context is more likely, but drawing to an
NSBitmapImageRep has the same problem.
Here's another oddity: I thought I'd try loading a CGPDFDocument
manually and drawing the first page, but in the thumbnail method -
[PDFPage document] returns nil. I don't see how that is even
possible.
Post by Christiaan Hofman
Post by Adam R. Maxwell
Post by Christiaan Hofman
I really wonder how Preview draws its thumbnails, because it does not
seem to have as serious problems with some files.
It's now using PDFThumbnailView, I think, but I've no idea what that
does internally. It's fast, but the thumbnail have a pretty small
maximum size. They might be using CGLayers or something.
BTW, can you log into the radar site? I tried to update my bugreport
on this (or a similar) issue. But I got a "account does not exist"
error.
Working okay here. Maybe a keychain problem?
No, I explicitly typed it even. And my developer account (which is
the same) has no problem. Also their site looks like a mess. do they
have several/new sites? I tried bugreport.apple.com.
No, I used bugreport.apple.com, and the site looks the same as it has
for the last few months. I only tried OmniWeb 5.6.
Christiaan Hofman
2008-01-24 23:00:26 UTC
Permalink
Post by Adam R. Maxwell
Post by Christiaan Hofman
Post by Adam R. Maxwell
Post by Christiaan Hofman
Post by Adam R. Maxwell
Post by Christiaan Hofman
I would expect that PDFPage does essentially the same thing. Perhaps
it's some option in the graphics context?
Could be, or the page was screwed up by PDFDocument somehow. A
problem with the graphics context is more likely, but drawing to an
NSBitmapImageRep has the same problem.
Here's another oddity: I thought I'd try loading a CGPDFDocument
manually and drawing the first page, but in the thumbnail method -
[PDFPage document] returns nil. I don't see how that is even possible.
Post by Christiaan Hofman
Post by Adam R. Maxwell
Post by Christiaan Hofman
I really wonder how Preview draws its thumbnails, because it does not
seem to have as serious problems with some files.
It's now using PDFThumbnailView, I think, but I've no idea what that
does internally. It's fast, but the thumbnail have a pretty small
maximum size. They might be using CGLayers or something.
BTW, can you log into the radar site? I tried to update my
bugreport
on this (or a similar) issue. But I got a "account does not exist"
error.
Working okay here. Maybe a keychain problem?
No, I explicitly typed it even. And my developer account (which is
the same) has no problem. Also their site looks like a mess. do they
have several/new sites? I tried bugreport.apple.com.
No, I used bugreport.apple.com, and the site looks the same as it has
for the last few months. I only tried OmniWeb 5.6.
OK, in Safari it works.

Christiaan
Christiaan Hofman
2008-01-25 12:25:44 UTC
Permalink
Post by Adam R. Maxwell
Post by Christiaan Hofman
I would expect that PDFPage does essentially the same thing. Perhaps
it's some option in the graphics context?
Could be, or the page was screwed up by PDFDocument somehow. A
problem with the graphics context is more likely, but drawing to an
NSBitmapImageRep has the same problem.
And when Skim uses FileView's approach for drawing, does it still
give problems? then we know if the problem is in the graphics context
or PDFDocument.

Christiaan
Post by Adam R. Maxwell
Post by Christiaan Hofman
I really wonder how Preview draws its thumbnails, because it does not
seem to have as serious problems with some files.
It's now using PDFThumbnailView, I think, but I've no idea what that
does internally. It's fast, but the thumbnail have a pretty small
maximum size. They might be using CGLayers or something.
----------------------------------------------------------------------
---
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
skim-app-develop mailing list
https://lists.sourceforge.net/lists/listinfo/skim-app-develop
Adam R. Maxwell
2008-01-25 16:10:27 UTC
Permalink
Post by Christiaan Hofman
Post by Adam R. Maxwell
Post by Christiaan Hofman
I would expect that PDFPage does essentially the same thing. Perhaps
it's some option in the graphics context?
Could be, or the page was screwed up by PDFDocument somehow. A
problem with the graphics context is more likely, but drawing to an
NSBitmapImageRep has the same problem.
And when Skim uses FileView's approach for drawing, does it still
give problems? then we know if the problem is in the graphics context
or PDFDocument.
I was able to create a CGPDFDocument by using a delayed perform so the
PDFPage had a document. Drawing to the current context had the same
problem, but I didn't try creating a CGBitmapContext and drawing to
that. Maybe creating an NSPDFImageRep would work, but I doubt it.
Christiaan Hofman
2008-01-24 21:53:20 UTC
Permalink
That's the strange thing. This one works fine on Tiger. Unlike the
other problem (which was also a thumbnail drawing problem, but Tiger
only).

And it probably looks weird as the person who send it edited it for
privacy reasons or something.

Christiaan
Post by Adam R. Maxwell
Post by Christiaan Hofman
Adam, can you confirm that the PDF at the following link beach balls
<http://penguin.comms.unsw.edu.au/~ben/pub/page25-watermarked.pdf>
Yeah, it sure does. Here's part of the sample; looks like it's trying
to draw a thumbnail. Preview opens it just fine, although the file
looks pretty weird. Does it beachball on Tiger also?
787 -[SKMainWindowController objectInThumbnailsAtIndex:]
787 -[PDFPage(SKExtensions)
thumbnailWithSize:forBox:readingBarRect:]
787 -[PDFPage(SKExtensions)
]
787 -[PDFPage drawWithBox:]
787 -[PDFPage(PDFPagePrivate) drawWithBox:inContext:]
787 CGContextDrawPDFPage
787 CGPDFDrawingContextDraw
787 CGPDFScannerScan
787 read_objects
787 handle_xname
787 op_Do
787 CGPDFDrawingContextDrawImage
787 CGContextDrawImage
787 ripc_DrawImage
787 ripc_AcquireImage
787 CGSImageDataLock
787 img_data_lock
787 img_interpolate_read
673 resample_band
673 resample_band
114 img_interpolate_read
----------------------------------------------------------------------
---
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
skim-app-develop mailing list
https://lists.sourceforge.net/lists/listinfo/skim-app-develop
Loading...