Linked by Thom Holwerda on Mon 2nd Jul 2012 18:19 UTC, submitted by anonymous
BeOS & Derivatives Michael Lotz added code to generate QR-code for the KDL (Kernel Debug Land) ouput (which pops up when the kernel crashes). No more blurry photos with debug output, but a QR code which decodes to the clear-text KDL debug output. Here's one of the relevant commits, an example showing a QR code, and text from decoded sample QR code.
Thread beginning with comment 524788
To read all comments associated with this story, please click here.
WTF IS THIS SHIT
by lucas_maximus on Mon 2nd Jul 2012 18:28 UTC
lucas_maximus
Member since:
2009-08-18

Who thought this was a good idea?

Lets use a smart phone to decode the error message ... Why not I dunno write some data to disk? Surely that would have been simpler.

Edited 2012-07-02 18:29 UTC

Reply Score: -2

RE: WTF IS THIS SHIT
by smashIt on Mon 2nd Jul 2012 18:40 in reply to "WTF IS THIS SHIT"
smashIt Member since:
2005-07-06

Why not I dunno write some data to disk? Surely that would have been simpler.


simpler only if it works
if it doesn't it can destroy data

don't forget that you can't trust the kernel anymore when it KDLs

Reply Parent Score: 3

RE[2]: WTF IS THIS SHIT
by lucas_maximus on Mon 2nd Jul 2012 20:28 in reply to "RE: WTF IS THIS SHIT"
lucas_maximus Member since:
2009-08-18

Windows does it fine. Sorry.

Reply Parent Score: 0

RE: WTF IS THIS SHIT
by Thom_Holwerda on Mon 2nd Jul 2012 18:45 in reply to "WTF IS THIS SHIT"
Thom_Holwerda Member since:
2005-06-29

Who thought this was a good idea?

Lets use a smart phone to decode the error message ... Why not I dunno write some data to disk? Surely that would have been simpler.


Right, because that's going to work reliably when the kernel panics.

Reply Parent Score: 2

RE[2]: WTF IS THIS SHIT
by umccullough on Mon 2nd Jul 2012 19:17 in reply to "RE: WTF IS THIS SHIT"
umccullough Member since:
2006-01-26

"Who thought this was a good idea?

Lets use a smart phone to decode the error message ... Why not I dunno write some data to disk? Surely that would have been simpler.


Right, because that's going to work reliably when the kernel panics.
"

Well, to be fair, most people don't even know what a kernel panic is - or what it means...

Most OSes just do something fancy, like 'bluescreen', or reboot.

Reply Parent Score: 4

RE[2]: WTF IS THIS SHIT
by lucas_maximus on Mon 2nd Jul 2012 20:26 in reply to "RE: WTF IS THIS SHIT"
lucas_maximus Member since:
2009-08-18

Works pretty well for Windows. You keep on slagging off the OS but it does these important things well ;)

The primary storage medium is already known, so as a programmer myself ... writing log.txt to the root partition should be f--king trivial.

I cannot fathom why anyone would think this is difficult to do.

Edited 2012-07-02 20:38 UTC

Reply Parent Score: -1

RE: WTF IS THIS SHIT
by drcouzelis on Mon 2nd Jul 2012 18:46 in reply to "WTF IS THIS SHIT"
drcouzelis Member since:
2010-01-11

WTF IS THIS SHIT

I LOL'd. ^_^

It's just an extra feature to aid in the process of reporting bugs when the kernel crashes. The old method of taking a screenshot using a camera still works fine.

As for me, I don't have a smart phone ;) but I also haven't seen Haiku crash in a long long time on my computer. ;)

Reply Parent Score: 2

RE[2]: WTF IS THIS SHIT
by lucas_maximus on Mon 2nd Jul 2012 20:27 in reply to "RE: WTF IS THIS SHIT"
lucas_maximus Member since:
2009-08-18

Or you could spend time writing the error log to the primary storage device which the OS already knows.

Reply Parent Score: 1

RE: WTF IS THIS SHIT
by anevilyak on Mon 2nd Jul 2012 19:18 in reply to "WTF IS THIS SHIT"
anevilyak Member since:
2005-09-14

