https://bugs.winehq.org/show_bug.cgi?id=45432
Bug ID: 45432 Summary: Implement Windows Native Firewall Rules for Lightwave Software Licensing - netfw_rules Product: Wine Version: 3.11 Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: blocker Priority: P2 Component: -unknown Assignee: wine-bugs@winehq.org Reporter: newel.anderson@gmail.com Distribution: ---
Created attachment 61753 --> https://bugs.winehq.org/attachment.cgi?id=61753 Terminal logs installing and launching Lightwave under WIne 3.11 in Linux
Lightwave requires Windows Native Firewall Inbound/Outbound Rules in order to register/activate one's license.
For reference, please see: https://forum.winehq.org/viewtopic.php?f=8&t=30847&p=116945#p116945 (I'm wineink)
Towards the end of the above thread I posted terminal output as well as screenshots. Disabling Windows Firewall, as well as deleting the inbound/outbound rules in Windows, deactivates my license. Re-enabling the rules and Windows Firewall reactivates my license. Since this functionality doesn't exist in Wine, Wine hasn't to my knowledge implemented Windows Native Firewall Rules, it's impossible to register/activate my legally purchased license in Wine.
Thank you for your time and consideration.
***Please note, the above applies only to a FULL license of Lightwave. The trial, which is node-locked, works as designed. Unfortunately, the FULL license is not node-locked.
https://bugs.winehq.org/show_bug.cgi?id=45432
ink newel.anderson@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Summary|Implement Windows Native |Lightwave Software |Firewall Rules for |Licensing requires native |Lightwave Software |Windows Firewall - |Licensing - netfw_rules |netfw_rules
https://bugs.winehq.org/show_bug.cgi?id=45432
Nikolay Sivov bunglehead@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Severity|blocker |normal
https://bugs.winehq.org/show_bug.cgi?id=45432
Fabian Maurer dark.shadow4@web.de changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |dark.shadow4@web.de
--- Comment #1 from Fabian Maurer dark.shadow4@web.de --- Probably still an issue as of wine-4.10, but could you please re-test?
https://bugs.winehq.org/show_bug.cgi?id=45432
ink newel.anderson@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |newel.anderson@gmail.com
--- Comment #2 from ink newel.anderson@gmail.com --- Created attachment 64696 --> https://bugs.winehq.org/attachment.cgi?id=64696 Lightwave 2019.03 Install Log Under Wine 4.10
(In reply to Fabian Maurer from comment #1)
Probably still an issue as of wine-4.10, but could you please re-test?
I tried installing the latest Lightwave, 2019.03, on Ubuntu 19.04 with WINE-Staging 4.10 in a clean prefix with only Bonjour.msi (required by Lightwave) installed.
The log is attached.
At 009b we can see that the installer is still unable to create netfw_rules 009b:fixme:hnetcfg:netfw_rules_Item 000000000066ECF0, L"Hub", 000000000022C868 so I'm assuming the problem hasn't as yet been fixed. After installing the Lightwave and installing my license, I get the same error as before: that a license was found but no usable licenses were detected. Because I can't register my license, Lightwave remains in Discovery Mode (demo mode).
https://bugs.winehq.org/show_bug.cgi?id=45432
Anastasius Focht focht@gmx.net changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |focht@gmx.net Keywords| |download URL| |https://web.archive.org/web | |/20190614072434/http://stat | |ic.lightwave3d.com/download | |s/installers/lightwave_2019 | |/lightwave_2019-0-3_win_64_ | |installer_20190313.zip Component|-unknown |hnetcfg
https://bugs.winehq.org/show_bug.cgi?id=45432
--- Comment #3 from Fabian Maurer dark.shadow4@web.de --- Created attachment 67969 --> https://bugs.winehq.org/attachment.cgi?id=67969 WIP patch
Attaching a WIP patch. Not quite finished, but would you mind testing it?
https://bugs.winehq.org/show_bug.cgi?id=45432
--- Comment #4 from Fabian Maurer dark.shadow4@web.de --- Just putting this out there, I'm still waiting for test feedback. Until I have that, I can't meaningfully continue.
https://bugs.winehq.org/show_bug.cgi?id=45432
--- Comment #5 from ink newel.anderson@gmail.com --- (In reply to Fabian Maurer from comment #4)
Just putting this out there, I'm still waiting for test feedback. Until I have that, I can't meaningfully continue.
Thanks so much for your patch and sorry for the delay in responding.
I sucessfully built Wine64 with your patch but ran into installation issues when running "wine 64 lightwave_installer.exe". Lightwave requires several other applications to run, namely: DirectX, Bonjour, and the 2010, 2012, and 2013 C++ runtimes under Wine64 which makes me think I need to build Biarch Wine.
I'm having a difficult time building Biarch Wine under Ubuntu. I followed this guide (and applied your patch using "git am"): https://wiki.winehq.org/Building_Biarch_Wine_On_Ubuntu but ran into issues after installing lxc. Would you recommend using a different distro? I closed the terminal before being able to copy the error log, unfortunately.
Any recommendation here would be thoroughly appreciated. Thanks!
https://bugs.winehq.org/show_bug.cgi?id=45432
--- Comment #6 from Fabian Maurer dark.shadow4@web.de --- I wouldn't mess around with containers, just follow https://wiki.winehq.org/Building_Wine#Shared_WoW64 If you still have problems, it's better to discuss that in the forums - feel free to either use the old topic or make a new one and send me a mail.
https://bugs.winehq.org/show_bug.cgi?id=45432
--- Comment #7 from ink newel.anderson@gmail.com --- Created attachment 68367 --> https://bugs.winehq.org/attachment.cgi?id=68367 Screenshot of license failure
Screenshot of Lightwave 2020 license failure after applying the "first firewall patch".
https://bugs.winehq.org/show_bug.cgi?id=45432
--- Comment #8 from ink newel.anderson@gmail.com --- Created attachment 68368 --> https://bugs.winehq.org/attachment.cgi?id=68368 Wine log after applying "first firewall patch"
Finally got Wine built with the "first firewall patch". Sorry for the delay. Unfortunately, I'm still getting a licensing error. I've attached my terminal output.
https://bugs.winehq.org/show_bug.cgi?id=45432
--- Comment #9 from Fabian Maurer dark.shadow4@web.de ---
010c:fixme:hnetcfg:netfw_rules_Item 0000000004633D40, L"Layout Win64 2020.0.2 (51068bab3f76) Inbound", 000000000021D0E0
wine '/home/dude/.wine/drive_c/Program Files/NewTek/LightWave_2020.0.2/bin/Layout.exe'
Are you sure you run the wine version with the patch? Because it doesn't seem so.
https://bugs.winehq.org/show_bug.cgi?id=45432
--- Comment #10 from ink newel.anderson@gmail.com --- Created attachment 68377 --> https://bugs.winehq.org/attachment.cgi?id=68377 git-am --show-current-patch
Maybe I did something wrong? This is what I get when I run git-am --show-current-patch.
https://bugs.winehq.org/show_bug.cgi?id=45432
--- Comment #11 from ink newel.anderson@gmail.com --- Created attachment 68378 --> https://bugs.winehq.org/attachment.cgi?id=68378 git am log (repatch)
I don't know if this is helpful or not but this is what I get when I try to repatch either the wine32-build or the wine64-build directories.
https://bugs.winehq.org/show_bug.cgi?id=45432
Vijay Kamuju infyquest@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |infyquest@gmail.com
--- Comment #12 from Vijay Kamuju infyquest@gmail.com --- I have the rebased patch with some improvements but the tests crash.
https://bugs.winehq.org/show_bug.cgi?id=45432
Anastasius Focht focht@gmx.net changed:
What |Removed |Added ---------------------------------------------------------------------------- Ever confirmed|0 |1 Status|UNCONFIRMED |NEW
--- Comment #13 from Anastasius Focht focht@gmx.net --- Hello folks,
confirming on behalf of OP. Obviously still present.
https://source.winehq.org/git/wine.git/blob/cbca9f847f60773b4e7e5408f6a079f4...
$ sha1sum lightwave_2019-0-3_win_64_installer_20190313.zip 3ca6f7274f84508db434ef4867bb12bf0f970242 lightwave_2019-0-3_win_64_installer_20190313.zip
$ du -sh lightwave_2019-0-3_win_64_installer_20190313.zip 459M lightwave_2019-0-3_win_64_installer_20190313.zip
$ wine --version wine-5.22
Regards
https://bugs.winehq.org/show_bug.cgi?id=45432
Alistair Leslie-Hughes leslie_alistair@hotmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |patch
https://bugs.winehq.org/show_bug.cgi?id=45432
Fabian Maurer dark.shadow4@web.de changed:
What |Removed |Added ---------------------------------------------------------------------------- Attachment #67969|0 |1 is obsolete| |
--- Comment #14 from Fabian Maurer dark.shadow4@web.de --- Created attachment 68787 --> https://bugs.winehq.org/attachment.cgi?id=68787 Rebased patch
Hello,
here a rebased version of the patch against the current git tree. For me there is no test crash, although some tests fail. Can you please try that patch with Lightwave? Preferably with WINEDEBUG="+hnetcfg"
https://bugs.winehq.org/show_bug.cgi?id=45432
--- Comment #15 from Fabian Maurer dark.shadow4@web.de --- Any news on this? I don't have the software, I can't test...
https://bugs.winehq.org/show_bug.cgi?id=45432
--- Comment #16 from ink newel.anderson@gmail.com --- (In reply to Fabian Maurer from comment #15)
Any news on this? I don't have the software, I can't test...
Sorry for the delay in responding. I changed jobs recently and have unfortunately resorted back to using Windows full time. Once I have access to a Linux box again, I'll give your patch a try and see if I can get Lightwave to activate on Linux. Thanks so much for your hard work.
https://bugs.winehq.org/show_bug.cgi?id=45432
Fabian Maurer dark.shadow4@web.de changed:
What |Removed |Added ---------------------------------------------------------------------------- Attachment #68368|0 |1 is obsolete| | Attachment #68377|0 |1 is obsolete| | Attachment #68378|0 |1 is obsolete| | Attachment #68787|0 |1 is obsolete| |
--- Comment #17 from Fabian Maurer dark.shadow4@web.de --- Created attachment 71467 --> https://bugs.winehq.org/attachment.cgi?id=71467 Updated patch
Adding an updated patch for usage with wine-7.0-rc1. Also marked a few other attachments as obsolete, since they reference the old patch.
https://bugs.winehq.org/show_bug.cgi?id=45432
bbmian mips171@icloud.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |mips171@icloud.com
--- Comment #18 from bbmian mips171@icloud.com --- Created attachment 71470 --> https://bugs.winehq.org/attachment.cgi?id=71470 MS Edge installer log
This bug appears to affect installation of Microsoft Edge which is bundled with FL Studio 20.9. Perhaps this patch can help
Error during installation: [868:872:1231/102653.991:3476720:ERROR:install_worker.cc(262)] Failed creating firewall rules (which is unexpected for this system-level install). Continuing with install.
https://bugs.winehq.org/show_bug.cgi?id=45432
--- Comment #19 from Fabian Maurer dark.shadow4@web.de ---
This bug appears to affect installation of Microsoft Edge which is bundled with FL Studio 20.9. Perhaps this patch can help
As I see it this is just a log entry, does it cause side effects? Also, is this with or without the applied patch?
https://bugs.winehq.org/show_bug.cgi?id=45432
--- Comment #20 from Fabian Maurer dark.shadow4@web.de --- @ink Any news on the patch?
https://bugs.winehq.org/show_bug.cgi?id=45432
--- Comment #21 from ink newel.anderson@gmail.com --- (In reply to Fabian Maurer from comment #20)
@ink Any news on the patch?
Hey Fabian.
Thanks for your patience on this.
Yeah, I was able to patch wine-7.0-rc1 on both Ubuntu and Manjaro but unfortunately Lightwave won't even start up with patched/unpatched wine-7.0-rc1. I'm attaching my backtrace from both patched and unpatched wine-7.0-rc1 installs.
Lightwave does start up on wine 7.1.1 (installed from Manjaro's repositories) but I get errors when I try to use your patch on the freshest wine release.
On wine 7.1.1, after trying to apply my license, I get the same nag screen that Lightwave found my license but can't use it and that my Windows firewall seems to be misconfigured.
I'm attaching a screenshot.
Thanks again for all your hard work on this.
https://bugs.winehq.org/show_bug.cgi?id=45432
--- Comment #22 from ink newel.anderson@gmail.com --- Created attachment 71835 --> https://bugs.winehq.org/attachment.cgi?id=71835 Lightwave backtrace on patched wine-7.0-RC1
https://bugs.winehq.org/show_bug.cgi?id=45432
--- Comment #23 from ink newel.anderson@gmail.com --- Created attachment 71836 --> https://bugs.winehq.org/attachment.cgi?id=71836 Lightwave backtrace on unpatched wine-7.0-RC1
https://bugs.winehq.org/show_bug.cgi?id=45432
--- Comment #24 from ink newel.anderson@gmail.com --- Created attachment 71837 --> https://bugs.winehq.org/attachment.cgi?id=71837 Lightwave 2020 license error
https://bugs.winehq.org/show_bug.cgi?id=45432
Fabian Maurer dark.shadow4@web.de changed:
What |Removed |Added ---------------------------------------------------------------------------- Attachment #71467|0 |1 is obsolete| |
--- Comment #25 from Fabian Maurer dark.shadow4@web.de --- Created attachment 71839 --> https://bugs.winehq.org/attachment.cgi?id=71839 Patch for wine-7.1
Thanks for testing. Attaching a new patch.
Yeah, I was able to patch wine-7.0-rc1 on both Ubuntu and Manjaro but unfortunately Lightwave won't even start up with patched/unpatched wine-7.0-rc1. I'm attaching my backtrace from both patched and unpatched wine-7.0-rc1 installs.
Yes, 7.0-rc1 seems to have an error. We need to use 7.1 to test.
Lightwave does start up on wine 7.1.1 (installed from Manjaro's repositories) but I get errors when I try to use your patch on the freshest wine release.
Yes, things changed. Please try the updated patch.
On wine 7.1.1, after trying to apply my license, I get the same nag screen that Lightwave found my license but can't use it and that my Windows firewall seems to be misconfigured.
Without my patch, right? Then that's to be expected.
https://bugs.winehq.org/show_bug.cgi?id=45432
--- Comment #26 from ink newel.anderson@gmail.com --- I applied the patch to Wine-7.1 last night and unfortunately I've run into the same problem as before where Lightwave sees that there's a license but can't make use of it.
I'm building wine on Manjaro using this guide from Wine HQ:
cd ~/wine-dirs/wine64-build/ ../wine-source/configure --enable-win64 make
cd ~/wine-dirs/wine32-build/ PKG_CONFIG_PATH=/path/to/pkgconfig ../wine-source/configure --with-wine64=../wine64-build make
I haven't been able to configure libnetapi for the 32-bit wine libraries (I can't find the dev package in AUR or the official repositories) could that be causing the problem with your patch?
I'm attaching the following terminal logs: -installing Bonjour.msi (needed for Lightwave) -installing Lightwave -launching Lightwave -launching Lightwave after installing the license
https://bugs.winehq.org/show_bug.cgi?id=45432
--- Comment #27 from ink newel.anderson@gmail.com --- Created attachment 71849 --> https://bugs.winehq.org/attachment.cgi?id=71849 Bonjour install log Wine-7.1 patched
https://bugs.winehq.org/show_bug.cgi?id=45432
--- Comment #28 from ink newel.anderson@gmail.com --- Created attachment 71850 --> https://bugs.winehq.org/attachment.cgi?id=71850 Lightwave install log Wine-7.1 patched
https://bugs.winehq.org/show_bug.cgi?id=45432
--- Comment #29 from ink newel.anderson@gmail.com --- Created attachment 71851 --> https://bugs.winehq.org/attachment.cgi?id=71851 Lightwave first launch log - Wine-7.1 patched
https://bugs.winehq.org/show_bug.cgi?id=45432
--- Comment #30 from ink newel.anderson@gmail.com --- Created attachment 71852 --> https://bugs.winehq.org/attachment.cgi?id=71852 Lightwave after installing license launch log - Wine-7.1 patched
https://bugs.winehq.org/show_bug.cgi?id=45432
--- Comment #31 from Fabian Maurer dark.shadow4@web.de ---
I haven't been able to configure libnetapi for the 32-bit wine libraries (I can't find the dev package in AUR or the official repositories) could that be causing the problem with your patch?
I doubt it.
I'm attaching the following terminal logs:
It probably would make sense to zip the logs in the future, so you only need to make one attachment.
You said it shows that "It appears that your Windows Firewall is properly configured for LightWave licensing". Which of the four logs corresponds to that? The "after installing license launch log"?
Can you provide a log with "WINEDEBUG=+hnetcfg" when that message appears? Make sure all LightWave stuff has stopped running before.
https://bugs.winehq.org/show_bug.cgi?id=45432
Fabian Maurer dark.shadow4@web.de changed:
What |Removed |Added ---------------------------------------------------------------------------- Attachment #71839|0 |1 is obsolete| |
--- Comment #32 from Fabian Maurer dark.shadow4@web.de --- Created attachment 71853 --> https://bugs.winehq.org/attachment.cgi?id=71853 Patch for wine-7.1 (update 1)
Also adding a new patch. Logs a bit more, and fixes an error I found. Please use that instead of the last patch for the "+hnetcfg" trace
https://bugs.winehq.org/show_bug.cgi?id=45432
--- Comment #33 from ink newel.anderson@gmail.com ---
It probably would make sense to zip the logs in the future, so you only need to make one attachment.
Noted. Will do.
You said it shows that "It appears that your Windows Firewall is properly configured for LightWave licensing". Which of the four logs corresponds to that? The "after installing license launch log"?
In comment 21, I wrote: "On wine 7.1.1, after trying to apply my license, I get the same nag screen that Lightwave found my license but can't use it and that my Windows firewall seems to be misconfigured." That might be what you're referring to?
Comment 24 shows the nag screen from Lightwave that suggests the Windows firewall is misconfigured. The exact wording is: "It appears your Windows Firewall is not properly configured for Lightwave licensing."
I had hoped that providing the terminal out from Lightwave after I'd installed the license might reveal some clues (comment 30) but it seems it doesn't?
Can you provide a log with "WINEDEBUG=+hnetcfg" when that message appears? Make sure all LightWave stuff has stopped running before.
I ran WINEDEBUG=+hnetcfg (before applying your most recent patch) but nothing happened (no terminal output).
https://bugs.winehq.org/show_bug.cgi?id=45432
--- Comment #34 from ink newel.anderson@gmail.com --- (In reply to Fabian Maurer from comment #32)
Created attachment 71853 [details] Patch for wine-7.1 (update 1)
Also adding a new patch. Logs a bit more, and fixes an error I found. Please use that instead of the last patch for the "+hnetcfg" trace
You're a genius! It worked!
3rd-party plugins also work!
Thank you SO much!
https://bugs.winehq.org/show_bug.cgi?id=45432
--- Comment #35 from ink newel.anderson@gmail.com --- Created attachment 71854 --> https://bugs.winehq.org/attachment.cgi?id=71854 LIGHTWAVE 3D 2020 SUCCESSFULLY ACTIVATED!
Thank you so much, Fabian!
https://bugs.winehq.org/show_bug.cgi?id=45432
--- Comment #36 from Fabian Maurer dark.shadow4@web.de --- You're welcome. :) Seems like it really depends on some implicit default values for the firewall rules. I probably need to write more tests for those defaults before I can make a proper implementation.
Anyways, since I need to rework those patches before I can send them upstream, would you be willing to test those as well when I'm done? Would be very helpful to ensure I don't break it when rewriting the code.
https://bugs.winehq.org/show_bug.cgi?id=45432
--- Comment #37 from ink newel.anderson@gmail.com ---
Anyways, since I need to rework those patches before I can send them upstream, would you be willing to test those as well when I'm done? Would be very helpful to ensure I don't break it when rewriting the code.
Certainly, it would be my pleasure. :)
https://bugs.winehq.org/show_bug.cgi?id=45432
Racansky racansky@vizualizace.cz changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |racansky@vizualizace.cz
--- Comment #38 from Racansky racansky@vizualizace.cz --- Hey. Hey, I found this thread after I also tried to run Lightwave 2015.3 under Wine. So I tried installing Wine Development 7.8 and reinstalling LW 2015.3. Yet the license file is still ignored. I also wanted to try Lightwave 2019.1.5 for which I have a valid license. Unfortunately that one doesn't even install under Wine. The installation progress gets stuck at about 95% and doesn't go any further. Is it possible that the correct application of the Lightwave license is only possible under Wine version 7.1 ? And it doesn't work for me that I'm using a higher version ?
https://bugs.winehq.org/show_bug.cgi?id=45432
--- Comment #39 from Fabian Maurer dark.shadow4@web.de --- You need to compile Wine from source, using my patch. Otherwise the license won't work. Regarding the "won't install" issue, please open a separate issue for that.
https://bugs.winehq.org/show_bug.cgi?id=45432
--- Comment #40 from Fabian Maurer dark.shadow4@web.de --- Small update: I just pushed a merge request for the updated tests, see https://gitlab.winehq.org/wine/wine/-/merge_requests/59 Once that is done, I'll rework my implementation and would kindly ask you to test again :)
https://bugs.winehq.org/show_bug.cgi?id=45432
--- Comment #41 from Racansky racansky@vizualizace.cz --- THX Fabian Maurer I don't know the principles of using patches and I have never compiled from Wine source. Rather, I will wait and trust that the mentioned implementation will work out and the patch will be included in the next developer release. Hopefully it will be soon.