KapiX / Koder

A code editor for Haiku based on Scintilla editing component.
MIT License
42 stars 15 forks source link

Clicking on a Url-Link in BePDF will try to open Koder, then crash (Haiku 64bit, nightly) Hrev 55102+1 #137

Closed Brunobasta closed 3 years ago

Brunobasta commented 3 years ago

Opened a .pdf file with BePDF. Clicking on: " https://datatracker.ietf.org/drafts/current/" http://0x0.st/-eIB.png Errorlog from BePDF: http://0x0.st/-eIu.png

Bugreport here: http://0x0.st/-eIQ.report

Why BePDF tries to open the link with Koder and not with Web+? Is it a BePDF mistake?

KapiX commented 3 years ago

I'm not sure, but my guess is that this is FileTypes problem. I've seen it in an opposite direction - C++ files being opened as XML/HTML with Web+ because they had a lot of <> at the beginning.

Anyway, this is also a legitimate problem in Koder so the issue should stay open.

EDIT: stack trace in case the report gets deleted from external server:

0x7f987b2071e0  0x1f0bd8277e7   _ZN9__gnu_cxx6(int16) + 0xb7 
0x7f987b207240  0x1f0bd822ecd   App::_ParseFileArgument(std::basic_string<char, std::char_traits<char>, std::allocator<char> >, int*, int*) + 0x28d 
0x7f987b207330  0x1f0bd826ade   App::ArgvReceived(int, char**) + 0x18e 
0x7f987b207390  0x3c0b5ddbaa    BApplication::_ArgvReceived(BMessage*) + 0x18a 
0x7f987b2075e0  0x3c0b5e00d0    BApplication::DispatchMessage(BMessage*, BHandler*) + 0x1c0 
0x7f987b207630  0x3c0b5e74c6    BLooper::task_looper() + 0x266 
0x7f987b207650  0x3c0b5dd2ac    BApplication::Run() + 0x1c 
0x7f987b207670  0x1f0bd8221da   main + 0x2a