Bepdf can not get Chinese word completely

bepdf can not get Chinese word completely


the same file.

bepdf can not.

okular also be failed with debian . (funny)

but, WPS-pdf and mupdf work it out.

so, is it the same problem with bepdf and okular ?

someone tell me that they cannot figure the right fonts out without something.

i can not understand.

Does the PDF not have its fonts embedded? Xpdf (and Poppler, which Okular uses, which is derived from Xpdf) may not handle font fallbacks correctly, I suppose.

The native “DocumentViewer” application (available in HaikuDepot) uses MuPDF internally.

1 Like

yes.
but, mupdf can handle it with the situation.
bepdf not.

The document title in the title bar also seems garbled, whereas the file name right next to it, which also contains Hanzi, is displayed correctly. I’d say that makes a font issue unlikely.

xpdf also get the problem.
it is xpdf4.05。

pkgman install mupdf

it done.
but, no the command “mupdf”.
and no any link to launch the application “mupdf”.

what is wrong?

MuPDF is a suite of programs as well as a library (for use by other programs). The mupdf package on Haiku contains the library. To install the programs you need the package mupdf_tools. Then you get the tools muraster and mutool. The actual viewer application mupdf-gl is not available on Haiku as it seems.

The most convenient way for you to use mupdf for PDF viewing on Haiku is, as @waddlesplash already pointed out, the app DocumentViewer. (pkgman install documentviewer)

1 Like

it crash.

Debug information for team /boot/system/apps/DocumentViewer (323):
CPU(s): 1x AMD QEMU Virtual CPU version 2.5+
Memory: 4.00 GiB total, 292.95 MiB used
Haiku revision: hrev58389 Dec 8 2024 07:21:48 (x86_64)

