guild icon
Toit
#Wierd crash for printing hex values
Thread channel in help
theHuanter
theHuanter 04/30/2024 12:42 PM
My App crashes when I try to print some byte-array content using list.do: print "0x$(%02x it)"
Decoding by `jag`, device has version <2.0.0-alpha.146> ****************************************************************************** Class 'Null_' does not have any method 'class-name-for'. 0: Instance.stringify D:\a\toit\toit\tools\mirror.toit:98:27 1: List.stringify.<block> <sdk>\core\collections.toit:517:28 2: SmallInteger_.repeat <sdk>\core\numbers.toit:1224:3 3: List.stringify <sdk>\core\collections.toit:515:10 4: Array.stringify D:\a\toit\toit\tools\mirror.toit:113:37 5: simple-interpolate-strings_ <sdk>\core\utils.toit:252:25 6: Error.lookup-failure-stringify D:\a\toit\toit\tools\mirror.toit:167:14 7: Error.stringify D:\a\toit\toit\tools\mirror.toit:281:40 8: handle-system-message D:\a\toit\toit\tools\system_message.toit:51:28 9: decode-system-message D:\a\toit\toit\tools\system_message.toit:89:3 10: main.<lambda> D:\a\toit\toit\tools\system_message.toit:75:16 11: Command.run <pkg:pkg-cli>\cli.toit:186:34 12: main D:\a\toit\toit\tools\system_message.toit:76:11 jag decode WyNVBVVYU1UQdjIuMC4wLWFscGhhLjE0NlNVAFskVSNVEGSFUyl6zVFVgQRjaNGCFctbI1UEVUVTVQ1MT09LVVBfRkFJTEVEWyNsAAAAA1VBVQNbI1UDSQHgVRZbI2wAAAACVUlVFlsjVQJVU1sjVRdbI2wAAAADVUZVAGwAAMW0WyNsAAAAA1VGVQFJHdlbI2wAAAADVUZVAkkd8FsjbAAAAANVRlUDSR2eWyNsAAAAA1VGVQRsAADGBlsjbAAAAANV RlUFbAAAxHlbI2wAAAADVUZVBmwAALr1WyNsAAAAA1VGVQdsAADGRFsjbAAAAANVRlUISRNHWyNsAAAAA1VGVQlJHdlbI2wAAAADVUZVCkkd8FsjbAAAAANVRlULSR2eWyNsAAAAA1VGVQxJE3FbI2wAAAADVUZVDUkTjlsjbAAAAANVRlUOSQYpWyNsAAAAA1VGVQ9JHFpbI2wAAAADVUZVEEkd2VsjbAAAAANVRlURSR3wWyNsAAAAA1VGVRJsAACAuFsjbAAAAAN VRlUTbAAAgNBbI2wAAAADVUZVFEl/9FsjbAAAAANVRlUVbAAAgHxbI2wAAAADVUZVFkkccw== jag: Failed to decode line. ******************************************************************************
theHuanter
theHuanter 04/30/2024 12:44 PM
actually I am not sure if that has to do with the printing it is an assumption
floitsch
floitsch 05/01/2024 08:03 AM
It's a null-pointer exception in the code that tries to decode the error.
I think you only get the exception if you don't have the snapshot (but I could be wrong).
Once fixed the error is:
Lookup failed message:[480, 22, instance of class 22].
3 messages in total