riff needs better error messages

Bug #985474 reported by Adrian Bunk
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
IglooCommunity
Fix Released
Wishlist
Kalle Vahlman

Bug Description

Much guesswork is involved when trying to figure out the problem when riff reports an error.

As an example, in bug 984647:
15:09:12 - Listening on USB for device connection...
15:09:12 - Connected Device@0
15:09:14 - LCD ERROR: Error while initializing device -1
15:09:14 - COMMAND ERROR: Command execution failed -1
15:09:14 - Disconnected Device@0
15:09:14 - LCD ERROR: Failed to destroy LCD context 10056

The -1 in "LCD ERROR: Error while initializing device -1" comes from InitializeDut::initializeHardware(), which returns -1 in 13 different places.

When supporting users with problems, I want to see what exactly failed and not get the same return value for many different problems.

And for reducing the number of users that need help, riff should print useful error messages that tell what exactly failed (e.g. "Sending TOC+ISSW to device failed").

Note that InitializeDut::initializeHardware() is just an example, and this bug is about the error handling and reporting in riff in general.

Revision history for this message
Sunil Kamath (sunil-kamath) wrote :

You can use riff in verbose mode. -v option.

Changed in igloocommunity:
importance: Medium → Wishlist
Revision history for this message
Adrian Bunk (adrian-bunk-9) wrote :

-v gives in the case of bug 984647 a cryptic additional error message "UNKNOWN token".

In the case of InitializeDut::initializeHardware() there's not even any logging to to distinguish between the first five "return -1" cases.

An error message should describe the problem as clear as possible.

When an error often occurs due to some specific problem, riff should even give the user a hint how to resolve the problem (e.g. "foobar failed - please check at http://igloocommunity.org/support/Riff that you are using the correct configpack").

Revision history for this message
Sunil Kamath (sunil-kamath) wrote :

Yes very clear.
This is a feature request. Better error description from riff.
Will be very useful for end user who is trying to flash and finding issue during flash.

Changed in igloocommunity:
milestone: none → 2012.05
Changed in igloocommunity:
assignee: nobody → Ola Borgelin (olab)
Changed in igloocommunity:
milestone: 2012.05 → 2012.06
Revision history for this message
Srimanta Panda (srimanta-panda) wrote :

The fix from RIFF is committed. The code changes for RIFF is available, but still it depends on fix from loader communication GIT. Also it needs new release for riff-configpack and riff-loadercomm debian packages.

Changed in igloocommunity:
status: New → Fix Committed
Revision history for this message
Sunil Kamath (sunil-kamath) wrote :

Any updates on this?
Kalle,
do provide the new riff tool path.
We have dependency of this to debug other flashing issues.
Once you provide the same, we will be able to verify rest of the issues and its cause.

Revision history for this message
Kalle Vahlman (kvahlman) wrote :

The fixes are at git along with new packaging. A release will be made once we get a PPA set up for snowball tools.

Changed in igloocommunity:
assignee: Ola Borgelin (olab) → Kalle Vahlman (kvahlman)
Revision history for this message
Kalle Vahlman (kvahlman) wrote :

Tools PPA up and updated riff uploaded to it

Changed in igloocommunity:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.