Opened 6 years ago

Last modified 6 years ago

#7306 new defect

sugar shouldn't save a configuration value it can't restore

Reported by: dsd Owned by: marco
Priority: normal Milestone: 9.1.0-cancelled
Component: sugar Version:
Keywords: 8.2.0:- 9.1.0:? Cc:
Blocked By: Blocking:
Deployments affected: Action Needed: never set
Verified: no

Description

Running sugar-0.81.3-1.olpc3 on olpc3-19.

Sound is a little screwy on this setup due to olpc user not having access to /dev/snd/*

sugar crashes on startup complaining:
ValueError: invalid literal for float(): None

Attachments (1)

sugarlogsnd.txt (2.5 KB) - added by dsd 6 years ago.

Download all attachments as: .zip

Change History (7)

Changed 6 years ago by dsd

comment:1 Changed 6 years ago by marco

  • Milestone changed from Never Assigned to Update.2 (8.2.0)

comment:2 Changed 6 years ago by dsd

In this setup, sugar writes "volume = None" to ~/.sugar/default/config every time it is run. Then on next launch, it bails out with the above trace.

comment:3 Changed 6 years ago by mtd

The problem instance reported won't happen with the latest git, but I think the class of problems that we might want to solve is: sugar shouldn't save a configuration value it can't restore (tangent: consider http://www.codesimplicity.com/archives/15 ).

comment:4 Changed 6 years ago by marco

  • Keywords 8.2.0:? added
  • Summary changed from sugar crashes loading sound config to sugar shouldn't save a configuration value it can't restore

comment:5 Changed 6 years ago by marco

  • Action Needed set to never set
  • Keywords 8.2.0:? removed
  • Milestone changed from 8.2.0 (was Update.2) to 9.1.0

comment:6 Changed 6 years ago by mstone

  • Keywords 8.2.0:- 9.1.0:? added
Note: See TracTickets for help on using tickets.