Bug 3357 - Hob doesn't tell me when my build fails because I ran out of disk space
Summary: Hob doesn't tell me when my build fails because I ran out of disk space
Status: VERIFIED FIXED
Alias: None
Product: Hob
Classification: Build System, Metadata & Runtime
Component: hob (show other bugs)
Version: 1.3
Hardware: x86 Multiple
: Medium normal
Target Milestone: 1.4
Assignee: Cristiana Voicu
QA Contact:
URL:
Whiteboard: merged
Depends on:
Blocks:
 
Reported: 2012-10-30 12:27 UTC by Belen Barros Pena
Modified: 2013-04-03 09:15 UTC (History)
8 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: ---


Attachments
out_of_disk_space.png (70.97 KB, image/png)
2012-10-30 12:27 UTC, Belen Barros Pena
no flags Details
out_of_disk_space_log.png (128.50 KB, image/png)
2012-10-30 12:27 UTC, Belen Barros Pena
no flags Details
out-of-disk-space-error-message-suggestion.pdf (68.48 KB, application/pdf)
2012-10-30 12:28 UTC, Belen Barros Pena
no flags Details
no_disk_space (90.20 KB, image/png)
2012-11-19 09:05 UTC, Cristiana Voicu
no flags Details
blank-disk-full-error.png (436.49 KB, image/png)
2012-11-28 14:57 UTC, Belen Barros Pena
no flags Details
Screen with var for disk not set (58.36 KB, image/gif)
2013-04-02 10:38 UTC, Cristiana Voicu
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Belen Barros Pena 2012-10-30 12:27:36 UTC
Created attachment 912 [details]
out_of_disk_space.png

When my build fails due to lack of disk space, Hob just shows me the generic build fail message, which doesn't help me solve the problem  (see attached out_of_disk_space.png)

Bitbake doesn't help much either: when I look at the log to try to determine what went wrong, I just get a "task do_unpack: Failed" (see attached out_of_disk_space_log.png)

Hob should definitely display a special error message when I run out of disk space, so I know what to do to solve the problem. It could be something like what's in the attachment out-of-disk-space-error-message-suggestion.pdf

Scott: would you mind reviewing the message text? 

Thanks!
Comment 1 Belen Barros Pena 2012-10-30 12:27:56 UTC
Created attachment 913 [details]
out_of_disk_space_log.png
Comment 2 Belen Barros Pena 2012-10-30 12:28:21 UTC
Created attachment 914 [details]
out-of-disk-space-error-message-suggestion.pdf
Comment 3 Cristiana Voicu 2012-11-08 15:21:47 UTC
I think that first this should be implemented in bitbake, and hob should just show the message bitbake sends.
Comment 4 Paul Eggleton 2012-11-12 17:19:46 UTC
There is already built-in functionality to handle this, it just isn't enabled by default, and I'm unsure as to how it shows up within Hob. Cristiana, could you please enable this by setting the BB_DISKMON_DIRS and/or BB_DISKMON_WARNINTERVAL? There is some preliminary documentation here:

http://www.yoctoproject.org/docs/latest/poky-ref-manual/poky-ref-manual.html#var-BB_DISKMON_DIRS

Ideally we should enable this by default, but we would need to determine what the sensible default values should be.
Comment 5 Cristiana Voicu 2012-11-19 09:05:08 UTC
Thank you Paul for information.

Belen,
  I have implemented this, but I have one question. Isn't ok to show also  "check the issue..." besides the costum message? Please check no_disk_space.png attachement to understand what I'm saying.
Comment 6 Cristiana Voicu 2012-11-19 09:05:37 UTC
Created attachment 942 [details]
no_disk_space
Comment 7 Belen Barros Pena 2012-11-19 12:21:45 UTC
Hi Cristiana,

Nice work! :) Yes, I think you are right, although could we change the word 'information' to 'tab' so that the line says: "Check the 'Issues' tab for more details"? It's just more specific about what you need to look at.

Other small details to fix:

- A single line break for the last sentence looks a bit strange. Could we either add a second line break or eliminate the line break so that the whole message takes a single paragraph?

- I think the 'Issues' tab should be selected when this error comes up. That way, I can see the additional information straight away without it being mixed with the build log.

- The 3 buttons should be (from left to right): 'Restart the build', 'Edit image' and 'Open log'

Thanks!!

Belen

I think the idea would be to select the "Issues" tab whenever this error comes up. So 

(In reply to comment #5)
> Thank you Paul for information.
> 
> Belen,
>   I have implemented this, but I have one question. Isn't ok to show also 
> "check the issue..." besides the costum message? Please check
> no_disk_space.png attachement to understand what I'm saying.
Comment 8 Cristiana Voicu 2012-11-26 09:40:40 UTC
Patch merged to master. To test this you need a disk full of something and to set the BB_DISKMON_DIRS and/or BB_DISKMON_WARNINTERVAL variables as Paul said. I have opened a bug to have this variables by default in local.conf.
Comment 9 Belen Barros Pena 2012-11-28 14:57:10 UTC
Created attachment 956 [details]
blank-disk-full-error.png

Hi Cristiana,

This is working pretty nicely :) We are just missing a '.' at the end of the error message. This is going to sound a bit silly, but it would be nice if we could add it in.

I've also discovered by chance that if BB_DISKMON_VARIABLE is not set in local.conf you get a blank screen (check the attached screenshot blank-disk-full-error.png). I know you've opened a bug to get this variable set in local.conf by default, but probably Hob should not break when it is not set. If the variable is not there or has a different value we should just display a generic build failure message (the one we normally show when a build fails).

What do you want me to do: reopen this bug or open a new one?

Thanks!!

Belen
Comment 10 Cristiana Voicu 2013-03-13 09:24:18 UTC
Hi Belen,

Sorry, I don't think I've seen this comment. Andreea from QA showed me. I will work on this one after I will finish the bug I'm working now.

Cristiana

(In reply to comment #9)
> Created attachment 956 [details]
> blank-disk-full-error.png
> 
> Hi Cristiana,
> 
> This is working pretty nicely :) We are just missing a '.' at the end of the
> error message. This is going to sound a bit silly, but it would be nice if
> we could add it in.
> 
> I've also discovered by chance that if BB_DISKMON_VARIABLE is not set in
> local.conf you get a blank screen (check the attached screenshot
> blank-disk-full-error.png). I know you've opened a bug to get this variable
> set in local.conf by default, but probably Hob should not break when it is
> not set. If the variable is not there or has a different value we should
> just display a generic build failure message (the one we normally show when
> a build fails).
> 
> What do you want me to do: reopen this bug or open a new one?
> 
> Thanks!!
> 
> Belen
Comment 11 Cristiana Voicu 2013-04-02 10:38:48 UTC
Created attachment 1146 [details]
Screen with var for disk not set

When I have no var for disk set, I don't receive the blank screen. I see the screen as you have an usual error. Please see the attachement. Andreea can you please check it too?

Thanks,
Cristiana
Comment 12 Belen Barros Pena 2013-04-03 09:15:16 UTC
(In reply to comment #11)
> Created attachment 1146 [details]
> Screen with var for disk not set
> 
> When I have no var for disk set, I don't receive the blank screen. I see the
> screen as you have an usual error. Please see the attachement. Andreea can
> you please check it too?
> 
> Thanks,
> Cristiana

Just tested this again, and I didn't get the blank screen either when BB_DISKMON_VARIABLE is not set: I got the standard error.
Comment 13 Belen Barros Pena 2013-04-03 09:15:37 UTC
Verified on 92aeb31341b28b193d616ab5cf38af1b9673e37d