Author Topic: (DB?) plugins not loaded via Wine  (Read 863 times)

0 Members and 1 Guest are viewing this topic.

Offline TheQLTopic starter

  • Newbie
  • *
  • Posts: 13
  • Karma: 0
(DB?) plugins not loaded via Wine
« on: 11 04 2020, 19:29:02 »
Hi there,

a long time ago I packaged Miranda IM into a Wine bottle. For ICQ WIM I need to migrate to Miranda NG, but I don't manage to get it running via Wine on my Mac.
I followed your instructions on https://wiki.miranda-ng.org/index.php?title=Miranda_unter_Wine - but once I run Miranda the profile manager starts and all I can do is click on exit. Apparently it doesn't see dbx_mdbx.dll - and maybe no plugins at all.

mirandaboot.ini doesn't let me specify a plugin directory, so I assume it should just load all plugins from "Plugins". Something must be going wrong.

Before I tried that I actually ran Winebottler and used the installer, this sort of worked, but when I wanted to start the resulting .app it just opened, configured the bottle and then closed without any kind of error message. It was then when I followed your guide manually to run into this problem.

P.S.: Just tried to use Winebottler with an old installer (Miranda_IM_(32bit)_v0.10.51.exe) - that just works and I can create a new profile just fine.
« Last Edit: 11 04 2020, 19:35:27 by TheQL »
 

Offline dartraiden

Re: (DB?) plugins not loaded via Wine
« Reply #1 on: 11 04 2020, 21:10:17 »
Use 64-bit version of Miranda NG and use dbx_sqlite, because dbx_mdbx does not work under Wine and dbx_mmap is read only driver.

We will think about 32-bit Miranda under Wine when we deal with dbx_mdbx, because dbx_sqlite is very buggy, so dbx_mdbx is our priority target
« Last Edit: 11 04 2020, 21:13:03 by dartraiden »
_██_
(°ᴗƪ)
 

Offline TheQLTopic starter

  • Newbie
  • *
  • Posts: 13
  • Karma: 0
Re: (DB?) plugins not loaded via Wine
« Reply #2 on: 11 04 2020, 21:17:29 »
Hi there,

thanks for your reply. After your suggestion I have manually added dbx_sqlite to the plugins dir, but it still doesn't show any available driver. It is still the 32-bit installation from above, though. XP 64-Bit was weird, so I think I should go for Windows 7 64-Bit? If so, the wiki page should probably be updated.

Anyway, I would have liked to use my old Miranda IM profile as it holds decades of message history... Seems that isn't possible... Has there ever been an ICQ WIM plugin for the old Miranda?

EDIT: Just tried Winebottler with XP 64-Bit - it just crashed. Not using installer, but just copying the directory over (incl. sqlite db driver). Exact same settings, but with 32-bit archive (+ sqlite db driver) and XP 32 it starts, with no DB plugin, of course.
« Last Edit: 11 04 2020, 21:45:32 by TheQL »
 

Offline dartraiden

Re: (DB?) plugins not loaded via Wine
« Reply #3 on: 11 04 2020, 21:48:22 »
Wiki page is outdated and should be rewritten completely.

Since you want to import history from Miranda IM, you probably need a virtual machine with Windows (7 or 10). Сonverting a profile from IM to NG format requires several steps, no one tested all of them under the Wine

1) use VirtualBox/VMWare with Win 7 or newer
2) use our manual for migrating IM profile to NG format:
- run your old IM profile in Miranda IM and check that it is in MMAP format
- if yes, put IM Updater to Miranda IM installation and restart Miranda IM
- IM Updater transform Miranda IM to Miranda NG 0.94.9
- check for updates manually until you get the latest stable 0.95.11. Your profile will be converted to MDBX format. All history and contacts must be preserved. You can connect to ICQ if you want (please read this and this before. Pay attention to "Why do some contacts in the contact list become faint when I first log in with a new protocol?" section).

we do not test IM Updater under Wine so all previous steps should be performed under Windows

3) now you get working NG under Windows. But dbx_mdbx cannot work under Wine. So you need:
- change update channel from stable to dev and perform update (because there is no stable dbx_sqlite)
- install dbx_sqlite plugin (via our PluginUpdater)
- create new SQLITE database
- import all contacts, history and settings from MDBX db to SQLITE db (Main menu → Import)

this step should be performed under Windows because dbx_mdbx does not work under Wine

4) use this SQLITE db under Wine
« Last Edit: 12 04 2020, 00:54:31 by dartraiden »
_██_
(°ᴗƪ)
 
The following users thanked this post: TheQL

Offline TheQLTopic starter

  • Newbie
  • *
  • Posts: 13
  • Karma: 0
Re: (DB?) plugins not loaded via Wine
« Reply #4 on: 11 04 2020, 21:50:49 »
Thanks again. I might consider this, but first I need to see that I somehow get Miranda NG running at all. I have edited my above comment to show some of the steps I tried, none of them were successful as of now.
 

