Coder Social home page Coder Social logo

pep's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

pep's Issues

Found another crash for the same PDF in issue #2

I found another crash for the same PDF in issue #2, here is the PDF iasj.pdf, and the errors below:

2021-01-17 14:34:34.603281+0800 PEP[26099:2849884] -[NSConcreteMutableData substringWithRange:]: unrecognized selector sent to instance 0x600001985f20
2021-01-17 14:34:34.604040+0800 PEP[26099:2849884] [General] -[NSConcreteMutableData substringWithRange:]: unrecognized selector sent to instance 0x600001985f20
2021-01-17 14:34:34.607541+0800 PEP[26099:2849884] [General] (
	0   CoreFoundation                      0x00007fff204b86af __exceptionPreprocess + 242
	1   libobjc.A.dylib                     0x00007fff201f03c9 objc_exception_throw + 48
	2   CoreFoundation                      0x00007fff2053ac85 -[NSObject(NSObject) __retain_OA] + 0
	3   CoreFoundation                      0x00007fff2042007d ___forwarding___ + 1467
	4   CoreFoundation                      0x00007fff2041fa38 _CF_forwarding_prep_0 + 120
	5   PEP                                 0x000000010c22b103 -[GInterpreter layoutStrings:context:tj:prevTj:] + 1155
	6   PEP                                 0x000000010c22d538 -[GInterpreter eval_Tj_Command:command:] + 200
	7   PEP                                 0x000000010c22deea -[GInterpreter eval:] + 698
	8   PEP                                 0x000000010c23e146 -[GPage render:] + 1078
	9   PEP                                 0x000000010c21ff87 -[GDocument drawRect:] + 1815
	10  AppKit                              0x00007fff22dc9e63 _NSViewDrawRect + 139
	11  AppKit                              0x00007fff234f5536 -[NSView _recursive:displayRectIgnoringOpacity:inContext:stopAtLayerBackedViews:] + 2115
	12  AppKit                              0x00007fff22dc9489 -[NSView(NSLayerKitGlue) _drawViewBackingLayer:inContext:drawingHandler:] + 967
	13  AppKit                              0x00007fff22ecffd1 -[_NSBackingLayerContents drawLayer:inContext:] + 152
	14  QuartzCore                          0x00007fff26bfbfb1 -[CALayer drawInContext:] + 284
	15  AppKit                              0x00007fff22ecfc3c -[_NSTiledLayer drawTile:inContext:] + 590
	16  AppKit                              0x00007fff22ecf975 -[_NSTiledLayerContents drawLayer:inContext:] + 210
	17  QuartzCore                          0x00007fff26bfbfb1 -[CALayer drawInContext:] + 284
	18  QuartzCore                          0x00007fff26bf9101 CABackingStoreUpdate_ + 190
	19  QuartzCore                          0x00007fff26c5e279 ___ZN2CA5Layer8display_Ev_block_invoke + 53
	20  QuartzCore                          0x00007fff26bf866c -[CALayer _display] + 2183
	21  AppKit                              0x00007fff22ecf87f -[NSTileLayer display] + 60
	22  AppKit                              0x00007fff22ecdfec -[_NSTiledLayerContents update:shouldCallPrepareContent:] + 4224
	23  AppKit                              0x00007fff22eccd55 -[_NSTiledLayer display] + 334
	24  QuartzCore                          0x00007fff26bf7660 _ZN2CA5Layer17display_if_neededEPNS_11TransactionE + 874
	25  QuartzCore                          0x00007fff26d3773b _ZN2CA7Context18commit_transactionEPNS_11TransactionEdPd + 517
	26  QuartzCore                          0x00007fff26bd8fd5 _ZN2CA11Transaction6commitEv + 783
	27  AppKit                              0x00007fff22dde272 __62+[CATransaction(NSCATransaction) NS_setFlushesWithDisplayLink]_block_invoke + 285
	28  AppKit                              0x00007fff2352d085 ___NSRunLoopObserverCreateWithHandler_block_invoke + 41
	29  CoreFoundation                      0x00007fff2043ddad __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 23
	30  CoreFoundation                      0x00007fff2043dc3d __CFRunLoopDoObservers + 549
	31  CoreFoundation                      0x00007fff2043d0ed __CFRunLoopRun + 838
	32  CoreFoundation                      0x00007fff2043c6ce CFRunLoopRunSpecific + 563
	33  HIToolbox                           0x00007fff286c16d0 RunCurrentEventLoopInMode + 292
	34  HIToolbox                           0x00007fff286c1322 ReceiveNextEventCommon + 283
	35  HIToolbox                           0x00007fff286c11ef _BlockUntilNextEventMatchingListInModeWithFilter + 64
	36  AppKit                              0x00007fff22c59de9 _DPSNextEvent + 883
	37  AppKit                              0x00007fff22c585af -[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 1366
	38  AppKit                              0x00007fff22c4ab0a -[NSApplication run] + 586
	39  AppKit                              0x00007fff22c1edf2 NSApplicationMain + 816
	40  PEP                                 0x000000010c22a63f main + 47
	41  libdyld.dylib                       0x00007fff20361621 start + 1
)

Text rendering mess up

Text rendering is mess up because font file not correctly handling (Need to handle WinAnsiEncoding for Type1 font on macOS). raft.pdf

Not visible the document structure

Please, i open pdf document on my mac, and not visualization of the structure of the document.
Presentation a white page.

The document is a Fiscal Note Electronic "NFe of Brazil"

Attached image file with the failure
Captura de Tela 2021-08-06 às 00 01 15
Captura de Tela 2021-08-06 às 00 02 01
.

Not showing much of my PDF

Hi, I'm not sure about PEP. I have an editable PDF that hardly shows in PEP
Lots of blank and lines.

Is it supposed to work?
thanks

Does not open file

Hey there,

first of all: UI looks great. I like it and I hope PEP gehts more and more sophisticated over time.

Despite your notice to open "simple" PDFs I went full force with a term paper I created with LaTeX which it does not seem to even open.

Maybe you wann a take a look at that. Maybe it's just something simple. Who knows.

Hausarbeit___HSTheo.pdf

Crash while rendering a specific page

Crash while rendering page 4 with this PDF.
3D_Silhouette_Rendering_Algorithms_using_Vectorisa.pdf

2021-01-23 11:23:31.597114+0800 PEP[6951:461843] render page: 3
2021-01-23 11:23:31.597255+0800 PEP[6951:461843] page rect: {{0, 0}, {595, 842}}
2021-01-23 11:23:31.842262+0800 PEP[6951:461843] [General] *** NSAllocateMemoryPages(18446744073709551615) failed
2021-01-23 11:23:31.847765+0800 PEP[6951:461843] [General] (
	0   CoreFoundation                      0x00007fff204fb6af __exceptionPreprocess + 242
	1   libobjc.A.dylib                     0x00007fff202333c9 objc_exception_throw + 48
	2   Foundation                          0x00007fff212582f4 NSAllocateMemoryPages + 169
	3   Foundation                          0x00007fff211b61c9 -[_NSPlaceholderData initWithBytes:length:copy:deallocator:] + 143
	4   Foundation                          0x00007fff211ba239 -[NSData(NSData) initWithBytes:length:] + 37
	5   Foundation                          0x00007fff211daf6d +[NSData(NSData) dataWithBytes:length:] + 40
	6   PEP                                 0x0000000107da4c22 -[GLexer getArray] + 418
	7   PEP                                 0x0000000107da5ef2 -[GLexer nextToken] + 2402
	8   PEP                                 0x0000000107d93594 -[GParser parseNextObject] + 484
	9   PEP                                 0x0000000107d9df21 -[GInterpreter parseCommands] + 2321
	10  PEP                                 0x0000000107d9feb8 -[GInterpreter eval:] + 72
	11  PEP                                 0x0000000107db0b16 -[GPage render:] + 1078
	12  PEP                                 0x0000000107d90d67 -[GDocument drawRect:] + 1815
	13  AppKit                              0x00007fff22e0ce63 _NSViewDrawRect + 139
	14  AppKit                              0x00007fff23538536 -[NSView _recursive:displayRectIgnoringOpacity:inContext:stopAtLayerBackedViews:] + 2115
	15  AppKit                              0x00007fff22e0c489 -[NSView(NSLayerKitGlue) _drawViewBackingLayer:inContext:drawingHandler:] + 967
	16  AppKit                              0x00007fff22f12fd1 -[_NSBackingLayerContents drawLayer:inContext:] + 152
	17  QuartzCore                          0x00007fff26c3efb1 -[CALayer drawInContext:] + 284
	18  AppKit                              0x00007fff22f12c3c -[_NSTiledLayer drawTile:inContext:] + 590
	19  AppKit                              0x00007fff22f12975 -[_NSTiledLayerContents drawLayer:inContext:] + 210
	20  QuartzCore                          0x00007fff26c3efb1 -[CALayer drawInContext:] + 284
	21  QuartzCore                          0x00007fff26c3c101 CABackingStoreUpdate_ + 190
	22  QuartzCore                          0x00007fff26ca1279 ___ZN2CA5Layer8display_Ev_block_invoke + 53
	23  QuartzCore                          0x00007fff26c3b66c -[CALayer _display] + 2183
	24  AppKit                              0x00007fff22f1287f -[NSTileLayer display] + 60
	25  AppKit                              0x00007fff22f10fec -[_NSTiledLayerContents update:shouldCallPrepareContent:] + 4224
	26  AppKit                              0x00007fff22f0fd55 -[_NSTiledLayer display] + 334
	27  QuartzCore                          0x00007fff26c3a660 _ZN2CA5Layer17display_if_neededEPNS_11TransactionE + 874
	28  QuartzCore                          0x00007fff26d7a73b _ZN2CA7Context18commit_transactionEPNS_11TransactionEdPd + 517
	29  QuartzCore                          0x00007fff26c1bfd5 _ZN2CA11Transaction6commitEv + 783
	30  AppKit                              0x00007fff22e21272 __62+[CATransaction(NSCATransaction) NS_setFlushesWithDisplayLink]_block_invoke + 285
	31  AppKit                              0x00007fff23570085 ___NSRunLoopObserverCreateWithHandler_block_invoke + 41
	32  CoreFoundation                      0x00007fff20480dad __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 23
	33  CoreFoundation                      0x00007fff20480c3d __CFRunLoopDoObservers + 549
	34  CoreFoundation                      0x00007fff204800ed __CFRunLoopRun + 838
	35  CoreFoundation                      0x00007fff2047f6ce CFRunLoopRunSpecific + 563
	36  HIToolbox                           0x00007fff287046d0 RunCurrentEventLoopInMode + 292
	37  HIToolbox                           0x00007fff287044cc ReceiveNextEventCommon + 709
	38  HIToolbox                           0x00007fff287041ef _BlockUntilNextEventMatchingListInModeWithFilter + 64
	39  AppKit                              0x00007fff22c9cde9 _DPSNextEvent + 883
	40  AppKit                              0x00007fff22c9b5af -[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 1366
	41  AppKit                              0x00007fff233afcaa -[NSScroller trackKnob:] + 1601
	42  AppKit                              0x00007fff233b0bb2 -[NSScroller mouseDown:] + 687
	43  AppKit                              0x00007fff22eb78a4 -[NSWindow(NSEventRouting) _handleMouseDownEvent:isDelayedEvent:] + 4956
	44  AppKit                              0x00007fff22e27028 -[NSWindow(NSEventRouting) _reallySendEvent:isDelayedEvent:] + 2594
	45  AppKit                              0x00007fff22e263ea -[NSWindow(NSEventRouting) sendEvent:] + 347
	46  AppKit                              0x00007fff22e247d4 -[NSApplication(NSEvent) sendEvent:] + 352
	47  AppKit                              0x00007fff230fd36e -[NSApplication _handleEvent:] + 65
	48  AppKit                              0x00007fff22c8db2f -[NSApplication run] + 623
	49  AppKit                              0x00007fff22c61df2 NSApplicationMain + 816
	50  PEP                                 0x0000000107d9bd5f main + 47
	51  libdyld.dylib                       0x00007fff203a4621 start + 1
)

Application stuck when trying to open a pdf book

I was trying to open a pdf version of a book but the app got stuck and the wheel spinning. Had to force quit.
I cannot share the file, since it's under copyright, but only some details about it, I'm sorry.

PEP: 0.27 alpha
File size: 1.414.753 byte (1,4 MB)
PDF version: 1.6
Pages: 278
Resolution: 432 × 648
Authoring software: Adobe InDesign CS6 (Windows)
Codec: Adobe PDF Library 10.0.1

Maybe a bug in the future PDFs?

The text parser in every page, begins by using sorting all TJ text to make read order glyphs which is faster than using every single glyphs.

I am thinking about this case, where a TJ text at the end of the page content, resides in the middle of another TJ text, how will the current algorithm in PEP handle this? I am not 100% sure. Let's see and leave this issue here as a memo.

Crash while opening asiabsdcon2009-sensors-slides.pdf

Crash while opening asiabsdcon2009-sensors-slides.pdf

2021-02-23 11:43:00.529048+0800 PEP[11325:819445] -[GRefObject value]: unrecognized selector sent to instance 0x600000a6abe0
2021-02-23 11:43:00.531381+0800 PEP[11325:819445] -[NSSavePanel didEndPanelWithReturnCode:] caught non-fatal NSInvalidArgumentException '-[GRefObject value]: unrecognized selector sent to instance 0x600000a6abe0' with backtrace (
	0   CoreFoundation                      0x00007fff206296af __exceptionPreprocess + 242
	1   libobjc.A.dylib                     0x00007fff203613c9 objc_exception_throw + 48
	2   CoreFoundation                      0x00007fff206abc85 -[NSObject(NSObject) __retain_OA] + 0
	3   CoreFoundation                      0x00007fff2059107d ___forwarding___ + 1467
	4   CoreFoundation                      0x00007fff20590a38 _CF_forwarding_prep_0 + 120
	5   PEP                                 0x000000010ce846c5 -[GPage buildFontInfos] + 1269
	6   PEP                                 0x000000010ce5f19b -[GDocument buildFontInfos] + 411
	7   PEP                                 0x000000010ce5bd47 -[GDocument awakeFromNib] + 1015
	8   PEP                                 0x000000010ce85a98 __28-[AppDelegate openDocument:]_block_invoke + 664
	9   AppKit                              0x00007fff237e9ecc -[NSSavePanel didEndPanelWithReturnCode:] + 76
	10  AppKit                              0x00007fff237ea120 -[NSSavePanel completeModeless:] + 23
	11  AppKit                              0x00007fff237ea41c -[NSSavePanel completeWithReturnCode:url:urls:] + 434
	12  AppKit                              0x00007fff237ec048 -[NSSavePanel observeValueForKeyPath:ofObject:change:context:] + 325
	13  Foundation                          0x00007fff2130fab8 NSKeyValueNotifyObserver + 327
	14  Foundation                          0x00007fff213d6e45 NSKeyValueDidChange + 431
	15  Foundation                          0x00007fff21477539 NSKeyValueDidChangeWithPerThreadPendingNotifications + 146
	16  ViewBridge                          0x00007fff271b3d9b __41-[NSViewBridge setObject:forKey:withKVO:]_block_invoke + 360
	17  ViewBridge                          0x00007fff2722e829 withHintInProgress + 359
	18  ViewBridge                          0x00007fff271abcb7 -[NSViewBridge setObject:forKey:withKVO:] + 641
	19  ViewBridge                          0x00007fff271ace05 -[NSViewBridge nonLocalChangeInProgress:block:] + 230
	20  ViewBridge                          0x00007fff271acb93 -[NSRemoteViewMarshal exceptionSafeSetRemoteObject:forKey:withReply:] + 264
	21  ViewBridge                          0x00007fff271aca47 -[NSRemoteViewMarshal setRemoteObject:forKey:withReply:] + 56
	22  CoreFoundation                      0x00007fff2059256c __invoking___ + 140
	23  CoreFoundation                      0x00007fff20592410 -[NSInvocation invoke] + 303
	24  ViewBridge                          0x00007fff271aab65 __deferNSXPCInvocationOntoMainThread_block_invoke + 228
	25  ViewBridge                          0x00007fff2719dd34 __wrapBlockWithVoucher_block_invoke + 37
	26  ViewBridge                          0x00007fff2719da25 __deferBlockOntoMainThread_block_invoke_2 + 352
	27  CoreFoundation                      0x00007fff205af5a2 __CFRUNLOOP_IS_CALLING_OUT_TO_A_BLOCK__ + 12
	28  CoreFoundation                      0x00007fff205af44c __CFRunLoopDoBlocks + 437
	29  CoreFoundation                      0x00007fff205ae7bd __CFRunLoopRun + 2582
	30  CoreFoundation                      0x00007fff205ad6ce CFRunLoopRunSpecific + 563
	31  HIToolbox                           0x00007fff28835630 RunCurrentEventLoopInMode + 292
	32  HIToolbox                           0x00007fff2883542c ReceiveNextEventCommon + 709
	33  HIToolbox                           0x00007fff2883514f _BlockUntilNextEventMatchingListInModeWithFilter + 64
	34  AppKit                              0x00007fff22dcd9b1 _DPSNextEvent + 883
	35  AppKit                              0x00007fff22dcc177 -[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 1366
	36  AppKit                              0x00007fff22dbe68a -[NSApplication run] + 586
	37  AppKit                              0x00007fff22d9296f NSApplicationMain + 816
	38  PEP                                 0x000000010ce6913f main + 47
	39  libdyld.dylib                       0x00007fff204d2621 start + 1
	40  ???                                 0x0000000000000003 0x0 + 3
)

Crash while open PDF

Crash with error below while opening this PDF.

High precision text extraction from PDF documents.pdf

2021-02-02 09:30:33.012299+0800 PEP[14070:1070126] -[NSSavePanel didEndPanelWithReturnCode:] caught non-fatal NSInvalidArgumentException '-[__NSCFString substringWithRange:]: Range {0, 18} out of bounds; string length 10' with backtrace (
	0   CoreFoundation                      0x00007fff204db6af __exceptionPreprocess + 242
	1   libobjc.A.dylib                     0x00007fff202133c9 objc_exception_throw + 48
	2   CoreFoundation                      0x00007fff2058fa9a -[__NSCFString characterAtIndex:].cold.1 + 0
	3   CoreFoundation                      0x00007fff2058fba8 -[__NSCFString hasPrefix:].cold.1 + 0
	4   CoreFoundation                      0x00007fff2044fcb8 -[NSConstantDictionary objectForKey:] + 0
	5   PEP                                 0x0000000109d3a743 -[GParser parseXRef:] + 755
	6   PEP                                 0x0000000109d3b0df -[GParser parseXRef] + 63
	7   PEP                                 0x0000000109d3ad35 -[GParser updateXRefDictionary] + 117
	8   PEP                                 0x0000000109d360e6 -[GDocument parsePages] + 294
	9   PEP                                 0x0000000109d34e6f -[GDocument awakeFromNib] + 895
	10  PEP                                 0x0000000109d5d438 __28-[AppDelegate openDocument:]_block_invoke + 664
	11  AppKit                              0x00007fff2369908c -[NSSavePanel didEndPanelWithReturnCode:] + 76
	12  AppKit                              0x00007fff236992e0 -[NSSavePanel completeModeless:] + 23
	13  AppKit                              0x00007fff236995dc -[NSSavePanel completeWithReturnCode:url:urls:] + 434
	14  AppKit                              0x00007fff2369b208 -[NSSavePanel observeValueForKeyPath:ofObject:change:context:] + 325
	15  Foundation                          0x00007fff211c1ab8 NSKeyValueNotifyObserver + 327
	16  Foundation                          0x00007fff21288e45 NSKeyValueDidChange + 431
	17  Foundation                          0x00007fff21329539 NSKeyValueDidChangeWithPerThreadPendingNotifications + 146
	18  ViewBridge                          0x00007fff27063d9b __41-[NSViewBridge setObject:forKey:withKVO:]_block_invoke + 360
	19  ViewBridge                          0x00007fff270de829 withHintInProgress + 359
	20  ViewBridge                          0x00007fff2705bcb7 -[NSViewBridge setObject:forKey:withKVO:] + 641
	21  ViewBridge                          0x00007fff2705ce05 -[NSViewBridge nonLocalChangeInProgress:block:] + 230
	22  ViewBridge                          0x00007fff2705cb93 -[NSRemoteViewMarshal exceptionSafeSetRemoteObject:forKey:withReply:] + 264
	23  ViewBridge                          0x00007fff2705ca47 -[NSRemoteViewMarshal setRemoteObject:forKey:withReply:] + 56
	24  CoreFoundation                      0x00007fff2044456c __invoking___ + 140
	25  CoreFoundation                      0x00007fff20444410 -[NSInvocation invoke] + 303
	26  ViewBridge                          0x00007fff2705ab65 __deferNSXPCInvocationOntoMainThread_block_invoke + 228
	27  ViewBridge                          0x00007fff2704dd34 __wrapBlockWithVoucher_block_invoke + 37
	28  ViewBridge                          0x00007fff2704da25 __deferBlockOntoMainThread_block_invoke_2 + 352
	29  CoreFoundation                      0x00007fff204615a2 __CFRUNLOOP_IS_CALLING_OUT_TO_A_BLOCK__ + 12
	30  CoreFoundation                      0x00007fff2046144c __CFRunLoopDoBlocks + 437
	31  CoreFoundation                      0x00007fff204607bd __CFRunLoopRun + 2582
	32  CoreFoundation                      0x00007fff2045f6ce CFRunLoopRunSpecific + 563
	33  HIToolbox                           0x00007fff286e46d0 RunCurrentEventLoopInMode + 292
	34  HIToolbox                           0x00007fff286e44cc ReceiveNextEventCommon + 709
	35  HIToolbox                           0x00007fff286e41ef _BlockUntilNextEventMatchingListInModeWithFilter + 64
	36  AppKit                              0x00007fff22c7cde9 _DPSNextEvent + 883
	37  AppKit                              0x00007fff22c7b5af -[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 1366
	38  AppKit                              0x00007fff22c6db0a -[NSApplication run] + 586
	39  AppKit                              0x00007fff22c41df2 NSApplicationMain + 816
	40  PEP                                 0x0000000109d41a0f main + 47
	41  libdyld.dylib                       0x00007fff20384621 start + 1
)
2021-02-02 09:30:33.013248+0800 PEP[14070:1070126] -[NSSavePanel observeValueForKeyPath:ofObject:change:context:] caught non-fatal NSInvalidArgumentException '-[__NSCFString substringWithRange:]: Range {0, 18} out of bounds; string length 10' with backtrace (
	0   CoreFoundation                      0x00007fff204db6af __exceptionPreprocess + 242
	1   libobjc.A.dylib                     0x00007fff202133c9 objc_exception_throw + 48
	2   CoreFoundation                      0x00007fff2058fa9a -[__NSCFString characterAtIndex:].cold.1 + 0
	3   CoreFoundation                      0x00007fff2058fba8 -[__NSCFString hasPrefix:].cold.1 + 0
	4   CoreFoundation                      0x00007fff2044fcb8 -[NSConstantDictionary objectForKey:] + 0
	5   PEP                                 0x0000000109d3a743 -[GParser parseXRef:] + 755
	6   PEP                                 0x0000000109d3b0df -[GParser parseXRef] + 63
	7   PEP                                 0x0000000109d3ad35 -[GParser updateXRefDictionary] + 117
	8   PEP                                 0x0000000109d360e6 -[GDocument parsePages] + 294
	9   PEP                                 0x0000000109d34e6f -[GDocument awakeFromNib] + 895
	10  PEP                                 0x0000000109d5d438 __28-[AppDelegate openDocument:]_block_invoke + 664
	11  AppKit                              0x00007fff2369908c -[NSSavePanel didEndPanelWithReturnCode:] + 76
	12  AppKit                              0x00007fff236992e0 -[NSSavePanel completeModeless:] + 23
	13  AppKit                              0x00007fff236995dc -[NSSavePanel completeWithReturnCode:url:urls:] + 434
	14  AppKit                              0x00007fff2369b208 -[NSSavePanel observeValueForKeyPath:ofObject:change:context:] + 325
	15  Foundation                          0x00007fff211c1ab8 NSKeyValueNotifyObserver + 327
	16  Foundation                          0x00007fff21288e45 NSKeyValueDidChange + 431
	17  Foundation                          0x00007fff21329539 NSKeyValueDidChangeWithPerThreadPendingNotifications + 146
	18  ViewBridge                          0x00007fff27063d9b __41-[NSViewBridge setObject:forKey:withKVO:]_block_invoke + 360
	19  ViewBridge                          0x00007fff270de829 withHintInProgress + 359
	20  ViewBridge                          0x00007fff2705bcb7 -[NSViewBridge setObject:forKey:withKVO:] + 641
	21  ViewBridge                          0x00007fff2705ce05 -[NSViewBridge nonLocalChangeInProgress:block:] + 230
	22  ViewBridge                          0x00007fff2705cb93 -[NSRemoteViewMarshal exceptionSafeSetRemoteObject:forKey:withReply:] + 264
	23  ViewBridge                          0x00007fff2705ca47 -[NSRemoteViewMarshal setRemoteObject:forKey:withReply:] + 56
	24  CoreFoundation                      0x00007fff2044456c __invoking___ + 140
	25  CoreFoundation                      0x00007fff20444410 -[NSInvocation invoke] + 303
	26  ViewBridge                          0x00007fff2705ab65 __deferNSXPCInvocationOntoMainThread_block_invoke + 228
	27  ViewBridge                          0x00007fff2704dd34 __wrapBlockWithVoucher_block_invoke + 37
	28  ViewBridge                          0x00007fff2704da25 __deferBlockOntoMainThread_block_invoke_2 + 352
	29  CoreFoundation                      0x00007fff204615a2 __CFRUNLOOP_IS_CALLING_OUT_TO_A_BLOCK__ + 12
	30  CoreFoundation                      0x00007fff2046144c __CFRunLoopDoBlocks + 437
	31  CoreFoundation                      0x00007fff204607bd __CFRunLoopRun + 2582
	32  CoreFoundation                      0x00007fff2045f6ce CFRunLoopRunSpecific + 563
	33  HIToolbox                           0x00007fff286e46d0 RunCurrentEventLoopInMode + 292
	34  HIToolbox                           0x00007fff286e44cc ReceiveNextEventCommon + 709
	35  HIToolbox                           0x00007fff286e41ef _BlockUntilNextEventMatchingListInModeWithFilter + 64
	36  AppKit                              0x00007fff22c7cde9 _DPSNextEvent + 883
	37  AppKit                              0x00007fff22c7b5af -[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 1366
	38  AppKit                              0x00007fff22c6db0a -[NSApplication run] + 586
	39  AppKit                              0x00007fff22c41df2 NSApplicationMain + 816
	40  PEP                                 0x0000000109d41a0f main + 47
	41  libdyld.dylib                       0x00007fff20384621 start + 1
)

Scanned PDF Fails With Blank Pages

Opening the attached pdf renders blank pages with nothing on them. Looks like it renders the correct number of pages though which is a start! I realize this PDF might not be super simple since it seems it is a scan but good to log in the issues for later in the development cycle at least.

My Confession - Tolstoy.pdf

Crash while opening this PDF

PEP crashes while opening this PDF (iasj.pdf). See errors below:

2021-01-17 13:40:34.114758+0800 PEP[25629:2821269] [General] *** -[__NSDictionaryM setObject:forKey:]: object cannot be nil (key: F4-1.000000)
2021-01-17 13:40:34.118681+0800 PEP[25629:2821269] [General] (
	0   CoreFoundation                      0x00007fff204b86af __exceptionPreprocess + 242
	1   libobjc.A.dylib                     0x00007fff201f03c9 objc_exception_throw + 48
	2   CoreFoundation                      0x00007fff2056ca9a -[__NSCFString characterAtIndex:].cold.1 + 0
	3   CoreFoundation                      0x00007fff205789ec -[__NSDictionaryM setObject:forKey:].cold.3 + 0
	4   CoreFoundation                      0x00007fff203faaa5 -[__NSDictionaryM setObject:forKey:] + 939
	5   PEP                                 0x0000000108c34d26 -[GPage setCachedFont:fontSize:] + 374
	6   PEP                                 0x0000000108c34f6e -[GPage buildCachedFonts] + 462
	7   PEP                                 0x0000000108c20cb0 -[GInterpreter eval:] + 96
	8   PEP                                 0x0000000108c31166 -[GPage render:] + 1078
	9   PEP                                 0x0000000108c12fa7 -[GDocument drawRect:] + 1815
	10  AppKit                              0x00007fff22dc9e63 _NSViewDrawRect + 139
	11  AppKit                              0x00007fff234f5536 -[NSView _recursive:displayRectIgnoringOpacity:inContext:stopAtLayerBackedViews:] + 2115
	12  AppKit                              0x00007fff22dc9489 -[NSView(NSLayerKitGlue) _drawViewBackingLayer:inContext:drawingHandler:] + 967
	13  AppKit                              0x00007fff22ecffd1 -[_NSBackingLayerContents drawLayer:inContext:] + 152
	14  QuartzCore                          0x00007fff26bfbfb1 -[CALayer drawInContext:] + 284
	15  AppKit                              0x00007fff22ecfc3c -[_NSTiledLayer drawTile:inContext:] + 590
	16  AppKit                              0x00007fff22ecf975 -[_NSTiledLayerContents drawLayer:inContext:] + 210
	17  QuartzCore                          0x00007fff26bfbfb1 -[CALayer drawInContext:] + 284
	18  QuartzCore                          0x00007fff26bf9101 CABackingStoreUpdate_ + 190
	19  QuartzCore                          0x00007fff26c5e279 ___ZN2CA5Layer8display_Ev_block_invoke + 53
	20  QuartzCore                          0x00007fff26bf866c -[CALayer _display] + 2183
	21  AppKit                              0x00007fff22ecf87f -[NSTileLayer display] + 60
	22  AppKit                              0x00007fff22ecdfec -[_NSTiledLayerContents update:shouldCallPrepareContent:] + 4224
	23  AppKit                              0x00007fff22eccd55 -[_NSTiledLayer display] + 334
	24  QuartzCore                          0x00007fff26bf7660 _ZN2CA5Layer17display_if_neededEPNS_11TransactionE + 874
	25  QuartzCore                          0x00007fff26d3773b _ZN2CA7Context18commit_transactionEPNS_11TransactionEdPd + 517
	26  QuartzCore                          0x00007fff26bd8fd5 _ZN2CA11Transaction6commitEv + 783
	27  AppKit                              0x00007fff22dde272 __62+[CATransaction(NSCATransaction) NS_setFlushesWithDisplayLink]_block_invoke + 285
	28  AppKit                              0x00007fff2352d085 ___NSRunLoopObserverCreateWithHandler_block_invoke + 41
	29  CoreFoundation                      0x00007fff2043ddad __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 23
	30  CoreFoundation                      0x00007fff2043dc3d __CFRunLoopDoObservers + 549
	31  CoreFoundation                      0x00007fff2043d0ed __CFRunLoopRun + 838
	32  CoreFoundation                      0x00007fff2043c6ce CFRunLoopRunSpecific + 563
	33  HIToolbox                           0x00007fff286c16d0 RunCurrentEventLoopInMode + 292
	34  HIToolbox                           0x00007fff286c14cc ReceiveNextEventCommon + 709
	35  HIToolbox                           0x00007fff286c11ef _BlockUntilNextEventMatchingListInModeWithFilter + 64
	36  AppKit                              0x00007fff22c59de9 _DPSNextEvent + 883
	37  AppKit                              0x00007fff22c585af -[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 1366
	38  AppKit                              0x00007fff22c4ab0a -[NSApplication run] + 586
	39  AppKit                              0x00007fff22c1edf2 NSApplicationMain + 816
	40  PEP                                 0x0000000108c1d65f main + 47
	41  libdyld.dylib                       0x00007fff20361621 start + 1
)

Text editor crashes

Active text editor crashes while editing in this PDF iasj.pdf.

2021-01-21 17:02:22.537100+0800 PEP[15733:862179] [General] *** -[__NSArrayM insertObject:atIndex:]: object cannot be nil
2021-01-21 17:02:22.540334+0800 PEP[15733:862179] [General] (
	0   CoreFoundation                      0x00007fff204e86af __exceptionPreprocess + 242
	1   libobjc.A.dylib                     0x00007fff202203c9 objc_exception_throw + 48
	2   CoreFoundation                      0x00007fff2059ca9a -[__NSCFString characterAtIndex:].cold.1 + 0
	3   CoreFoundation                      0x00007fff2059a953 -[__NSArrayM insertObject:atIndex:].cold.2 + 0
	4   CoreFoundation                      0x00007fff2040e421 -[__NSArrayM insertObject:atIndex:] + 1135
	5   PEP                                 0x000000010b16fef6 -[GWord addGlyph:] + 70
	6   PEP                                 0x000000010b15c5ed -[GTextParser makeWords] + 509
	7   PEP                                 0x000000010b15c8dc -[GTextParser makeLines] + 76
	8   PEP                                 0x000000010b15cf0e -[GTextParser mergeLinesToTextblock] + 62
	9   PEP                                 0x000000010b15f133 -[GTextEditor getTextBlock] + 195
	10  PEP                                 0x000000010b15f759 -[GTextEditor draw:] + 57
	11  PEP                                 0x000000010b18dca3 -[GPage render:] + 1347
	12  PEP                                 0x000000010b16e467 -[GDocument drawRect:] + 1815
	13  AppKit                              0x00007fff22df9e63 _NSViewDrawRect + 139
	14  AppKit                              0x00007fff23525536 -[NSView _recursive:displayRectIgnoringOpacity:inContext:stopAtLayerBackedViews:] + 2115
	15  AppKit                              0x00007fff22df9489 -[NSView(NSLayerKitGlue) _drawViewBackingLayer:inContext:drawingHandler:] + 967
	16  AppKit                              0x00007fff22efffd1 -[_NSBackingLayerContents drawLayer:inContext:] + 152
	17  QuartzCore                          0x00007fff26c2bfb1 -[CALayer drawInContext:] + 284
	18  AppKit                              0x00007fff22effc3c -[_NSTiledLayer drawTile:inContext:] + 590
	19  AppKit                              0x00007fff22eff975 -[_NSTiledLayerContents drawLayer:inContext:] + 210
	20  QuartzCore                          0x00007fff26c2bfb1 -[CALayer drawInContext:] + 284
	21  QuartzCore                          0x00007fff26c29101 CABackingStoreUpdate_ + 190
	22  QuartzCore                          0x00007fff26c8e279 ___ZN2CA5Layer8display_Ev_block_invoke + 53
	23  QuartzCore                          0x00007fff26c2866c -[CALayer _display] + 2183
	24  AppKit                              0x00007fff22eff87f -[NSTileLayer display] + 60
	25  AppKit                              0x00007fff22efdfec -[_NSTiledLayerContents update:shouldCallPrepareContent:] + 4224
	26  AppKit                              0x00007fff22efcd55 -[_NSTiledLayer display] + 334
	27  QuartzCore                          0x00007fff26c27660 _ZN2CA5Layer17display_if_neededEPNS_11TransactionE + 874
	28  QuartzCore                          0x00007fff26d6773b _ZN2CA7Context18commit_transactionEPNS_11TransactionEdPd + 517
	29  QuartzCore                          0x00007fff26c08fd5 _ZN2CA11Transaction6commitEv + 783
	30  AppKit                              0x00007fff22e0e272 __62+[CATransaction(NSCATransaction) NS_setFlushesWithDisplayLink]_block_invoke + 285
	31  AppKit                              0x00007fff2355d085 ___NSRunLoopObserverCreateWithHandler_block_invoke + 41
	32  CoreFoundation                      0x00007fff2046ddad __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 23
	33  CoreFoundation                      0x00007fff2046dc3d __CFRunLoopDoObservers + 549
	34  CoreFoundation                      0x00007fff2046d0ed __CFRunLoopRun + 838
	35  CoreFoundation                      0x00007fff2046c6ce CFRunLoopRunSpecific + 563
	36  HIToolbox                           0x00007fff286f16d0 RunCurrentEventLoopInMode + 292
	37  HIToolbox                           0x00007fff286f1322 ReceiveNextEventCommon + 283
	38  HIToolbox                           0x00007fff286f11ef _BlockUntilNextEventMatchingListInModeWithFilter + 64
	39  AppKit                              0x00007fff22c89de9 _DPSNextEvent + 883
	40  AppKit                              0x00007fff22c885af -[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 1366
	41  AppKit                              0x00007fff22c7ab0a -[NSApplication run] + 586
	42  AppKit                              0x00007fff22c4edf2 NSApplicationMain + 816
	43  PEP                                 0x000000010b178f8f main + 47
	44  libdyld.dylib                       0x00007fff20391621 start + 1
	45  ???                                 0x0000000000000003 0x0 + 3
)

Crash while opening iasj.pdf

Crashes while opening iasj.pdf

2021-02-22 20:55:30.664 PEP[8127:589351] -[NSSavePanel didEndPanelWithReturnCode:] caught non-fatal NSInvalidArgumentException '-[GCommandObject object]: unrecognized selector sent to instance 0x7fd315f507c0' with backtrace (
	0   CoreFoundation                      0x00007fff206296af __exceptionPreprocess + 242
	1   libobjc.A.dylib                     0x00007fff203613c9 objc_exception_throw + 48
	2   CoreFoundation                      0x00007fff206abc85 -[NSObject(NSObject) __retain_OA] + 0
	3   CoreFoundation                      0x00007fff2059107d ___forwarding___ + 1467
	4   CoreFoundation                      0x00007fff20590a38 _CF_forwarding_prep_0 + 120
	5   PEP                                 0x000000010fbac9a6 -[GParser getObjectByRef:] + 214
	6   PEP                                 0x000000010fbce99a -[GPage buildFontInfos] + 1946
	7   PEP                                 0x000000010fba91cb -[GDocument buildFontInfos] + 411
	8   PEP                                 0x000000010fba5d77 -[GDocument awakeFromNib] + 1015
	9   PEP                                 0x000000010fbcfa98 __28-[AppDelegate openDocument:]_block_invoke + 664
	10  AppKit                              0x00007fff237e9ecc -[NSSavePanel didEndPanelWithReturnCode:] + 76
	11  AppKit                              0x00007fff237ea120 -[NSSavePanel completeModeless:] + 23
	12  AppKit                              0x00007fff237ea41c -[NSSavePanel completeWithReturnCode:url:urls:] + 434
	13  AppKit                              0x00007fff237ec048 -[NSSavePanel observeValueForKeyPath:ofObject:change:context:] + 325
	14  Foundation                          0x00007fff2130fab8 NSKeyValueNotifyObserver + 327
	15  Foundation                          0x00007fff213d6e45 NSKeyValueDidChange + 431
	16  Foundation                          0x00007fff21477539 NSKeyValueDidChangeWithPerThreadPendingNotifications + 146
	17  ViewBridge                          0x00007fff271b3d9b __41-[NSViewBridge setObject:forKey:withKVO:]_block_invoke + 360
	18  ViewBridge                          0x00007fff2722e829 withHintInProgress + 359
	19  ViewBridge                          0x00007fff271abcb7 -[NSViewBridge setObject:forKey:withKVO:] + 641
	20  ViewBridge                          0x00007fff271ace05 -[NSViewBridge nonLocalChangeInProgress:block:] + 230
	21  ViewBridge                          0x00007fff271acb93 -[NSRemoteViewMarshal exceptionSafeSetRemoteObject:forKey:withReply:] + 264
	22  ViewBridge                          0x00007fff271aca47 -[NSRemoteViewMarshal setRemoteObject:forKey:withReply:] + 56
	23  CoreFoundation                      0x00007fff2059256c __invoking___ + 140
	24  CoreFoundation                      0x00007fff20592410 -[NSInvocation invoke] + 303
	25  ViewBridge                          0x00007fff271aab65 __deferNSXPCInvocationOntoMainThread_block_invoke + 228
	26  ViewBridge                          0x00007fff2719dd34 __wrapBlockWithVoucher_block_invoke + 37
	27  ViewBridge                          0x00007fff2719da25 __deferBlockOntoMainThread_block_invoke_2 + 352
	28  CoreFoundation                      0x00007fff205af5a2 __CFRUNLOOP_IS_CALLING_OUT_TO_A_BLOCK__ + 12
	29  CoreFoundation                      0x00007fff205af44c __CFRunLoopDoBlocks + 437
	30  CoreFoundation                      0x00007fff205ae7bd __CFRunLoopRun + 2582
	31  CoreFoundation                      0x00007fff205ad6ce CFRunLoopRunSpecific + 563
	32  HIToolbox                           0x00007fff28835630 RunCurrentEventLoopInMode + 292
	33  HIToolbox                           0x00007fff2883542c ReceiveNextEventCommon + 709
	34  HIToolbox                           0x00007fff2883514f _BlockUntilNextEventMatchingListInModeWithFilter + 64
	35  AppKit                              0x00007fff22dcd9b1 _DPSNextEvent + 883
	36  AppKit                              0x00007fff22dcc177 -[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 1366
	37  AppKit                              0x00007fff22dbe68a -[NSApplication run] + 586
	38  AppKit                              0x00007fff22d9296f NSApplicationMain + 816
	39  PEP                                 0x000000010fbb316f main + 47
	40  libdyld.dylib                       0x00007fff204d2621 start + 1
)

Font installed, but still not working

image

for a PDF Bill from my cellphone provider. I installed the font as well and restarted PEP and saw that it recognized the font, but the boxes still remain...

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.