Active Threads:
thread 323: DocumentViewer (main)
thread 331: team 323 debug task
thread 329: w>/boot/home/Desktop/刘少奇�
state: Call (mutex->owner == -1)

	Frame		IP			Function Name
	-----------------------------------------------
	00000000	0x19d0894f3f7	_kern_debugger + 0x7 
		Disassembly:
			_kern_debugger:
			0x0000019d0894f3f0:   48c7c0eb000000  mov $0xeb, %rax
			0x0000019d0894f3f7:             0f05  syscall <--

	0x7fd9cea07d90	0x19d089560b0	__assert_fail + 0x60 
	0x7fd9cea07dc0	0x19d0895eaeb	/boot/system/lib/libroot.so + 0x4faeb 
	0x7fd9cea07e10	0x1c4f87948a6	BaseEngine::Page(int) + 0x58 (/sources/DocumentViewer-d1eab70bbbcfa22049d711f520a1f58c02459623/application/BaseEngine.cpp:-1)
		Variables:
		this: 0x10c5e3a827e0 {
			_vptr.BaseEngine: 0x1c4f89e7dd0
			fStopThread: false
			fDrawingThread: 0x10c5e3b321e0
			gEngineStopMutex
			fZoomFactor: 1.000000
			fPages: 515
			fRotation: 0
			fForwardCache: 16
			fBackwardCache: 16
			fCurrentPageNo: 0
			fSearchFlag: 0
			fHighlightUnderText: true
			fTextSearchThread: 0
			fStopTextSearchThread: false
			gTextSearchStopMutex
			fTargetLooper: 0
			fSearchHandler: 0
		}
		pageNumber: 0

	0x7fd9cea07e60	0x1c4f87a1c03	BasicDocumentView::_SetScrollBarAtPage(int) + 0x53 (/sources/DocumentViewer-d1eab70bbbcfa22049d711f520a1f58c02459623/application/DocumentView.cpp:24)
		Variables:
		this: 0x10c5e3a335b0 {
			fCircleMenu: 0
			fMouseButtons: 0
			fCurrentFit: 1735274545
			fZoomFactor: 1.000000
			fZoomStep: 0.200000
			fSmallScrollStep: 25.000000
			fCurrentPageNumber: 0
			fIsPanning: false
			fIsHPanning: false
			fIsVPanning: false
			fNeedsResize: false
			fIsPrinting: false
			fHighlightUnderText: true
		}
		pageNumber: 0
		bitmap: 0x1c4f87a22be {
		}

	0x7fd9cea07e80	0x1c4f87a20c2	BasicDocumentView::_ShowPage(const int&) + 0x3a (/sources/DocumentViewer-d1eab70bbbcfa22049d711f520a1f58c02459623/application/DocumentView.cpp:-1)
		Variables:
		this: 0x10c5e3a335b0 {
			fCircleMenu: 0
			fMouseButtons: 0
			fCurrentFit: 1735274545
			fZoomFactor: 1.000000
			fZoomStep: 0.200000
			fSmallScrollStep: 25.000000
			fCurrentPageNumber: 0
			fIsPanning: false
			fIsHPanning: false
			fIsVPanning: false
			fNeedsResize: false
			fIsPrinting: false
			fHighlightUnderText: true
		}
		pageNumber: 0x10c5e3a336ec {
			*pageNumber: 0
		}

	0x7fd9cea07ea0	0x1c4f87a20f9	BasicDocumentView::_ShowCurrentPage(void) + 0x21 (/sources/DocumentViewer-d1eab70bbbcfa22049d711f520a1f58c02459623/application/DocumentView.cpp:-1)
		Variables:
		this: 0x10c5e3a335b0 {
			fCircleMenu: 0
			fMouseButtons: 0
			fCurrentFit: 1735274545
			fZoomFactor: 1.000000
			fZoomStep: 0.200000
			fSmallScrollStep: 25.000000
			fCurrentPageNumber: 0
			fIsPanning: false
			fIsHPanning: false
			fIsVPanning: false
			fNeedsResize: false
			fIsPrinting: false
			fHighlightUnderText: true
		}

	0x7fd9cea07f10	0x1c4f879fef1	BasicDocumentView::SetFile(const BString&, const BString&, BString&) + 0x1db (/sources/DocumentViewer-d1eab70bbbcfa22049d711f520a1f58c02459623/application/DocumentView.cpp:122)
		Variables:
		this: 0x10c5e3a335b0 {
			fCircleMenu: 0
			fMouseButtons: 0
			fCurrentFit: 1735274545
			fZoomFactor: 1.000000
			fZoomStep: 0.200000
			fSmallScrollStep: 25.000000
			fCurrentPageNumber: 0
			fIsPanning: false
			fIsHPanning: false
			fIsVPanning: false
			fNeedsResize: false
			fIsPrinting: false
			fHighlightUnderText: true
		}
		filename: 0x7fd9cea08218 {
			fPrivateData: /boot/home/Desktop/刘少奇选集下.pdf
		}
		fileType: 0x7fd9cea08200 {
			fPrivateData: pdf
		}
		password: 0x7fd9cea08288 {
			fPrivateData: 
		}

	0x7fd9cea07f40	0x1c4f879f700	DocumentView::FileChanged(const BString&, const BString&, BString&) + 0x32 (/sources/DocumentViewer-d1eab70bbbcfa22049d711f520a1f58c02459623/application/DocumentView.cpp:-1)
		Variables:
		this: 0x10c5e39f3100 {
			fBasicDocumentView: 0x10c5e3a335b0
			fVScrollBar: 0x10c5e39f2f90
			fHScrollBar: 0x10c5e39f2e20
		}
		file: 0x7fd9cea08218 {
			fPrivateData: /boot/home/Desktop/刘少奇选集下.pdf
		}
		fileType: 0x7fd9cea08200 {
			fPrivateData: pdf
		}
		password: 0x7fd9cea08288 {
			fPrivateData: 
		}

	0x7fd9cea08020	0x1c4f87ac8ff	MainWindow::_OpenFile(const BString&, const BString&, BString, const int32&) + 0x93 (/sources/DocumentViewer-d1eab70bbbcfa22049d711f520a1f58c02459623/application/MainWindow.cpp:-1)
		Variables:
		this: 0x10c5e39f6800 {
			fCardLayout: 0x10c5e39eae20
			fDocumentLayout: 0x10c5e3a65760
			fIntroLayout: 0x10c5e3a73400
			fSplitView1: 0x10c5e3a70a40
			fSplitView2: 0x10c5e3a708d0
			fSplitView3: 0xa948900000018fd1
			fSplitView4: 0x67737500007fda83
			fButton: 0x10000000072
			fTabView1: 0x10c5e39bc8f0
			fDocumentView: 0x10c5e39f3100
			fOutlineView: 0x10c5e39f2770
			fPreviewView: 0x10c5e39f4ae0
			fBookmarksView: 0xa94890000010aaed
			fSearchView: 0x10c5e39f39a0
			fRibbon: 0x10c5e3a429f0
			fImageSpinner: 0x10c5e3a70760
			fFullscreenIsOn: false
		}
		path: 0x7fd9cea08218 {
			fPrivateData: /boot/home/Desktop/刘少奇选集下.pdf
		}
		fileType: 0x7fd9cea08200 {
			fPrivateData: pdf
		}
		password {
			fPrivateData: 
		}
		page: 0x7fd9cea0820c {
			*page: 0
		}
		msg

	0x7fd9cea082b0	0x1c4f87ac431	MainWindow::MessageReceived(BMessage*) + 0x7fd (/sources/DocumentViewer-d1eab70bbbcfa22049d711f520a1f58c02459623/application/MainWindow.cpp:-1)
		Variables:
		this: 0x10c5e39f6800 {
			fCardLayout: 0x10c5e39eae20
			fDocumentLayout: 0x10c5e3a65760
			fIntroLayout: 0x10c5e3a73400
			fSplitView1: 0x10c5e3a70a40
			fSplitView2: 0x10c5e3a708d0
			fSplitView3: 0xa948900000018fd1
			fSplitView4: 0x67737500007fda83
			fButton: 0x10000000072
			fTabView1: 0x10c5e39bc8f0
			fDocumentView: 0x10c5e39f3100
			fOutlineView: 0x10c5e39f2770
			fPreviewView: 0x10c5e39f4ae0
			fBookmarksView: 0xa94890000010aaed
			fSearchView: 0x10c5e39f39a0
			fRibbon: 0x10c5e3a429f0
			fImageSpinner: 0x10c5e3a70760
			fFullscreenIsOn: false
		}
		message: 0x10c5e3a7ea80 {
		}
		file {
			fPrivateData: /boot/home/Desktop/刘少奇选集下.pdf
		}
		password {
			fPrivateData: 
		}
		page: 0
		type {
			fPrivateData: pdf
		}

	0x7fd9cea08340	0x1277c545883	BWindow::task_looper() + 0x1d3 
	0x7fd9cea08360	0x1277c48675b	BLooper::_task0_(void*) + 0x1b 
	0x7fd9cea08380	0x19d0894e107	thread_entry + 0x17 
	00000000	0x7fe1957cf258	commpage_thread_exit + 0 

	Registers:
		  rip:	0x0000019d0894f3f9
		  rsp:	0x00007fd9cea07d48
		  rbp:	0x00007fd9cea07d80
		  rax:	0x00000000000000eb
		  rbx:	0x0000019d089e6e75
		  rcx:	0x0000019d0894f3f9
		  rdx:	0x00007fd9cea07852
		  rsi:	0x0000019d089e5a4f
		  rdi:	0x0000019d089e6e75
		   r8:	0x0000000000000000
		   r9:	0x0000000000000000
		  r10:	0x0000000000000000
		  r11:	0x0000000000000202
		  r12:	0x7fffffffffffffff
		  r13:	0x0000000000000000
		  r14:	0x000010c5e3b37104
		  r15:	0x0000000000000149
		   cs:	0x002b
		   ds:	0x0000
		   es:	0x0000
		   fs:	0x0000
		   gs:	0x0000
		   ss:	0x0023
		  st0:	0
		  st1:	0
		  st2:	0
		  st3:	0
		  st4:	0
		  st5:	0
		  st6:	0
		  st7:	0
		  mm0:	{0, 0, 0, 0}
		  mm1:	{0, 0, 0, 0}
		  mm2:	{0, 0, 0, 0}
		  mm3:	{0, 0, 0, 0}
		  mm4:	{0, 0, 0, 0}
		  mm5:	{0, 0, 0, 0}
		  mm6:	{0, 0, 0, 0}
		  mm7:	{0, 0, 0, 0}
		 xmm0:	{0, 0, 0, 0, 0, 0, 0, 0}
		 xmm1:	{0, 0, 0, 0, 0, 0, 0, 0}
		 xmm2:	{0, 0, 0, 0, 0, 0, 0, 0}
		 xmm3:	{0, 0, 0, 0, 0, 0, 0, 0}
		 xmm4:	{0, 0, 0, 0, 0, 0, 0, 0}
		 xmm5:	{0, 0, 0, 0, 0, 0, 0, 0}
		 xmm6:	{0, 0, 0, 0, 0, 0, 0, 0}
		 xmm7:	{0, 0, 0, 0, 0, 0, 0, 0}
		 xmm8:	{0, 0, 0, 0, 0, 0, 0, 0}
		 xmm9:	{0, 0, 0, 0, 0, 0, 0, 0}
		xmm10:	{0, 0, 0, 0, 0, 0, 0, 0}
		xmm11:	{0, 0, 0, 0, 0, 0, 0, 0}
		xmm12:	{0, 0, 0, 0, 0, 0, 0, 0}
		xmm13:	{0, 0, 0, 0, 0, 0, 0, 0}
		xmm14:	{0, 0, 0, 0, 0, 0, 0, 0}
		xmm15:	{0, 0, 0, 0, 0, 0, 0, 0}
