Now the games come as the state of Rio de Janeiro awaits emergency funding of 2.9 billion reais to ensure financing for public services.
The Olympics also will play out with a backdrop of political instability as Brazil's Senate tries suspended President Dilma Rousseff, who is accused of accounting tricks in the government budget, to determine whether she will be ousted for good.
The trial is expected to finish after the games.
The state in recent months, as it races to complete a new subway line and other key pieces of infrastructure promised for the Olympics, has missed crucial debt payments and has been forced to postpone purchasing and salary payments for everyone from public health workers to police.
Rio's acting governor, Francisco Dornelles, earlier this month declared a financial emergency in the state because of budget shortfalls caused by a recession, plummeting oil revenues and a run-up in public expenditures in recent years.
He has fretted publicly that the Olympics could be "a big failure" if financing does not come through but Brazil's federal government has said that it will.
Earlier this week, police and firemen demonstrated at Rio's international airport, protesting their missed wages and greeting arriving passengers with a sign reading "Welcome to Hell".
- AAP