Offline dartraiden

Re: (DB?) plugins not loaded via Wine
« Reply #5 on: 11 04 2020, 21:59:24 »
If dbx_sqlite crashes under Wine, there is no way to start the Miranda...

so we have 3 problems
1) 32-bit db drivers cannot start under Wine
this is the lesser problem, since a 32-bit dbx_sqlite would also crash as 64-bit, and a 32-bit mdbx would not work

2) dbx_sqlite crashes under Wine
we hear about this problem for the first time

3) dbx_mdbx does not work under Wine, because some functions are missing in Wine code and we need to create some hacks...

I think that (3) will be fixed faster than others, but I don’t know anything about the timing, the main developer of Miranda is very busy in real life now
_██_
(°ᴗƪ)
 

Offline TheQLTopic starter

  • Newbie
  • *
  • Posts: 13
  • Karma: 0
Re: (DB?) plugins not loaded via Wine
« Reply #6 on: 11 04 2020, 22:02:42 »
I actually don't think it's the sqlite driver that crashes under 64-Bit. It crashes regardless if it's there or not. I can try some more stuff and come back to you.

Any recommended settings, regarding Windows version? XP-64? Win7-64? Any other winetricks I need to run? Use the installer or just the 7z archive?
 

Offline dartraiden

Re: (DB?) plugins not loaded via Wine
« Reply #7 on: 11 04 2020, 22:05:18 »
XP 64 is piece of shit, so Win7 64.
Installer is not neccessary, use 7z (it's portable)
_██_
(°ᴗƪ)
 

Offline dartraiden

Re: (DB?) plugins not loaded via Wine
« Reply #8 on: 11 04 2020, 22:06:02 »
Strange... I tested sqlite under Wine in late 2019
I try to find commit which broke it
« Last Edit: 11 04 2020, 22:08:06 by dartraiden »
_██_
(°ᴗƪ)
 

Offline TheQLTopic starter

  • Newbie
  • *
  • Posts: 13
  • Karma: 0
Re: (DB?) plugins not loaded via Wine
« Reply #9 on: 11 04 2020, 22:15:00 »
XP 64 is piece of shit, so Win7 64.
Installer is not neccessary, use 7z (it's portable)

Ok, I will follow the guide once more with Win7 64. But with Winebottler it doesn't work, I know that already. Although XP 32-Bit works with the exact same settings, at least the profile manager starts. Not even that worked with any of my 64-bit tests.
 

Offline TheQLTopic starter

  • Newbie
  • *
  • Posts: 13
  • Karma: 0
Re: (DB?) plugins not loaded via Wine
« Reply #10 on: 11 04 2020, 22:32:09 »
I have made very small progress...

I have followed the guide, but selected Windows 7 and used the 64-Bit 7z archive.
I have added the sqlite dll as usual, but that doesn't show. Funny enough though, I can create a new profile now. But it doesn't actually load, probably because the dbx_mdbx really doesn't work, but at least I can select it.
 

Offline dartraiden

Re: (DB?) plugins not loaded via Wine
« Reply #11 on: 12 04 2020, 00:36:38 »
Yes. mdbx cannot increase db size due to some missing functions in Wine
I will test sqlite tomorrow, maybe I can find commit causing a crash and at least roll it back
« Last Edit: 12 04 2020, 00:39:56 by dartraiden »
_██_
(°ᴗƪ)
 

Offline TheQLTopic starter

  • Newbie
  • *
  • Posts: 13
  • Karma: 0
Re: (DB?) plugins not loaded via Wine
« Reply #12 on: 12 04 2020, 00:43:00 »
I appreciate your effort. But I don't really understand why I cannot even select the sqlite DB on first run. If you figure out if and how it works, please let me know. I might still be doing something wrong!
 

Offline dartraiden

Re: (DB?) plugins not loaded via Wine
« Reply #13 on: 12 04 2020, 00:45:25 »
I cannot even select the sqlite DB

= Miranda cannot load this db driver for some reason

Maybe plugin and Miranda core are coming from various builds...
Stable Miranda cannot load dev plugins and vice versa.
Stable work of Miranda NG is guaranteed within the same build, i.e., all plugins of the same compilation are compatible with the core while two adjacent builds can be completely incompatible.

Even 2 various dev builds (for example tomorrow and yesterday) can be incompatible
« Last Edit: 12 04 2020, 00:50:48 by dartraiden »
_██_
(°ᴗƪ)
 

Offline TheQLTopic starter

  • Newbie
  • *
  • Posts: 13
  • Karma: 0
Re: (DB?) plugins not loaded via Wine
« Reply #14 on: 12 04 2020, 12:38:37 »
Makes sense, I am using the stable Miranda NG release and got the plugin from here: https://wiki.miranda-ng.org/index.php?title=Plugin:Dbx_sqlite/de
But on this page there is no sqlite plugin: https://wiki.miranda-ng.org/index.php?title=Download