thread 330: _DrawingThread 
	state: Call (mutex->owner == -1)

	Frame		IP			Function Name
	-----------------------------------------------
	00000000	0x19d0894f3f7	_kern_debugger + 0x7 
		Disassembly:
			_kern_debugger:
			0x0000019d0894f3f0:   48c7c0eb000000  mov $0xeb, %rax
			0x0000019d0894f3f7:             0f05  syscall <--

	0x7f332a5171e0	0x19d089560b0	__assert_fail + 0x60 
	0x7f332a517210	0x19d0895eaeb	/boot/system/lib/libroot.so + 0x4faeb 
	0x7f332a5172f0	0x1c4f879407e	BaseEngine::_DrawingThread(void*) + 0x9c (/sources/DocumentViewer-d1eab70bbbcfa22049d711f520a1f58c02459623/application/BaseEngine.cpp:-1)
		Variables:
		arg: 0x10c5e3a827e0 {
			*arg: Unavailable
		}
		engine: 0x10c5e3a827e0 {
			_vptr.BaseEngine: 0x1c4f89e7dd0
			fStopThread: false
			fDrawingThread: 0x10c5e3b321e0
			gEngineStopMutex
			fZoomFactor: 1.000000
			fPages: 515
			fRotation: 0
			fForwardCache: 16
			fBackwardCache: 16
			fCurrentPageNo: 0
			fSearchFlag: 0
			fHighlightUnderText: true
			fTextSearchThread: 0
			fStopTextSearchThread: false
			gTextSearchStopMutex
			fTargetLooper: 0
			fSearchHandler: 0
		}
		pages: 0x10c5e3a827fc {
			*pages: 515
		}
		bitmap: 0x10c5e3a82818 {
		}
		mutex: 0x10c5e3a82830 {
		}
		upperbound: -1
		lowerbound: -1
		pageFuture: -1
		pagePast: -1
		currentPage: -1
		deleteIndex: 0
		forwardPriority: true

	0x7f332a517310	0x19d0895d8b5	pthread_thread_entry(void*, void*) + 0x15 
	00000000	0x7fe1957cf258	commpage_thread_exit + 0 

	Registers:
		  rip:	0x0000019d0894f3f9
		  rsp:	0x00007f332a517198
		  rbp:	0x00007f332a5171d0
		  rax:	0x00000000000000eb
		  rbx:	0x0000019d089e6e75
		  rcx:	0x0000019d0894f3f9
		  rdx:	0x00007f332a516ca2
		  rsi:	0x0000019d089e5a4f
		  rdi:	0x0000019d089e6e75
		   r8:	0x0000000000000000
		   r9:	0x0000000000000000
		  r10:	0x0000000000000000
		  r11:	0x0000000000000206
		  r12:	0x7fffffffffffffff
		  r13:	0x0000000000000000
		  r14:	0x000001c4f89eda14
		  r15:	0x000000000000014a
		   cs:	0x002b
		   ds:	0x0000
		   es:	0x0000
		   fs:	0x0000
		   gs:	0x0000
		   ss:	0x0023
		  st0:	0
		  st1:	0
		  st2:	0
		  st3:	0
		  st4:	0
		  st5:	0
		  st6:	0
		  st7:	0
		  mm0:	{0, 0, 0, 0}
		  mm1:	{0, 0, 0, 0}
		  mm2:	{0, 0, 0, 0}
		  mm3:	{0, 0, 0, 0}
		  mm4:	{0, 0, 0, 0}
		  mm5:	{0, 0, 0, 0}
		  mm6:	{0, 0, 0, 0}
		  mm7:	{0, 0, 0, 0}
		 xmm0:	{0, 0, 0, 0, 0, 0, 0, 0}
		 xmm1:	{0, 0, 0, 0, 0, 0, 0, 0}
		 xmm2:	{0, 0, 0, 0, 0, 0, 0, 0}
		 xmm3:	{0, 0, 0, 0, 0, 0, 0, 0}
		 xmm4:	{0, 0, 0, 0, 0, 0, 0, 0}
		 xmm5:	{0, 0, 0, 0, 0, 0, 0, 0}
		 xmm6:	{0, 0, 0, 0, 0, 0, 0, 0}
		 xmm7:	{0, 0, 0, 0, 0, 0, 0, 0}
		 xmm8:	{0, 0, 0, 0, 0, 0, 0, 0}
		 xmm9:	{0, 0, 0, 0, 0, 0, 0, 0}
		xmm10:	{0, 0, 0, 0, 0, 0, 0, 0}
		xmm11:	{0, 0, 0, 0, 0, 0, 0, 0}
		xmm12:	{0, 0, 0, 0, 0, 0, 0, 0}
		xmm13:	{0, 0, 0, 0, 0, 0, 0, 0}
		xmm14:	{0, 0, 0, 0, 0, 0, 0, 0}
		xmm15:	{0, 0, 0, 0, 0, 0, 0, 0}

