RomRaider

Open Source ECU Tools
 FAQ •  Register •  Login 

RomRaider

Documentation

Community

Developers

It is currently Mon May 20, 2013 2:38 am

All times are UTC - 5 hours [ DST ]





Post new topic Reply to topic  [ 28 posts ]  Go to page Previous  1, 2
Author Message
 Post subject: Re: RomRaider not saving any configurations
PostPosted: Wed May 09, 2012 11:49 pm 
Offline
Senior Member

Joined: Sat Feb 12, 2011 7:27 pm
Posts: 1099
Location: Australian STi & FozXT owner
dschultz wrote:
throttlehappy wrote:
crazymoet wrote:
how often do u really need to make changes to the def manager, most time my changes are temporary so having it not save every time works for me.


I am one of the ones writing new definitions and adding definitions for new tables to old maps... my answer to your question? Daily :)

You must have an old version then. I never have to do that. Not on Win XP (obviously), Vista 64, or Win7 64 systems that I have.
Where is your settings file and was it created while you ran As Admin? Maybe it has the wrong privileges (Admin) in your own home directory.
Or is it in All Users when it should be in your dir???


Latest version :) I work around it as I know what the issue is and it does not bother me as I just have a permanent Run as Administrator in Properties :) Issue only came up with a few of my customers who had issues getting the base ecu_defs.xml file and their extra definitions to 'stick'

Yes, it is in my User Directory, not All Users. Win7 64 system, no major changes from a standard Microfail build.

_________________
Amateurs built the Ark, Professionals built Titanic
White S206 - PBMS Rollcage, HKS DP, Ti catback
Blue SH9 XT - E85 32bit Multimode Test Vehicle(IAM = 2.000)
Black N14 SSS Pulsar(with a 3.5L V6 Altima swap) getting an EZ30R ECU


Top
 Profile  
 
 Post subject: Re: RomRaider not saving any configurations
PostPosted: Thu May 10, 2012 12:46 am 
Offline
RomRaider Developer

Joined: Wed May 20, 2009 9:49 pm
Posts: 3661
Location: Canada eh!
So what are the permissions on the .RomRaider directory and the settings.xml file inside?


Top
 Profile  
 
 Post subject: Re: RomRaider not saving any configurations
PostPosted: Thu May 10, 2012 4:43 am 
Offline
Experienced
User avatar

Joined: Thu Apr 19, 2012 3:44 am
Posts: 374
dschultz wrote:
Fearless wrote:
FWIW, I saw this running from the latest download on the mac, too.

Why, could the installer script not find your home dir? Oh, never mind you never installed it did you, just ran if from a source build you did which it's not correctly setup for.

LOL :-p I must be missing something, but if the app runs and runs correctly with all libs and data files and so on available, what has that got to do with finding users's home and writing a file there? Is it assuming (rightfully or not) that the base dir of the execution is in a specific place and working from there?

OK, did a quick search to paste example code and found a Java bug, with work arounds:

http://bugs.sun.com/view_bug.do?bug_id=4787931
http://stackoverflow.com/questions/2134 ... g-resolved
http://www.timehat.com/javas-user-home- ... n-windows/

So maybe it IS being done properly, and just not working. Perhaps we can do something platform specific for this using the System.getenv("USERPROFILE") command post testing for windows/lin/mac.

Another point is that it shouldn't fail quietly. If it can't write it down, then either it's being checked for and just not done, or it's trying, throwing an exception and being caught and quietly ignored. A popup or some other form of visual error seems more appropriate.

This thread seems more troubleshoot/dev than discuss, to me, now.

Fred.

_________________
The type of scooby that I most enjoy!


Top
 Profile  
 
 Post subject: Re: RomRaider not saving any configurations
PostPosted: Thu May 10, 2012 10:01 am 
Offline
RomRaider Developer

Joined: Wed May 20, 2009 9:49 pm
Posts: 3661
Location: Canada eh!
Fearless wrote:
dschultz wrote:
Fearless wrote:
FWIW, I saw this running from the latest download on the mac, too.

Why, could the installer script not find your home dir? Oh, never mind you never installed it did you, just ran if from a source build you did which it's not correctly setup for.

LOL :-p I must be missing something, but if the app runs and runs correctly with all libs and data files and so on available, what has that got to do with finding users's home and writing a file there? Is it assuming (rightfully or not) that the base dir of the execution is in a specific place and working from there?

Am I missing something or are you? The app is looking for the settings.xml file to be able to load the non-default user defined parameters. Usually defined from a previous session. Upon app exit the settings file is updated. If no settings.xml file exists (first run) it is created and updated on app exit. This is why user.home is used/needed.

Maybe System.getenv("USERPROFILE") is a better solution on Windows if user.home is not consistent. I need to see where the settings.xml is residing on problematic systems.
Use Help -> Debugging Level -> Open Debug Log Location, what dir does it resolve to?


Top
 Profile  
 
 Post subject: Re: RomRaider not saving any configurations
PostPosted: Thu May 10, 2012 10:32 am 
Offline
Experienced
User avatar

Joined: Thu Apr 19, 2012 3:44 am
Posts: 374
Neither of us were missing anything except the fact that Java is broken on windows. It appears to be essential to NOT use the user.home field on Windows and instead use another option, perhaps what I mentioned.

It might have helped if I'd dug into the code to see that it WAS being done "right" already and/or for you to say "already doing that", however I am/was too busy for that just at the moment.

The above links pretty much spell out how it should be done to avoid the bug. Slap it on a TODO list and we'll get there eventually :-)

Fred.

_________________
The type of scooby that I most enjoy!


Top
 Profile  
 
 Post subject: Re: RomRaider not saving any configurations
PostPosted: Thu May 10, 2012 11:13 am 
Offline
Senior Member

Joined: Sat Feb 12, 2011 7:27 pm
Posts: 1099
Location: Australian STi & FozXT owner
dschultz wrote:
So what are the permissions on the .RomRaider directory and the settings.xml file inside?


Full control on file and directory :) I also went in, changed the value to read, applied, then back to full control just in case.

_________________
Amateurs built the Ark, Professionals built Titanic
White S206 - PBMS Rollcage, HKS DP, Ti catback
Blue SH9 XT - E85 32bit Multimode Test Vehicle(IAM = 2.000)
Black N14 SSS Pulsar(with a 3.5L V6 Altima swap) getting an EZ30R ECU


Top
 Profile  
 
 Post subject: Re: RomRaider not saving any configurations
PostPosted: Thu May 10, 2012 1:11 pm 
Offline
RomRaider Developer

Joined: Wed May 20, 2009 9:49 pm
Posts: 3661
Location: Canada eh!
And where does the .RomRaider directory live on your system?


Top
 Profile  
 
 Post subject: Re: RomRaider not saving any configurations
PostPosted: Fri May 11, 2012 1:13 am 
Offline
RomRaider Developer

Joined: Wed May 20, 2009 9:49 pm
Posts: 3661
Location: Canada eh!
If you get a rr_system.log then there's no permissions issue with the directory for creating, writing files to it. What files are in the .RomRaider directory?


Top
 Profile  
 
 Post subject: Re: RomRaider not saving any configurations
PostPosted: Wed May 16, 2012 12:24 am 
Offline
Senior Member

Joined: Sat Feb 12, 2011 7:27 pm
Posts: 1099
Location: Australian STi & FozXT owner
Attachment:
RR_system.png


If I add a definition to ECU Manager(in non-Admin privilege mode), save etc and then go to the folder, press F5 etc the date wont change despite having done what I consider a change.

Exit RR and no date change takes place etc.


You do not have the required permissions to view the files attached to this post.

_________________
Amateurs built the Ark, Professionals built Titanic
White S206 - PBMS Rollcage, HKS DP, Ti catback
Blue SH9 XT - E85 32bit Multimode Test Vehicle(IAM = 2.000)
Black N14 SSS Pulsar(with a 3.5L V6 Altima swap) getting an EZ30R ECU


Top
 Profile  
 
 Post subject: Re: RomRaider not saving any configurations
PostPosted: Wed May 16, 2012 9:36 am 
Offline
RomRaider Developer

Joined: Wed May 20, 2009 9:49 pm
Posts: 3661
Location: Canada eh!
The simple fact that you have a backup profile, rr_system.log in there indicates that there's something else going on.
BTW: RR only saves its settings upon a clean Exit. There is no "save settings" function.

