https://bugs.winehq.org/show_bug.cgi?id=49984
Bug ID: 49984 Summary: Kicad 5.1.7-1 Cannot copy global symbol library table file Product: Wine Version: 5.18 Hardware: x86-64 URL: https://kicad-pcb.org/download/windows/ OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: -unknown Assignee: wine-bugs@winehq.org Reporter: cedric.dewijs@eclipso.eu Distribution: ArchLinux
Created attachment 68385 --> https://bugs.winehq.org/attachment.cgi?id=68385 Screenschot of the error
Summary Kicad 5.1.7-1 Cannot copy global symbol library table file
Prepare wine: $ rm -rf ~/.wine/ $ wineserver -k $ wineboot
Download program: https://kicad-pcb.org/download/windows/ https://kicad-downloads.s3.cern.ch/windows/stable/kicad-5.1.7_1-x86_64.exe $ cd Downloads/ $ sha256sum kicad-5.1.7_1-x86_64.exe 6fa571c7ada9f5c7d5aef2c7c962ca4a51ac98ffb6077f8f9026d951f80281bb kicad-5.1.7_1-x86_64.exe
Steps to reproduce: 1) Install the program and accept the defaults $ wine kicad-5.1.7_1-x86_64.exe 2) Start the program: $ wine kicad.exe Now the main window of Kicad starts. 3) Click on file. -> new -> project, uncheck [] create a new directory for the project, and choose a existing directory, and a fun name. 4) Click on "Schematic Layout editor". Now Kicads asks about the global symbol library table. (see screenshot) 5) Click OK. Now the error "Cannot copy global symbol library table file" (see screenshot) 6) Click OK, Now kicad gives the error "Failed to copy the file ... to ... (error 122: insufficient buffer)" 7) Kill wine by pressing ctrl-C in the console.
My versions $ wine --version wine-5.18 (Staging) $ pacman -Q wine wine-staging 5.18-1 uname -a Linux cedric-p4 5.8.14-arch1-1 #1 SMP PREEMPT Wed, 07 Oct 2020 23:59:46 +0000 x86_64 GNU/Linux
https://bugs.winehq.org/show_bug.cgi?id=49984
--- Comment #1 from Cedric cedric.dewijs@eclipso.eu --- Retest with current versions, The error Kicad gives has changed, but the problem is still there.
Prepare wine: $ rm -rf ~/.wine/ $ wineserver -k $ wineboot
Download program: https://www.kicad.org/download/windows/ $ wget https://kicad-downloads.s3.cern.ch/windows/stable/kicad-5.1.10_1-x86_64.exe $ sha256sum kicad-5.1.10_1-x86_64.exe ca734c9df2ac9711d85d841debc4e284eb1b529de5b2217096cfd0a10d8843c0 kicad-5.1.10_1-x86_64.exe
Steps to reproduce: 1) Install the program and accept the defaults $ wine kicad-5.1.10_1-x86_64.exe 2) Start the program: $ wine ~/.wine/drive_c/Program\ Files/KiCad/bin/kicad.exe Now the main window of Kicad starts. 3) Click on file. -> new -> project, uncheck [] create a new directory for the project, and choose a existing directory, and a fun name. 4) Click on "Schematic Layout editor". Now Kicads asks about the global symbol library table. 5) Click OK. Now the error "Cannot copy global symbol library table file" 6) Click OK, Now kicad gives the error "Failed to copy the file ... to ... (error 3: path not found)" 7) Kill wine by pressing ctrl-C in the console.
My versions $ wine --version wine-6.17-261-g16e73be10d9 [cedric@cedric ~]$ pacman -Q wine wine-staging 5.18-1 wine-git 6.17.r261.g16e73be10d9-1 bash: wine-staging: command not found [cedric@cedric ~]$ uname -a Linux cedric 5.14.8-arch1-1 #1 SMP PREEMPT Sun, 26 Sep 2021 19:36:15 +0000 x86_64 GNU/Linux
https://bugs.winehq.org/show_bug.cgi?id=49984
--- Comment #2 from Cedric cedric.dewijs@eclipso.eu --- Created attachment 70754 --> https://bugs.winehq.org/attachment.cgi?id=70754 console messages of the new test
https://bugs.winehq.org/show_bug.cgi?id=49984
joaopa jeremielapuree@yahoo.fr changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |jeremielapuree@yahoo.fr
--- Comment #3 from joaopa jeremielapuree@yahoo.fr --- You should cd in the directory where your software is installed before lauching it.
https://bugs.winehq.org/show_bug.cgi?id=49984
--- Comment #4 from Cedric cedric.dewijs@eclipso.eu --- cd into the directory makes no difference:
[cedric@cedric bin]$ pwd /home/cedric/.wine/drive_c/Program Files/KiCad/bin [cedric@cedric bin]$ wine kicad.exe 0100:fixme:nls:get_dummy_preferred_ui_language (0x8 000000000080EB00 0000000000000000 000000000080EB08) returning a dummy value (current locale) 0100:fixme:nls:get_dummy_preferred_ui_language (0x8 000000000080EB00 0000000000E4FB70 000000000080EB08) returning a dummy value (current locale) 0100:fixme:nls:get_dummy_preferred_ui_language (0x8 000000000080EB00 0000000000000000 000000000080EB08) returning a dummy value (current locale) 0100:fixme:nls:get_dummy_preferred_ui_language (0x8 000000000080EB00 0000000000DF05D0 000000000080EB08) returning a dummy value (current locale) 0100:fixme:nls:get_dummy_preferred_ui_language (0x8 000000000080EE30 0000000000000000 000000000080EE38) returning a dummy value (current locale) 0100:fixme:nls:get_dummy_preferred_ui_language (0x8 000000000080EE30 0000000000E57050 000000000080EE38) returning a dummy value (current locale) 0100:fixme:shell:SHAutoComplete stub ^C0118:fixme:console:default_ctrl_handler Terminating process 20 on event 0 0114:fixme:console:default_ctrl_handler Terminating process fc on event 0
https://bugs.winehq.org/show_bug.cgi?id=49984
--- Comment #5 from Cedric cedric.dewijs@eclipso.eu --- What is the technical difference between starting a program from within it's directory, and starting the program from another directory with an absolute path?
https://bugs.winehq.org/show_bug.cgi?id=49984
--- Comment #6 from joaopa jeremielapuree@yahoo.fr --- https://forum.winehq.org/viewtopic.php?t=14623
https://bugs.winehq.org/show_bug.cgi?id=49984
--- Comment #7 from joaopa jeremielapuree@yahoo.fr --- Created attachment 70757 --> https://bugs.winehq.org/attachment.cgi?id=70757 screenshot showing everything is fine
With wine-6.19, everything is fine for me. I followed your steps. And no complain. Be sure to use a fresh wine prefix.
https://bugs.winehq.org/show_bug.cgi?id=49984
--- Comment #8 from Zebediah Figura z.figura12@gmail.com --- (In reply to Cedric from comment #5)
What is the technical difference between starting a program from within it's directory, and starting the program from another directory with an absolute path?
It changes the initial working directory for the program. Some programs expect it to be the directory containing the executable; shell links in Windows (and in Wine) will set it to that directory by default.
I've found that it doesn't make a difference in most cases (perhaps this was less true a decade or two ago), but it's still a good thing to try when triaging a bug.
https://bugs.winehq.org/show_bug.cgi?id=49984
--- Comment #9 from Cedric cedric.dewijs@eclipso.eu ---
With wine-6.19, everything is fine for me. I followed your steps. And no complain. Be sure to use a fresh wine prefix.
I still have the problem with the latest git version. What is different between our computers? I did remove my entire .wine directory, and i started both the installer and Kicad in their own directories. During all the actions with the global symbol table, wine did not generate console messages.
I can run wine with trace options, what trace options are helpful?
# pacman -U wine-git-6.19.r0.g7554bd4b41a-1-x86_64.pkg.tar $ rm -rf ~/.wine/ $ wineserver -k $ wineboot $ cd $ wine kicad-5.1.10_1-x86_64.exe $ cd /home/cedric/.wine/drive_c/Program\ Files/KiCad/bin $ wine kicad.exe
3) Click on file. -> new -> project, uncheck [] create a new directory for the project, and choose a existing directory, and a fun name. 4) Click on "Schematic Layout editor". Now Kicads asks about the global symbol library table. 5) Click OK. Now the error "Cannot copy global symbol library table file" 6) Click OK, Now kicad gives the error "Failed to copy the file ... to ... (error 3: path not found)", see screenshot 7) Kill wine by pressing ctrl-C in the console.
Let's try again: 8) start Kicad again $ wine kicad 9) Click on file. -> new -> project, type filename test3 (the rest is default, including [X] create a new directory for this project) 10) Click on tools -> edit schematic. Now Kicad asks about the global symbol library table, choose de default option (copy default) 11) Click OK. Now the error "Cannot copy global symbol library table file" 12) Click OK, Now kicad gives the error "Failed to copy the file ... to ... (error 3: path not found) 13) Let's find out what's happening in my ~/.config/kicad folder: $ cd ~/.config/ $ ls -l (there's no directory called kicad there) $ mkdir kicad 14) Try to copy the global symbol library table again. The errors are the same.
My versions:(I used the latest git version, as Arch Linux does still carry version 6.16 in their repository) [cedric@cedric bin]$ wine --version wine-6.19 [cedric@cedric bin]$ pacman -Q wine wine-git 6.19.r0.g7554bd4b41a-1 [cedric@cedric bin]$ uname -a Linux cedric 5.14.8-arch1-1 #1 SMP PREEMPT Sun, 26 Sep 2021 19:36:15 +0000 x86_64 GNU/Linux
https://bugs.winehq.org/show_bug.cgi?id=49984
--- Comment #10 from Cedric cedric.dewijs@eclipso.eu --- Created attachment 70765 --> https://bugs.winehq.org/attachment.cgi?id=70765 Screenshot showing the error with wine 6.19+
I find it strange the windows version of KiCAD tries to copy sym-lib-table to 'home\cedric.config\kicad\sym-lib-table (This is where the Linux version of KiCAD would store it's settings)
Why does a windows program look for a Linux path? I think it makes sense it would try to create a directory under /home/cedric/.wine/drive_c/users/cedric