Loaded Images:
ID Text Base Text End Data Base Data End Type Name
--------------------------------------------------------------------------------
3527 0x19d28cd000 0x19d28dc000 0x19d2adb000 0x19d2add000 lib /boot/system/lib/libbz2.so.1.0.8
3530 0x2ac34ad000 0x2ac34c9000 0x2ac36c8000 0x2ac36c9000 lib /boot/system/lib/libjbig2dec.so.0.0.0
3513 0x2c4f222000 0x2c4f3ea000 0x2c4f3ea000 0x2c4f405000 lib /boot/system/lib/libtracker.so
3529 0x3ec0cce000 0x3ec0e33000 0x3ec0e33000 0x3ec0e35000 lib /boot/system/lib/libharfbuzz.so.0.60830.0
3534 0x4d9c368000 0x4d9c39b000 0x4d9c39b000 0x4d9c3a5000 lib /boot/system/lib/libnetwork.so
3512 0x4da00da000 0x4da00f0000 0x4da00f0000 0x4da00f2000 lib /boot/system/lib/libtranslation.so
3535 0x9ab8b56000 0x9ab8b61000 0x9ab8b61000 0x9ab8b62000 lib /boot/system/lib/libbsd.so
3531 0x9ea5e19000 0x9ea5e77000 0x9ea5e77000 0x9ea5e79000 lib /boot/system/lib/libopenjp2.so.2.4.0
3517 0xc8b8785000 0xc8b8bf7000 0xc8b8bf7000 0xc8bb621000 lib /boot/system/lib/libmupdf.so
3537 0xd3271df000 0xd3271e7000 0xd3271e7000 0xd3271e8000 add-on /boot/system/add-ons/locale/catalogs/plaintext
3524 0xef67d8b000 0xef67f83000 0xef67f83000 0xef67f9b000 lib /boot/system/lib/libicuuc.so.74.1
3525 0xf957934000 0xf957a4a000 0xf957a4a000 0xf957a4b000 lib /boot/system/lib/libzstd.so.1.5.6
3522 0xfbb848f000 0xfbb87cb000 0xfbb87cb000 0xfbb87e6000 lib /boot/system/lib/libicui18n.so.74.1
3521 0xffccb0a000 0xffccb0b000 0xffccb0b000 0xffccb0c000 lib /boot/system/lib/libicudata.so.74.1
3532 0x11db83a3000 0x11db86f1000 0x11db86f1000 0x11db874e000 lib /boot/system/lib/libcrypto.so.3
3510 0x1277c32d000 0x1277c663000 0x1277c663000 0x1277c691000 lib /boot/system/lib/libbe.so
3538 0x13fdd267000 0x13fdd279000 0x13fdd279000 0x13fdd27a000 lib /boot/system/lib/libroot-addon-icu.so
3523 0x159d2dcf000 0x159d2ddb000 0x159d2ddb000 0x159d2ddd000 lib /boot/system/lib/libicuio.so.74.1
3519 0x15f46d32000 0x15f46d51000 0x15f46d51000 0x15f46d52000 lib /boot/system/lib/libgcc_s.so.1
3516 0x17a6c86e000 0x17a6c912000 0x17a6c912000 0x17a6c913000 lib /boot/system/lib/libjpeg.so.62.3.0
3520 0x19d0890f000 0x19d08a20000 0x19d08a20000 0x19d08a36000 lib /boot/system/lib/libroot.so
3528 0x1b866a09000 0x1b866a3a000 0x1b866a3a000 0x1b866a3b000 lib /boot/system/lib/libpng16.so.16.44.0
3515 0x1b8fc849000 0x1b8fc924000 0x1b8fc924000 0x1b8fc92c000 lib /boot/system/lib/libfreetype.so.6.20.1
3518 0x1bcebc57000 0x1bcebdf4000 0x1bcebdf4000 0x1bcebe02000 lib /boot/system/lib/libdjvulibre.so.21.7.0
3511 0x1bd100fb000 0x1bd1032d000 0x1bd1032d000 0x1bd10343000 lib /boot/system/lib/libstdc++.so.6.0.32
3509 0x1c4f8736000 0x1c4f87e5000 0x1c4f89e4000 0x1c4f89ee000 app /boot/system/apps/DocumentViewer
3533 0x1e2a9f5c000 0x1e2a9f85000 0x1e2aa184000 0x1e2aa186000 lib /boot/system/lib/libgraphite2.so.3.2.1
3514 0x1e73094b000 0x1e730961000 0x1e730961000 0x1e730962000 lib /boot/system/lib/libz.so.1.3.1
3526 0x1fbc25a9000 0x1fbc26a4000 0x1fbc26a4000 0x1fbc26a7000 lib /boot/system/lib/libtextencoding.so
3508 0x1fc5c339000 0x1fc5c356000 0x1fc5c356000 0x1fc5c357000 lib /boot/system/runtime_loader
3507 0x7fe1957cf000 0x7fe1957d7000 0x00000000 0x00000000 system commpage

Areas:
ID Base End Size (KiB) Protection Locking Name
--------------------------------------------------------------------------------
9335 0x60000000 0x60001000 4 rw-cS none server_memory
9337 0x68000000 0x68036000 216 rw-cS none server_memory
9299 0x19d28cd000 0x19d28dc000 60 r-x none libbz2.so.1.0.8_seg0ro
9300 0x19d2adb000 0x19d2add000 8 rw- none libbz2.so.1.0.8_seg1rw
9254 0x1d21bbe000 0x1d21bce000 64 rw- none rld heap
9305 0x2ac34ad000 0x2ac34c9000 112 r-x none libjbig2dec.so.0.0.0_seg0ro
9306 0x2ac36c8000 0x2ac36c9000 4 rw- none libjbig2dec.so.0.0.0_seg1rw
9265 0x2c4f222000 0x2c4f3ea000 1824 r-x none libtracker.so_seg0ro
9266 0x2c4f3ea000 0x2c4f403000 100 rw- none libtracker.so_seg1rw
9267 0x2c4f403000 0x2c4f405000 8 rw- none libtracker.so_seg2rw
9303 0x3ec0cce000 0x3ec0e33000 1428 r-x none libharfbuzz.so.0.60830.0_seg0ro
9304 0x3ec0e33000 0x3ec0e35000 8 rw- none libharfbuzz.so.0.60830.0_seg1rw
9314 0x4d9c368000 0x4d9c39b000 204 r-x none libnetwork.so_seg0ro
9315 0x4d9c39b000 0x4d9c39d000 8 rw- none libnetwork.so_seg1rw
9316 0x4d9c39d000 0x4d9c3a5000 32 rw- none libnetwork.so_seg2rw
9263 0x4da00da000 0x4da00f0000 88 r-x none libtranslation.so_seg0ro
9264 0x4da00f0000 0x4da00f2000 8 rw- none libtranslation.so_seg1rw
9255 0x4e4c66e000 0x4e4c66f000 4 rw-cS none rld_debug
9319 0x8666d3d000 0x8666d45000 32 rw- none rld heap
9320 0x8a32203000 0x8a3220b000 32 rw- none rld heap
9321 0x94ad221000 0x94ad231000 64 rw- none rld heap
9322 0x94c9e5f000 0x94c9e6f000 64 rw- none rld heap
9323 0x954c4d2000 0x954c4ea000 96 rw- none rld heap
9324 0x97c567d000 0x97c5695000 96 rw- none rld heap
9326 0x98a3ca3000 0x98a59ff000 30064 r–S none libicuuc.so.74 mmap area
9317 0x9ab8b56000 0x9ab8b61000 44 r-x none libbsd.so_seg0ro
9318 0x9ab8b61000 0x9ab8b62000 4 rw- none libbsd.so_seg1rw
9307 0x9ea5e19000 0x9ea5e77000 376 r-x none libopenjp2.so.2.4.0_seg0ro
9308 0x9ea5e77000 0x9ea5e79000 8 rw- none libopenjp2.so.2.4.0_seg1rw
9274 0xc8b8785000 0xc8b8bf7000 4552 r-x none libmupdf.so_seg0ro
9275 0xc8b8bf7000 0xc8bb619000 43144 rw- none libmupdf.so_seg1rw
9276 0xc8bb619000 0xc8bb621000 32 rw- none libmupdf.so_seg2rw
9329 0xd3271df000 0xd3271e7000 32 r-x none plaintext_seg0ro
9330 0xd3271e7000 0xd3271e8000 4 rw- none plaintext_seg1rw
9292 0xef67d8b000 0xef67f83000 2016 r-x none libicuuc.so.74.1_seg0ro
9293 0xef67f83000 0xef67f9a000 92 rw- none libicuuc.so.74.1_seg1rw
9294 0xef67f9a000 0xef67f9b000 4 rw- none libicuuc.so.74.1_seg2rw
9295 0xf957934000 0xf957a4a000 1112 r-x none libzstd.so.1.5.6_seg0ro
9296 0xf957a4a000 0xf957a4b000 4 rw- none libzstd.so.1.5.6_seg1rw
9287 0xfbb848f000 0xfbb87cb000 3312 r-x none libicui18n.so.74.1_seg0ro
9288 0xfbb87cb000 0xfbb87e5000 104 rw- none libicui18n.so.74.1_seg1rw
9289 0xfbb87e5000 0xfbb87e6000 4 rw- none libicui18n.so.74.1_seg2rw
9285 0xffccb0a000 0xffccb0b000 4 r-x none libicudata.so.74.1_seg0ro
9286 0xffccb0b000 0xffccb0c000 4 rw- none libicudata.so.74.1_seg1rw
9309 0x11db83a3000 0x11db86f1000 3384 r-x none libcrypto.so.3_seg0ro
9310 0x11db86f1000 0x11db874c000 364 rw- none libcrypto.so.3_seg1rw
9311 0x11db874c000 0x11db874e000 8 rw- none libcrypto.so.3_seg2rw
9258 0x1277c32d000 0x1277c663000 3288 r-x none libbe.so_seg0ro
9259 0x1277c663000 0x1277c691000 184 rw- none libbe.so_seg1rw
9346 0x13fdd267000 0x13fdd279000 72 r-x none libroot-addon-icu.so_seg0ro
9347 0x13fdd279000 0x13fdd27a000 4 rw- none libroot-addon-icu.so_seg1rw
9290 0x159d2dcf000 0x159d2ddb000 48 r-x none libicuio.so.74.1_seg0ro
9291 0x159d2ddb000 0x159d2ddd000 8 rw- none libicuio.so.74.1_seg1rw
9280 0x15f46d32000 0x15f46d51000 124 r-x none libgcc_s.so.1_seg0ro
9281 0x15f46d51000 0x15f46d52000 4 rw- none libgcc_s.so.1_seg1rw
9272 0x17a6c86e000 0x17a6c912000 656 r-x none libjpeg.so.62.3.0_seg0ro
9273 0x17a6c912000 0x17a6c913000 4 rw- none libjpeg.so.62.3.0_seg1rw
9282 0x19d0890f000 0x19d08a20000 1092 r-x none libroot.so_seg0ro
9283 0x19d08a20000 0x19d08a2e000 56 rw- none libroot.so_seg1rw
9284 0x19d08a2e000 0x19d08a36000 32 rw- none libroot.so_seg2rw
9301 0x1b866a09000 0x1b866a3a000 196 r-x none libpng16.so.16.44.0_seg0ro
9302 0x1b866a3a000 0x1b866a3b000 4 rw- none libpng16.so.16.44.0_seg1rw
9270 0x1b8fc849000 0x1b8fc924000 876 r-x none libfreetype.so.6.20.1_seg0ro
9271 0x1b8fc924000 0x1b8fc92c000 32 rw- none libfreetype.so.6.20.1_seg1rw
9277 0x1bcebc57000 0x1bcebdf4000 1652 r-x none libdjvulibre.so.21.7.0_seg0ro
9278 0x1bcebdf4000 0x1bcebdfc000 32 rw- none libdjvulibre.so.21.7.0_seg1rw
9279 0x1bcebdfc000 0x1bcebe02000 24 rw- none libdjvulibre.so.21.7.0_seg2rw
9260 0x1bd100fb000 0x1bd1032d000 2248 r-x none libstdc++.so.6.0.32_seg0ro
9261 0x1bd1032d000 0x1bd1033b000 56 rw- none libstdc++.so.6.0.32_seg1rw
9262 0x1bd1033b000 0x1bd10343000 32 rw- none libstdc++.so.6.0.32_seg2rw
9256 0x1c4f8736000 0x1c4f87e5000 700 r-x none DocumentViewer_seg0ro
9257 0x1c4f89e4000 0x1c4f89ee000 40 rw- none DocumentViewer_seg1rw
9312 0x1e2a9f5c000 0x1e2a9f85000 164 r-x none libgraphite2.so.3.2.1_seg0ro
9313 0x1e2aa184000 0x1e2aa186000 8 rw- none libgraphite2.so.3.2.1_seg1rw
9268 0x1e73094b000 0x1e730961000 88 r-x none libz.so.1.3.1_seg0ro
9269 0x1e730961000 0x1e730962000 4 rw- none libz.so.1.3.1_seg1rw
9297 0x1fbc25a9000 0x1fbc26a4000 1004 r-x none libtextencoding.so_seg0ro
9298 0x1fbc26a4000 0x1fbc26a7000 12 rw- none libtextencoding.so_seg1rw
9252 0x1fc5c339000 0x1fc5c356000 116 r-x none runtime_loader_seg0ro
9253 0x1fc5c356000 0x1fc5c357000 4 rw- none runtime_loader_seg1rw
9325 0x10c5e3996000 0x10c5e3cc6000 3264 rw- none heap
9349 0x7f332a4d4000 0x7f332a519000 276 rw-s none pthread func_330_stack
9250 0x7f807fc70000 0x7f8080c71000 16388 rw-s none DocumentViewer_323_stack
9345 0x7fd9ce9c5000 0x7fd9cea0a000 276 rw-s none w>DocumentViewer_329_stack
9251 0x7fe1957cf000 0x7fe1957d7000 32 r-xSk full commpage
9248 0x7ff57d680000 0x7ff57d684000 16 rw-k full user area

