You are here

[Fixed] InfraRecorder Portable 0.50 Rev 3 loses settings

13 posts / 0 new
Last post
Bruce Pascoe
Offline
Last seen: 12 years 3 months ago
Joined: 2006-01-15 16:14
[Fixed] InfraRecorder Portable 0.50 Rev 3 loses settings

InfraRecorder 0.50 Rev 3 keeps losing its settings--after configuring it, closing it, and relaunching it, all its settings have been reset.

I tried tracking this down myself, but I couldn't fix it. However, I did find something interesting: Settings.xml is apparently being corrupted very badly in the process of being moved from Data\settings to App\InfraRecorder, resulting in this XML:

			<TempPath>C:\Users\Ginny\AppData\Local\Temp\InfraRecorderPortable\</TempPath>
			<ShellDir>L
			<WindowLeft></WindowLeft>
			<WindowRight></WindowRight>
			<WindowTop></WindowTop>
			<WindowBottom></WindowBottom>

Any chance this could be fixed?

solanus
solanus's picture
Offline
Last seen: 9 years 6 months ago
Joined: 2006-01-21 19:12
Workaround

Try this:
Exit Infrarecorder.
Browse to App\InfraRecorder, cut your settings.xml and paste into Data\settings (if there's one already there, replace it with the one from App\InfraRecorder.
Now restart Infrarecorder, and it will create a well-formed settings.xml in App\InfraRecorder, and it will now remember your settings.

Hopefully this can be fixed for the next release, but at least this works.

I made this half-pony, half-monkey monster to please you.

John T. Haller
John T. Haller's picture
Offline
Last seen: 1 hour 49 min ago
AdminDeveloperModeratorTranslator
Joined: 2005-11-28 22:21
Reset

Did you try reinstalling and resetting your settings? 0.50 is a bit of a buggy release, unfortunately. I stopped using it (the local release I mean) due to the desktop icons being hidden bug. Moving a file isn't corrupting it. And we do a simple replace on the strings in it, we don't work directly with the XML itself.

Sometimes, the impossible can become possible, if you're awesome!

Bruce Pascoe
Offline
Last seen: 12 years 3 months ago
Joined: 2006-01-15 16:14
...

This happened from a completely clean install, so I doubt reinstalling will help. I also don't remember Revision 2 having the issue. Like I said, the XML I posted above was the result after the file was moved to the app folder (as in, that was the XML file in its entirety).

I'm thinking there might be a regression in the string replacement code between Rev 2 and 3, but I couldn't find anything when I glanced at the source. I'll look again later if you don't find it in the meantime.

John T. Haller
John T. Haller's picture
Offline
Last seen: 1 hour 49 min ago
AdminDeveloperModeratorTranslator
Joined: 2005-11-28 22:21
Rev 3 Desktop

I think all rev 3 added was the partial fix for InfraRecorder's desktop icon hiding bug.

Sometimes, the impossible can become possible, if you're awesome!

Bruce Pascoe
Offline
Last seen: 12 years 3 months ago
Joined: 2006-01-15 16:14
Hm...

Oh well, I guess I'll take another look at the launcher source in the morning. Just out of curiosity, would it be feasible to just port the IRP launcher to PAL? I know PAL has built-in string replacement and such...

solanus
solanus's picture
Offline
Last seen: 9 years 6 months ago
Joined: 2006-01-21 19:12
Did my workaround work for

Did my workaround work for you?

I made this half-pony, half-monkey monster to please you.

Bruce Pascoe
Offline
Last seen: 12 years 3 months ago
Joined: 2006-01-15 16:14
...

What, the above workaround? Um, after exiting InfraRecorder, the settings.xml is moved out of the app folder back to Data\settings by the launcher. Therefore once I've exited it there's nothing to move...

solanus
solanus's picture
Offline
Last seen: 9 years 6 months ago
Joined: 2006-01-21 19:12
Workaround, revisited.

My logic is that if you delete the settings.xml, the app will re-create it.
On my first attempt at a workaround, I may have been mistaken about closing InfraRecorder first, so I tried it again with a clean install.
Immediately after install, there is no settings.xml.
Once you start the app, it creates the malformed xml, and then upon exiting, it moves it to Data/Settings.
So I started up Infrarecorder and deleted BOTH copies, then while IR is still open, I changed the settings (like disabling the smoke effect).
Then I closed IR, and checked the file in Data/Settings. It was well-formed.
Starting up IR again, the file is moved back to the App/Infrarecorder folder, but there it's screwed up again!
I think IR is making a new file faster than the launcher can move the old one.

So I found that this works:
Start IR.
Delete both copies of settings.xml.
Change a setting.
Close IR.
Check the settings.xml in Data/Settings, it should be well-formed.
Copy this to App/Infrarecorder so that the good file exists in both locations.
Now you should be able to save settings.

I hope this works.

EDIT I think I know what's going on. If there is no file in App/Infrarecorder, it makes a default. PA Launcher moves this file upon close. IR is faster making a new one than the launcher is at moving the old one. But if the file exists, IR doesn't make a new one and the launcher does its job right.

I made this half-pony, half-monkey monster to please you.

Bruce Pascoe
Offline
Last seen: 12 years 3 months ago
Joined: 2006-01-15 16:14
More testing

Did some more testing, there's indeed a regression between Rev 2 and Rev 3. Rev 2 saves settings just fine, Rev 3 loses them at every launch. Now here's the odd thing: I compared the two launchers in WinMerge, and indeed nothing was changed in the config rewriting code. I'm stumped. Did any plugins change (even if just a version bump) between the two revisions? Perhaps a regression in the Unicode-to-ANSI function or the config plugin...

Mark Sikkema
Offline
Last seen: 12 years 7 months ago
Developer
Joined: 2009-07-20 14:55
I've been working on fixing

I've been working on fixing this the last few days, did a re-write of the xml-file handling, and re-compiled it with unicode Nsis.

I'm sending it John as well, but just to make sure it works fine for everybody, I thought to put it out here!

So, for anyone who wants to test this: InfraRecorderPortable 0.50 Developement test 1.paf.exe
MD5: bdd7031088eb8928c306ce344d0f580d

Formerly Gringoloco
Windows XP Pro sp3 x32

sar3th
sar3th's picture
Offline
Last seen: 10 years 2 months ago
Joined: 2009-02-13 03:57
Tested language switching and saving of settings

Hi,
i just tested IRp0.5DT1 on WinXP Sp3 German. Here are my results:

  • language switching works properly when launching from the platform
  • settings are properly stored, settings.xml does not seem to be corrupted and the encoding matches
  • when launching IRp without the platform, its language defaults to english. changing it manually did not work on the first try, but on the second. this might be unrelated, i was unable to reproduce this behaviour!
Bruce Pascoe
Offline
Last seen: 12 years 3 months ago
Joined: 2006-01-15 16:14
Works great

Tested last night and this morning, and it works great. Settings are properly remembered between sessions now. No other issues that I could see. Smile

Log in or register to post comments