Opened 17 months ago

Last modified 17 months ago

#18095 new bug

[Interface Kit] BTextView crashes with RealCharAt: invalid index supplied

Reported by: diver Owned by: nobody
Priority: normal Milestone: Unscheduled
Component: Kits/Interface Kit Version: R1/Development
Keywords: Cc:
Blocked By: Blocking:
Platform: All

Description

Web+ crashed 5 seconds after I launched it. It was trying to load https://html5test.com/ from a previous session while I pasted github link into the same tab's address bar (not sure if related)

Debug information for team /boot/system/apps/WebPositive (1007):
CPU(s): 1x Intel 11th Gen Core™ i7-1165G7
Memory: 2.00 GiB total, 956.99 MiB used
Haiku revision: hrev56595 Nov 13 2022 10:03:20 (x86_64)

Active Threads:
	thread 1007: WebPositive (main)
	thread 1010: WebCore: IconDatabase 
	thread 1012: w>Downloads 
	thread 1014: w>Settings 
	thread 1019: sort_thread 
	thread 1022: w>WebPositive: Save 
	thread 1034: LocalStorage 
	thread 1039: BUrlProtocol.HTTP 
	thread 1040: BUrlProtocol.HTTP 
	thread 1041: BUrlProtocol.HTTP 
	thread 1042: BUrlProtocol.HTTP 
	thread 1043: team 1007 debug task 
	thread 1045: BUrlProtocol.HTTP 
	thread 1031: w>HTML5test - How well does you 
		state: Call (RealCharAt: invalid index supplied)

		Frame		IP			Function Name
		-----------------------------------------------
		00000000	0x1005b9a60a7	_kern_debugger + 0x7 
			Disassembly:
				_kern_debugger:
				0x000001005b9a60a0:   48c7c0e5000000  mov $0xe5, %rax
				0x000001005b9a60a7:             0f05  syscall  <--

		0x7fb28e9313a0	0x982e82cf9b	BTextView::_CharClassification(int) const + 0x4b 
		0x7fb28e9313d0	0x982e82d17b	BTextView::_NextWordBoundary(int) + 0x1b 
		0x7fb28e931420	0x982e834926	BTextView::_PerformMouseMoved(BPoint, unsigned int) + 0x376 
		0x7fb28e931460	0x982e8349be	BTextView::TextTrackState::SimulateMouseMovement(BTextView*) + 0x3e 
		0x7fb28e9315c0	0x982e83800f	BTextView::MessageReceived(BMessage*) + 0x3ff 
		0x7fb28e931630	0x169d39b437e	BrowserWindow::DispatchMessage(BMessage*, BHandler*) + 0x5e 
		0x7fb28e9316c0	0x982e84fbfb	BWindow::task_looper() + 0x1cb 
		0x7fb28e9316e0	0x982e78d0dd	BLooper::_task0_(void*) + 0x1d 
		0x7fb28e931700	0x1005b9a4e16	thread_entry + 0x16 
		00000000	0x7fdd86045258	commpage_thread_exit + 0

Change History (2)

comment:1 by waddlesplash, 17 months ago

This looks like a BTextView problem independent of WebKit. Can it be reproduced?

comment:2 by diver, 17 months ago

Component: Applications/WebPositiveKits/Interface Kit
Owner: changed from pulkomandy to nobody
Summary: [WebPositive] crashes with RealCharAt: invalid index supplied[Interface Kit] BTextView crashes with RealCharAt: invalid index supplied

Not reproducible for now.

Note: See TracTickets for help on using tickets.