Export as Bitmap, no files listed

Bug #431022 reported by randoogle
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Inkscape
Fix Released
Low
theAdib

Bug Description

After clicking "Browse..." in the "Export Bitmap" dialog box, I do not see any files listed, only folders. Also, in the "Save as type:" list, under PNG, I see a list of random characters (often not readable by my system). I see a different list of random "file types" each time I click on the "Browse..." button. This is very consistent. I have never seen it work correctly since installing the newer pre-releases. I'm assuming this might be from moving away from a non-Gtk menu? I can't remember if the menu was Gtk before or not.

I am running the win32 version (Inkscape 0.47pre2 r22153, built Aug 24 2009) on WindowsXP SP3.

Revision history for this message
randoogle (randyhunt1981) wrote :
Revision history for this message
theAdib (theadib) wrote :

there should be only *.png files listed. If there are no png files in the directory. nothing is listed.
I will check what cause the scrambled filter. This is my bad. :-(
Adib.

Changed in inkscape:
assignee: nobody → theAdib (theadib)
importance: Undecided → Low
milestone: none → 0.47
Revision history for this message
theAdib (theadib) wrote :

 to much characters converted (the \0-s separate display string from content). Works on my side. Win32 only.
someone to test? Adib.

Changed in inkscape:
status: New → In Progress
Revision history for this message
Alvin Penner (apenner) wrote :

I can confirm the random filetypes that show up in the drop-down box that specifies the filetype in Windows XP, Inkscape 0.47pre2. However, I believe the only filetype that is supported here is .png, so I would ignore the dropdown box entirely. I suspect that it should have been disabled as it was in Inkscape 0.46.

Revision history for this message
Alvin Penner (apenner) wrote :

woops, sorry about that, theAdib, our messages crossed each other somehow, please ignore my comment, I'll check out the patch on the next Windows build.

Revision history for this message
randoogle (randyhunt1981) wrote :

The folder I was looking at had several PNG's in it, yet nothing was listed.
That was the main part of my bug report. I guess I got carried away talking about that other gibberish in the drop-down (the only reason I looked at the drop down was because no files were listed and I figured that maybe there might be an "All Files" listing).

Revision history for this message
Alvin Penner (apenner) wrote :

confirmed, my system is also not showing the .png files that exist.

Revision history for this message
theAdib (theadib) wrote :

g_utf8_to_utf16 gets confused by the \0 (zeroes) in the string. All examples replace a funny char to \0 after the assignment.

Attached patch (should, must, hope ;-) ) solves this issue by handmade putting the \0's.
Btw, thanks for testing. Adib.

Revision history for this message
theAdib (theadib) wrote :

Alvin, randoogle, do you confirm latest patch solves the problem?

Revision history for this message
Alvin Penner (apenner) wrote :

sorry, I don't actually compile the code myself, I just work from the nightly Windows builds.

Revision history for this message
ScislaC (scislac) wrote :

Fix committed in r22274, thanks Adib!

With this patch, I am unable to test due to lack of access to a win32 box... can someone please report back once a build with it gets produced?

Revision history for this message
jazzynico (jazzynico) wrote :

Tested with r22275 on Windows XP, and I see no improvement.
The files are not listed and the strange cryptic file types are still (randomly) there.

tags: added: exporting ui
removed: export inkscape
Revision history for this message
theAdib (theadib) wrote :

ScislaC, thanks for committing. but you should have used the very latest patch #8 BUG431022_win32exportbitmap_byhand.patch labeled "hand made zeroes". Pls check. adib.

currently the patch from #3 is applied that randoogle checked and that not solves the issue.

Revision history for this message
jazzynico (jazzynico) wrote :

The latest patch works well. The bugs described in this report no longer appear.
Thanks Adib!

Revision history for this message
ScislaC (scislac) wrote :

Committed newer/better patch in r22278... thanks again Adib! Since JazzyNico said it's fixed, I'm closing.

Changed in inkscape:
status: In Progress → Fix Released
Revision history for this message
randoogle (randyhunt1981) wrote :

I haven't had a chance to try this yet on the same machine that I was having the problem on, but on my XP box at home, it works perfectly now.

Thanks for all your hard work on this project! Especially Adib :]

Revision history for this message
Lawrence (annon0m0s) wrote :

Fix works in Inkscape 0.47pre4 , built Oct 12 2009 on Windows Vista. Added in this comment because I have a duplicate bug but on a different version of the operating system pointing to this one. Thanks Adib.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.