Protection Flags: r - read, w - write, x - execute, s - stack, o - overcommit, c - cloneable, S - shared, k - kernel

Semaphores:
ID Count Last Holder Name
------------------------------------------------------------
1923 0 0 some BBlockCache lock
1924 0 0 token space
1925 0 0 BLooperList lock
1926 0 0 AppServerLink_sLock
1927 0 0 some BLocker
1928 0 0 some BLocker
1929 0 0 Catalog
1930 0 0 LocaleRosterData
1931 0 0 some BLocker
1932 0 0 Catalog
1933 0 0 some BLocker
1934 0 0 some BLocker
1935 0 0 undo
1936 0 0 Light Lock
1937 0 0 some BLocker
1938 0 0 Light Lock
1939 0 0 PeriodicUpdatePoses
1940 0 0 BMessageQueue Lock
1941 0 0 AppLooperPort
1954 0 0 screen list
1955 0 0 clipboard
1956 0 0 width buffer
1957 0 0 BMessageQueue Lock
1958 -1 0 DocumentViewer
1964 0 0 BMessageQueue Lock
1965 0 0 offscreen bitmap
1972 0 0 BMessageQueue Lock
1973 0 0 offscreen bitmap

it also crash with r1b5.

and , i try with real hardware.
it also be failed.