Relax, would you? It's simply an alternative way to get the information out of the kernel debugger in order to be able to copy it into bug reports. Since most modern systems don't have serial ports any more, it can't be captured that way, and photographs of a computer monitor are large, unwieldy and can be a pain to get focused properly without cutting off important bits of information.

Reply Parent Score: 5

RE[2]: WTF IS THIS SHIT
by tuaris on Mon 2nd Jul 2012 20:27 in reply to "RE: WTF IS THIS SHIT"
tuaris Member since:
2007-08-05

One of Hakiu's goals is to "build the operating system of the future". Something like this is exactly the type of thing that helps fulfill that goal.

Reply Parent Score: 2

RE[2]: WTF IS THIS SHIT
by lucas_maximus on Mon 2nd Jul 2012 20:33 in reply to "RE: WTF IS THIS SHIT"
lucas_maximus Member since:
2009-08-18

Err Event Viewer in Windows or at least a Kernel dump.

It is the 21st century my friend, people have worked out how to write text file to a hardrive.

Edited 2012-07-02 20:46 UTC

Reply Parent Score: 1

RE: WTF IS THIS SHIT
by galvanash on Mon 2nd Jul 2012 23:49 in reply to "WTF IS THIS SHIT"
galvanash Member since:
2006-01-25

Who thought this was a good idea?

Lets use a smart phone to decode the error message ... Why not I dunno write some data to disk? Surely that would have been simpler.


You are completely missing the point. The information being displayed is of no use at all to an end user. On Windows you get stop codes - are you saying a stop code conveys useful information to the user? It is a completely meaningless number...

Haiku is not Windows or Linux. The userbase is very small and is under rapid development. Googling stop codes or other such nonsense to try and figure out why something is going wrong (as an end user) is likely to be very hit or miss, mostly miss. The real purpose of the information is to allow a kernel developer to determine what went wrong. That is, btw, the real purpose of the information for Windows too - the fact they you can often look up stop codes on the web and gleam out what is going on from them is due to its popularity - nothing more.

More importantly though, for it to be of any use to anyone it has to be communicated to the developer... How exactly do you get the debug log off the hard-drive of the machine that doesn't work reliably???

The whole point is to make it simple to communicate the information to a developer. It is much cleaner to get an easy to decipher QRCode than it is to try and squint it out of a bad photo of a monitor.

Sure, the stop code approach (which serves roughly the same purpose) works too, but stop codes are just keys to a lookup - the stop code itself means nothing unless you already know where in the code they get hit. Using QR codes you can actually put a fair amount of meaningful information INTO the "stop code".

I suspect Haiku is not far enough along yet to get religious about how they handle kernel panics internally, different subsystems likely dump/panic in different ways (with differing levels of detail). This is a catchall mechanism to deal with the issue of inconsistent error handling.

I would like to see something as consistent as stop codes used for Haiku as well one day, but I think this QR code thing is a lovely idea for the time being. And it will remain useful even if they get to that point (as a way to convey additional information).

Reply Parent Score: 3

RE: WTF IS THIS SHIT
by sorpigal on Tue 3rd Jul 2012 12:55 in reply to "WTF IS THIS SHIT"
sorpigal Member since:
2005-11-02

It may seem a bit odd but it's not such a bad idea. The Linux kernel developers are presently considering patches that would print a QR code to the screen in case of a panic (and for just the same reasons).

Reply Parent Score: 3

RE[2]: WTF IS THIS SHIT
by phoudoin on Wed 4th Jul 2012 07:21 in reply to "RE: WTF IS THIS SHIT"
phoudoin Member since:
2006-06-09

<patent troll mode>
Quick, Haiku guys, let's secure this patent!
</patent troll mode>

Well, at least Haiku will be a prior art of something ;-)

Edited 2012-07-04 07:22 UTC

Reply Parent Score: 2

RE[2]: WTF IS THIS SHIT
by zima on Fri 6th Jul 2012 02:14 in reply to "RE: WTF IS THIS SHIT"
zima Member since:
2005-07-06

I think that's an awesome idea... maybe all informational popups etc. should have qrcode.

Reply Parent Score: 2