Try this:
  • With RR not running move those three files out of that directory (drag them somewhere safe)
  • Start RR Editor as a normal user (you'll get a warning about no defs), acknowledge it.
  • Add a def with the Defs manager
  • Exit RomRadier
Tell me what shows up in that Directory and post the rr_system.log please.

Yo can drag your other files back in to replace what's there.


Top
 Profile  
 
 Post subject: Re: RomRaider not saving any configurations
PostPosted: Wed May 16, 2012 9:51 am 
Offline
Senior Member

Joined: Sat Feb 12, 2011 7:27 pm
Posts: 1099
Location: Australian STi & FozXT owner
dschultz wrote:
The simple fact that you have a backup profile, rr_system.log in there indicates that there's something else going on.
BTW: RR only saves its settings upon a clean Exit. There is no "save settings" function.

Try this:
  • With RR not running move those three files out of that directory (drag them somewhere safe)
  • Start RR Editor as a normal user (you'll get a warning about no defs), acknowledge it.
  • Add a def with the Defs manager
  • Exit RomRadier
Tell me what shows up in that Directory and post the rr_system.log please.

Yo can drag your other files back in to replace what's there.


1. Settings File not found. Using Default settings

2. Added a definition

3.
0 INFO [main] - RomRaider 0.5.4 Beta RC1 Build: 370
0 INFO [main] - When requesting assistance at http://www.romraider.com please include the System Properties information below:
10 INFO [main] - Wednesday, 16 May 2012 11:43:31 PM
11 INFO [main] - System Properties:
{java.runtime.name=Java(TM) SE Runtime Environment
awt.useSystemAAFontSettings=lcd
sun.boot.library.path=C:\Program Files (x86)\Java\jre6\bin
java.vm.version=20.6-b01
sun.java2d.d3d=false
java.vm.vendor=Sun Microsystems Inc.
java.vendor.url=http://java.sun.com/
path.separator=;
java.vm.name=Java HotSpot(TM) Client VM
file.encoding.pkg=sun.io
sun.java.launcher=SUN_STANDARD
user.country=AU
sun.os.patch.level=Service Pack 1
java.vm.specification.name=Java Virtual Machine Specification
user.dir=C:\Program Files (x86)\RomRaider
java.runtime.version=1.6.0_31-b05
java.awt.graphicsenv=sun.awt.Win32GraphicsEnvironment
java.endorsed.dirs=C:\Program Files (x86)\Java\jre6\lib\endorsed
os.arch=x86
java.io.tmpdir=C:\Users\HOMEMR~1\AppData\Local\Temp\
line.separator=

java.vm.specification.vendor=Sun Microsystems Inc.
user.variant=
os.name=Windows 7
sun.jnu.encoding=Cp1252
java.library.path=lib/windows
java.specification.name=Java Platform API Specification
java.class.version=50.0
sun.management.compiler=HotSpot Client Compiler
os.version=6.1
user.home=C:\Users\HOME MRM
user.timezone=Australia/Sydney
java.awt.printerjob=sun.awt.windows.WPrinterJob
file.encoding=Cp1252
java.specification.version=1.6
java.class.path=C:\Program Files (x86)\RomRaider\RomRaider.jar
user.name=HOME MRM
java.vm.specification.version=1.0
sun.java.command=C:\Program Files (x86)\RomRaider\RomRaider.jar
java.home=C:\Program Files (x86)\Java\jre6
sun.arch.data.model=32
user.language=en
java.specification.vendor=Sun Microsystems Inc.
awt.toolkit=sun.awt.windows.WToolkit
java.vm.info=mixed mode
sharing
java.version=1.6.0_31
java.ext.dirs=C:\Program Files (x86)\Java\jre6\lib\ext;C:\Windows\Sun\Java\lib\ext
sun.boot.class.path=C:\Program Files (x86)\Java\jre6\lib\resources.jar;C:\Program Files (x86)\Java\jre6\lib\rt.jar;C:\Program Files (x86)\Java\jre6\lib\sunrsasign.jar;C:\Program Files (x86)\Java\jre6\lib\jsse.jar;C:\Program Files (x86)\Java\jre6\lib\jce.jar;C:\Program Files (x86)\Java\jre6\lib\charsets.jar;C:\Program Files (x86)\Java\jre6\lib\modules\jdk.boot.jar;C:\Program Files (x86)\Java\jre6\classes
java.vendor=Sun Microsystems Inc.
swing.aatext=true
file.separator=\
java.vendor.url.bug=http://java.sun.com/cgi-bin/bugreport.cgi
sun.io.unicode.encoding=UnicodeLittle
sun.cpu.endian=little
sun.desktop=windows
sun.cpu.isalist=pentium_pro+mmx pentium_pro pentium+mmx pentium i486 i386 i86}

It did save this time :)

_________________
Amateurs built the Ark, Professionals built Titanic
White S206 - PBMS Rollcage, HKS DP, Ti catback
Blue SH9 XT - E85 32bit Multimode Test Vehicle(IAM = 2.000)
Black N14 SSS Pulsar(with a 3.5L V6 Altima swap) getting an EZ30R ECU


Top
 Profile  
 
 Post subject: Re: RomRaider not saving any configurations
PostPosted: Wed May 16, 2012 12:46 pm 
Offline
Experienced
User avatar

Joined: Thu Apr 19, 2012 3:44 am
Posts: 374
dschultz wrote:
BTW: RR only saves its settings upon a clean Exit. There is no "save settings" function.

Maybe I've been using a mac too long, but I really don't like that. Something more for the list :-)

_________________
The type of scooby that I most enjoy!


Top
 Profile  
 
 Post subject: Re: RomRaider not saving any configurations
PostPosted: Wed May 16, 2012 2:59 pm 
Offline
RomRaider Developer

Joined: Wed May 20, 2009 9:49 pm
Posts: 3661
Location: Canada eh!
throttlehappy wrote:
It did save this time :)

So you are all fixed up then, cool!


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 28 posts ]  Go to page Previous  1, 2

All times are UTC - 5 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
Style based on FI Subsilver by phpBBservice.nl