Debug information for team /boot/system/apps/DocumentViewer (1106):
CPU(s): 4x Intel Atom™ E3845
Memory: 3.89 GiB total, 1.12 GiB used
Haiku revision: hrev58392 Dec 10 2024 07:34:43 (x86_64)

Yep, here too, I can replicate the problem. It seems to be fixed in the source code on github already. Maybe someone from the HaikuPorts/HaikuArchive guys can make a new
release :wink: Blink blink @humdinger @Begasus

If you need it fast you can compile it from source yourselves. It’s not as complicated as it sounds.

  1. Install needed dependencies. pkgman install mupdf_devel djvu_devel freetype_devel
  2. Clone the source: git clone GitHub - HaikuArchives/DocumentViewer: DocumentViewer is a Viewer supporting PDF and DJVU Files.
  3. cd documentviewer/application
  4. make

If that completes with no error (there will be lots of compiler warnings, don’t panic) you’ll find the DocumentViewer app in the newly generated objects.xxx directory

EDIT: the forum software mangled the github URL in step 2. You need to use the actual URL, not what is shown here

Should be fixed in: documentviewer, revbump, fixes crash by Begasus · Pull Request #11432 · haikuports/haikuports · GitHub

Checked with local build and a pdf.

EDIT: @waddlesplash fixed it upstream, just wasn’t updated at haikuports. :slight_smile:

