Input device non-ascii name get's garbled in preferences file

Bug #306322 reported by mahfiaz on 2008-12-08
24
This bug affects 4 people
Affects Status Importance Assigned to Milestone
Inkscape
Undecided
Jon A. Cruz

Bug Description

Creating a bug report from IndelibleInk's question https://answers.launchpad.net/inkscape/+question/53864/

System Details:

Inkscape Version: 0.46
OS: Win XP, SP3
Hardware: Intel Core 2 Quad, 2.4 GHz // 3 Gigs memory // NVidia GeForce 8500 GT // "Genius" brand pressure-sensitive tablet, model M609

Problem Description:

When starting Inkscape, I get an error message that states:

"C:\Documents and Settings\(profile)\Application Data\Inkscape\preferences.xml not a valid XML file, or you don't have permissions on it. Inkscape will run with default settings. New settings will not be saved."

Background:

This problem started happening after I went into File --> Input Devices, and enabled "Pressure". There is a "Device" combo box at the top of that dialog; and the only item in the list was a string of garbled text, followed by "" Pressure Stylus"

Using the mouse to select the drop-downs would only give me an option of "none", "1" or "2"; but if I re-selected the garbled-text Input Device using the stylus itself, it then allowed me to set "Pressure" to "3". I can save the settings, and Inkscape works... but only as long as the program is running.

When I close Inkscape and run it again, it loads preferences.xml, and trips over the string of junk text:

°òÙà†ôxø" Pressure Stylus

After I got the error message, I looked at the preferences.xml file, and I found the same string of garbled text:

  <group
     id="devices">
    <group
       id="Core Pointer"
       mode="screen"
       axes="x;y;"
       keys="" />
    <group
       id="°òÙà†ôxø&quot; Pressure Stylus"
       mode="screen"
       axes="x;y;pressure;"
       keys="" />
  </group>

(I'm not sure if the garbled characters will display properly... if it helps, here are the unicode codes for each of the characters in that sequence before the ampersand: 00B0, 00F2, 00D9, 0003, 00E0, 2020, 00F4, 0003, 0078, 00F8.)

Does Inkscape just not recognize this tablet correctly? I have installed the latest drivers (driver version 3.33, firmware version 1.7, according to the "Pen Pad" tool in the Control Panel.

Other notes:

 - After I get the error message, the "Input Devices" dialog box now just says "Pressure Stylus" in the Device combo box (without the garbled text). Pressure sensitivity is disabled, and cannot be re-enabled (which makes sense, if settings cannot be saved).
 - I can fix the problem by simply editing the preferences.xml file, and deleting the garbage text so that it looks like id="Pressure Stylus" However, going back into that Input Devices preferences screen and saving preferences will cause the problem to return.
 - After manually fixing the problem, pressure-sensitivity actually *works* - however, if you go back into the Input Devices dialog box, it *looks* as if it was set back to the default settings (with "Pressure" set to "none" again).
 - This same tablet works fine with other programs (such as Photoshop), so I think that the problem is limited to Inkscape (though it might have something to do with the way that the tablet represents itself to the system, I'm not sure.)

jfb (jf-barraud) wrote :

Similar bug here:
System: windows XP
Tablet: Trust/HyperPen.

If pressure sensibility is disabled in the preferences, the tablet is supported.

If pressure sensibility is enabled, the tablet only works outside the canvas (menus, etc..., but no drawing).
When trying to use the input device menus/dialog, the tablet seems to be known under an unreadable name:

楁瑰步吠扡敬tЕ﫜&quot;ਖ粒 牐獥畳敲匠祴畬s碀Є쏐ѡ行&quot;ꊛ櫅
(this is a copy/paste of what I found in preferences.xml, but I see little squares instead of question marks...)

Notice the tablet works fine in the Gimp. It is known with the same unreadable name, but works fine.
I went into gimp's "devicerc" file, where it reads as:
(GimpDeviceInfo "楁瑰步吠扡敬t桝灀ú類\"菱\"᫷旄\020 牐獥畳敲匠祴畬s桐ɿ\001" ...

The two are not the same, so it might be related to some text conversion when writing to preferences.xml?
I'm using svn 20511, but the bug has been there for a long time.

jfb (jf-barraud) on 2009-01-14
Changed in inkscape:
status: New → Confirmed
Jon A. Cruz (jon-joncruz) wrote :

if we can get some feedback going, I'll see what I do to look at this area and toss in some checks.

Changed in inkscape:
assignee: nobody → jon-joncruz
tags: added: tablet
su_v (suv-lp) on 2009-10-05
tags: added: ui-preferences
mynthon (mynthon1) wrote :

same here: tablet pentagram o'pen xl. Windows xp sp3 32bit, Inkscape 0.47pre4 , built Oct 12 2009
screenshots included

TeresaW (tandrward) wrote :

This bug affects me too, but I can't see here what the solution was. It would be nice not to have to reset the "input device" each time I open Inkscape, so if a solution was found and I missed it, would you let me know what the outcome was please?

Dodgy (mike-mikegreen) wrote :

This bug is still present in .47

ktrides2 (kt-rides2) wrote :

I have the same issue. Since adding a tablet and selecting input device. I get the error every time I open Inkscape and I have to reset my preferences.

I have Inkscape .47, Windows XP, SP3 and a Genius G-Pen F610

jazzynico (jazzynico) on 2010-05-22
tags: added: preferences ui
removed: ui-preferences
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers