PInvokeStackImbalance occurred after to upgrade 3.0 to 3.5.1 Embedded

407 views
Skip to first unread message

Raul Rodriguez

unread,
Dec 17, 2016, 4:02:04 PM12/17/16
to RavenDB - 2nd generation document database
Hi I have an exception throwing when I tried to initialize the document storage in WPF application

 private static IDocumentStore InitStorage()

        {

           

            var documentStorage = new EmbeddableDocumentStore() {DataDirectory = WorkbenchConfiguration.Instance.DatabasePath};

            

            documentStorage.Configuration.Storage.Voron.AllowOn32Bits = true;

           

            documentStorage.Conventions.IdentityPartsSeparator = "-";

            if (WorkbenchConfiguration.Instance.DatabaseHttpServer)

            {

                documentStorage.UseEmbeddedHttpServer = true;

                NonAdminHttp.EnsureCanListenToWhenInNonAdminContext(WorkbenchConfiguration.Instance.DatabasePort.ToInt());

            }

         

          

            documentStorage.Initialize();


            IndexCreation.CreateIndexes(Assembly.GetAssembly(typeof(DatabaseHelper)),documentStorage);

          

            documentStorage.DefaultDatabase = DbName;

            documentStorage.DatabaseCommands.GlobalAdmin.EnsureDatabaseExists(DbName);

           

            return documentStorage;

        }


Currently I have one database in the Data directory

I have this exception 


Oren Eini (Ayende Rahien)

unread,
Dec 17, 2016, 4:03:00 PM12/17/16
to ravendb
You can safely ignore this warning.

Hibernating Rhinos Ltd  

Oren Eini l CEO Mobile: + 972-52-548-6969

Office: +972-4-622-7811 l Fax: +972-153-4-622-7811

 


--
You received this message because you are subscribed to the Google Groups "RavenDB - 2nd generation document database" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ravendb+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

sebastien auroux

unread,
Jul 18, 2017, 11:43:24 AM7/18/17
to RavenDB - 2nd generation document database
Hello
i have the same issue,
how can we ignore this warning ?
To unsubscribe from this group and stop receiving emails from it, send an email to ravendb+u...@googlegroups.com.

Oren Eini (Ayende Rahien)

unread,
Jul 18, 2017, 11:47:15 AM7/18/17
to ravendb
This is fixed in the latest version.

To unsubscribe from this group and stop receiving emails from it, send an email to ravendb+unsubscribe@googlegroups.com.

sebastien auroux

unread,
Jul 31, 2017, 12:03:48 PM7/31/17
to RavenDB - 2nd generation document database
I upgraded to the latest version 3.5.4.0, but still not works for me

Oren Eini (Ayende Rahien)

unread,
Jul 31, 2017, 2:46:37 PM7/31/17
to ravendb
To unsubscribe from this group and stop receiving emails from it, send an email to ravendb+unsubscribe@googlegroups.com.

sebastien auroux

unread,
Aug 2, 2017, 4:07:53 PM8/2/17
to RavenDB - 2nd generation document database
Oups thanks 
i didnot notice the latest version was not on nuget. 
I will be able to resume testing it, thanks for your time

Pierre Arnaud

unread,
Oct 25, 2017, 9:13:11 AM10/25/17
to RavenDB - 2nd generation document database
Hi Oren,

I have created a .NET Console project (4.6.1) with the latest Visual Studio 2017 15.4.1.
I installed RavenDB.Database through NuGet and got 3.5.5-patch-35223.

With this very simple piece of code:

using Raven.Client.Embedded;
namespace ConsoleAppRaven
{
 class Program
 {
  static void Main(string[] args)
  {
   using (var store = new EmbeddableDocumentStore { DataDirectory = "Data", UseEmbeddedHttpServer = false })
   {
    using (var me = store.Initialize ())
    {
     System.Console.ReadLine ();
    }
   }
  }
 }
}

I still get the exception:

Managed Debugging Assistant 'PInvokeStackImbalance'  occurred
  Message=Managed Debugging Assistant 'PInvokeStackImbalance' : 'A call to PInvoke function 'Voron!Voron.Platform.Win32.Win32MemoryMapNativeMethods::PrefetchVirtualMemory' has unbalanced the stack. This is likely because the managed PInvoke signature does not match the unmanaged target signature. Check that the calling convention and parameters of the PInvoke signature match the target unmanaged signature.'

Oren Eini (Ayende Rahien)

unread,
Oct 25, 2017, 3:13:10 PM10/25/17
to ravendb
You can safely ignore this

Hibernating Rhinos Ltd  

Oren Eini l CEO Mobile: + 972-52-548-6969

Office: +972-4-622-7811 l Fax: +972-153-4-622-7811

 


Reply all
Reply to author
Forward
0 new messages