Ticket #7306 (new defect)

Opened 6 years ago

Last modified 6 years ago

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:
Action Needed: never set Verified: no
Deployments affected: Blocked By:
Blocking:

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

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

Change History

Changed 6 years ago by dsd

Changed 6 years ago by marco

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

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.

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 ).

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

Changed 6 years ago by marco

  • keywords 8.2.0:? removed
  • next_action set to never set
  • milestone changed from 8.2.0 (was Update.2) to 9.1.0

Changed 6 years ago by mstone

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