EDIT2: buildmasters are doing some heavy building, so this could take time before it hits the depot.

2 Likes

Yep, that was what I was referring to :wink:
Thanks @Begasus !

1 Like

I made a PR on the DocumentViewer repo on HaikuArchives to fix the numerous warnings during compilation.

2 Likes

I’m not part of the haikuarchives team, but can do a build check in the morning, would be nice to reduce the noise during build. +1

1 Like

waddlesplash already merged the PR.
Thanks @waddlesplash!

it still crash.
~/Desktop> DocumentViewer ./*.pdf
warning: workaround for S22PDF lying about chinese font encodings
warning: workaround for S22PDF lying about chinese font encodings
warning: workaround for S22PDF lying about chinese font encodings
error: syntax error in object (49 0 R)
warning: cannot load object (49 0 R) into cache
error: non-page object in page tree
error: aborting process from uncaught error!
~/Desktop> uname -a
Haiku shredder 1 hrev58399 Dec 11 2024 07:02:29 x86_64 x86_64 Haiku

it may have some special code to deal with the situation.

1 Like

If you are just looking for a way to view such PDFs, Iceweasel may be another option to workaround.

It equips pdfjs viewer and can render local PDFs by opening file from menu. Though
it may be not so useful as D&D or opening from command line doesn’t work well yet.

No changes have been done on mupdf, so if you call that from the commandline there will be no difference.
For the record, is this with any PDF or all PDF files?

some PDF。

not all.

the pdf file may get some error itself.

but, i see mupdf can read it with debian.