Windows error 0x00000051, 81

Detailed Error Information

REGISTRY_ERROR[1]

This is a Blue Screen of Death stop code. More information is available in the Knowledge Base article Bug Check 0x51: REGISTRY_ERROR.

HRESULT analysis[2]

This is probably not the correct interpretation of this error. The Win32 error above is more likely to indicate the actual problem.
FlagsSeveritySuccess

This code indicates success, rather than an error. This may not be the correct interpretation of this code, or possibly the program is handling errors incorrectly.

Reserved (R)false
OriginMicrosoft
NTSTATUSfalse
Reserved (X)false
FacilityCode0 (0x000)
NameFACILITY_NULL[2][3]
DescriptionThe default facility code.[2][3]
Error Code81 (0x0051)

Possible solutions

4

java.lang.OutOfMemoryError: requested 32756 bytes for ChunkPool::allocate. Out of swap space?

java
jvm
crash

Updating this for future searchers. Solution was to upgrade the JDK.

To recap, this was done due to random OOM JVM crashes. Per HP:

http://docs.hp.com/en/JDKJRE60RN/jdk_rnotes_6.0.05.html

In JDK 6.0.03, occasionally, a Java program can experience a memory leak in the C heap due to QXCR1000920722, resulting in an out-of-memory error. HP recommends that you upgrade from JDK 6.0.03 to JDK 6.0.04 (or greater) to prevent possible C heap memory leaks due to QXCR1000920722.

Thanks all.

answered on Stack Overflow Dec 16, 2009 by marta
2

java.lang.OutOfMemoryError: requested 32756 bytes for ChunkPool::allocate. Out of swap space?

java
jvm
crash

Google turns up a bunch of responses to this. I started reading the first one, and while its conclusions (reduce the heap) are reasonable, it doesn't really talk about root causes. So ...

This is coming from native code, and indicates that the code is unable to allocate memory from the C heap. There are a couple of reasons this could be happening, one of which is that the virtual memory space is truly used op, the other is that the C heap is fragmented. If the HP has pmap, that's the first place to start (or find its equivalent and start there). If you see allocation blocks filling the virtual memory space in an unbroken block, then the solution is simple: reduce your heap.

However, if you see allocation blocks scattered throughout the virtual memory space, you're going to need some deeper digging. Sometimes this happens because you have Java objects that aren't reclaiming native resources. Sometimes it happens because of a quirk in the operating system (I've seen Solaris get confused with thread stacks).

answered on Stack Overflow Dec 11, 2009 by kdgregory
1

How to access a function inside a dll file in C++

c++
dll
unhandled-exception
loadlibrary
can
Access violation reading location 0x00000051.

This tells me the function is treating PCAN_USBBUS1 as a pointer. Perhaps:

#define PCAN_USBBUS1 0x51

should be changed to

WORD pcan_usbbus1 = 0x51;

And the call to CAN_Init should be changed to:

int intMyReturnVal = CAN_Init(&pcan_usbbus1, CAN_BAUD_1M);

The function signature should probably be something like:

typedef int (__stdcall * pICFUNC)(WORD* wBTR0BTR1, int CANMsgType);
                                      ^ pointer here

I imagine CAN_BAUD_1M might also need to be changed in the same way but maybe not.

answered on Stack Overflow Jul 2, 2013 by Dave Rager
1

How to access a function inside a dll file in C++

c++
dll
unhandled-exception
loadlibrary
can

There are several points here. Signature of the LoadLibrary:

HMODULE WINAPI LoadLibrary(_In_  LPCTSTR lpFileName);

Remove unneeded casts. This will simplify reading and understanding your code.

FARPROC lpfnGetProcessID - the name of the variable is confusing. This might be a source of confusion or misunderstanding.

Regarding the AV - the signature of the CAN_Init function as you are trying to use it is wrong. From your post it is hard to tell for sure what is should be. Look into manual (if possible), header file, etc.

Main point - you should not release the library. There are rare cases when this is needed. Most likely your case does not need this. It is very difficult to believe that you need to reload the library (and this what happens when you call FreeLibrary/LoadLibrary!) between initing it and writing.

answered on Stack Overflow Jul 2, 2013 by Kirill Kobelev • edited Jul 2, 2013 by Kirill Kobelev
1

How to set an SPN for SQL Server on a Workgroup

sql-server
workgroup
spn

You're using SQL login, right? Not Windows authentication. SPN is used for Windows authentication (Kerberos) when both the client and server are members of the domain.

I think there's another problem that prevents you from connecting to your SQL server. Might be routing issue,firewall, port configuration for SQL service or antivirus. Try disabling the Windows Firewall on SQL server and connecting again to see if it's related to firewall. Same goes for antivirus.

For port configuration, you can verify it using SQL Server Configuration Manager and running netstat -an | find /i "1433" command to see if port is Listening.

answered on Server Fault Sep 22, 2016 by Mer
0

Understanding the solution for a EXC_BAD_ACCESS (SIGSEGV) crash

ios
objective-c

Your summary in point 1 looks correct to me.

Don't confuse AutoReleasePools with ARC - AutoReleasePools are like the garbage collector in Java. You can explicitly create an AutoReleasePool if you want but there is always an implicit pool established with the run loop. Migrating to ARC may require code changes (and does require different use of AutoRelease).

Information on NSZombies is in this answer. Essentially you should get a log if you release an NSZombie with a reference count of 0. I am not sure why you weren't seeing the warning.

_refreshHeaderView = [view retain]; and [_refreshHeaderView release]; is better because your object is holding a reference to the object, so it needs to manage the reference count.

answered on Stack Overflow Mar 20, 2014 by Paulw11 • edited May 23, 2017 by Community
0

java.lang.OutOfMemoryError: requested 32756 bytes for ChunkPool::allocate. Out of swap space?

java
jvm
crash

THIS ANSWER IS INCORRECT - See comments!

I'm leaving the answer up so people can see the discussion.


So you're running out of memory. Compiling a JSP is a memory hog, so it's not too surprising that your container chose that point to blow up.

There are a few things that can be done to explore the problem, but I usually try the simplest remedy first: I give the program more memory.

This:

VM Arguments: jvm_args: -Xms256m -Xmx1024m -XX:PermSize=128m -XX:MaxPermSize=256m

indicates you are running with a pretty "standard" memory configuration. I would try increasing some of those numbers.

There's a (shell or .bat) script to start up WebLogic; I've forgotten its name or structure. But if you dig around in it, you will find Java being called with a set of options that are defined further up. You can shut down your server, back up this script file and edit it to fiddle the memory settings (-Xms, etc) and see where that gets you when you restart.

answered on Stack Overflow Dec 11, 2009 by Carl Smotricz • edited Apr 14, 2011 by Carl Smotricz
0

java.lang.OutOfMemoryError: requested 32756 bytes for ChunkPool::allocate. Out of swap space?

java
jvm
crash

I have just encountered this issue which apparently can come from multiple causes: Native Heap (C-Heap) depletion, OS physical / virtual memory depletion, C-Heap / native memory leak.

I have found the below article useful in understanding the issue: http://javaeesupportpatterns.blogspot.sg/2012/03/outofmemoryerror-out-of-swap-space.html

answered on Stack Overflow Mar 3, 2014 by Daniel Da Cunha
0

WinRT W8 Create WebView in C++ and add it to the main view

c++
windows-8
windows-runtime

With XAML like this:

<Page
    x:Class="Win81CPlusPlus.MainPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="using:Win81CPlusPlus"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d">

    <Grid Background="{ThemeResource ApplicationPageBackgroundThemeBrush}" 
          x:Name="grid">

    </Grid>
</Page>

And C++ code like this:

MainPage::MainPage()
{
    InitializeComponent();
    auto webView = ref new Windows::UI::Xaml::Controls::WebView();

    Grid^ grid = safe_cast<Grid^>(this->FindName("grid"));
    grid->Children->Append(webView);

    auto uri = ref new Uri(L"http://www.stackoverflow.com");
    webView->Navigate(uri);
    // or you could ...
    //webView->NavigateToString(L"<html><body><h1>Hello</h1></body></html>");
}

You can construct, add to a parent, and navigate to a URL (or a string).

You can use the Dispatcher as well:

Windows::ApplicationModel::Core::CoreApplication::MainView->CoreWindow->GetForCurrentThread()->Dispatcher->RunAsync(Windows::UI::Core::CoreDispatcherPriority::Normal, 
    ref new Windows::UI::Core::DispatchedHandler(
    [this]   /* the this won't likely make sense from another thread */
    {
        auto webView = ref new Windows::UI::Xaml::Controls::WebView();
                    // will need to get access to the grid
        auto grid = safe_cast<Grid^>(this->FindName("grid"));
        grid->Children->Append(webView);
        auto uri = ref new Uri(L"http://www.google.com");
        webView->Navigate(uri);
        //webView->NavigateToString("http://www.google.com");
    }
));

The issue is that you'll need access to a parent element to which the WebView instance will be added.

answered on Stack Overflow Nov 7, 2013 by WiredPrairie

Comments

Leave a comment

(plain text only)

Sources

  1. https://docs.microsoft.com/en-us/windows-hardware/drivers/debugger/bug-check-code-reference2
  2. https://msdn.microsoft.com/en-us/library/cc231198.aspx
  3. winerror.h from Windows SDK 10.0.14393.0

User contributions licensed under CC BY-SA 3.0