CC bug while loading jvm?

The following code generates a segmentation fault while it's compile with CC and not with gcc.
The crash only occurs if the jvm is loaded and if the buffer size is 100000. (I tried with 50000 and there's no crash).
I assume that the crash occurs because of a corruption of the stack pointer but I don't know exactly what happens for the moment. Does anyone have an idea?
#include <stdio.h>
#include "jni.h"
#define BUFFER_SIZE 100000
typedef struct
char sz[BUFFER_SIZE];
} my_struct;
void bar(my_struct s)
return;
void foo()
my_struct s;
bar(s);
bar(s);
bar(s);
bar(s);
return;
void useJVM()
JavaVMOption options[2];
JavaVMInitArgs vm_args;
JavaVM *jvm;
JNIEnv *env;
long result;
jclass cls;
options[0].optionString = ".";
options[1].optionString = "-Djava.compiler=NONE";
vm_args.version = JNI_VERSION_1_2;
vm_args.options = options;
vm_args.nOptions = 2;
vm_args.ignoreUnrecognized = JNI_TRUE;
result = JNI_CreateJavaVM*(&jvm,(*void* **)&env, &vm_args);
if (result == JNI_ERR ) {
fprintf(stdout,"Error invoking the JVM");
return;
return;
int main( int argc,
char **argv)
if (argc != 1)
useJVM();
foo();
fprintf(stdout,"OK\n");
return 0;
} {noformat}
Built like this :
CC -mt -PIC -compat=4 -c -g -I/usr/j2sdk1.4.2/include/ -I/usr/j2sdk1.4.2/include/solaris/ mainjni.c
CC -mt -PIC -compat=4 -z allextract -o bugsun mainjni.o -L/usr/j2sdk1.4.2/jre/lib/sparc/ -ljvm -lthread -lcthe program exits with a segmentation fault.
Built like this :
gcc -c -g -I/usr/j2sdk1.4.2/include/ -I/usr/j2sdk1.4.2/include/solaris/ mainjni.c
gcc -o bugsun mainjni.o -L/usr/j2sdk1.4.2/jre/lib/sparc/ -ljvm -lthread -lcthe program works. Is it a CC bug?
Edited by: gude on May 30, 2008 9:02 AM
Edited by: gude on May 30, 2008 9:04 AM

My code :
#include <stdio.h>
#include "jni.h"
#define BUFFER_SIZE                     100000
typedef struct
        char sz[BUFFER_SIZE];
} my_struct;
void bar(my_struct s)
        return;
void foo()
        my_struct s;
        bar(s);
        bar(s);
        bar(s);
        bar(s);
        return;
void useJVM()
        JavaVMOption options[2];
        JavaVMInitArgs vm_args;
        JavaVM *jvm;
        JNIEnv *env;
        long result;
        jclass cls;
        options[0].optionString = ".";
        options[1].optionString = "-Djava.compiler=NONE";
        vm_args.version = JNI_VERSION_1_2;
        vm_args.options = options;
        vm_args.nOptions = 2;
        vm_args.ignoreUnrecognized = JNI_TRUE;
        result = JNI_CreateJavaVM(&jvm,(void **)&env, &vm_args);
        if(result == JNI_ERR ) {
          fprintf(stdout,"Error invoking the JVM");
          return;
        return;
int main(       int argc,
                        char **argv)
        if (argc != 1)
                useJVM();
        foo();
        fprintf(stdout,"OK\n");
        return 0;
}To compile with CC:
CC -mt -PIC -compat=4 -c -g  -I/usr/j2sdk1.4.2/include/ -I/usr/j2sdk1.4.2/include/solaris/  mainjni.c
CC -mt -PIC -compat=4 -z allextract -o bugsun mainjni.o -L/usr/j2sdk1.4.2/jre/lib/sparc/ -ljvm -lthread -lcTo compile with gcc:
gcc -c -g  -I/usr/j2sdk1.4.2/include/ -I/usr/j2sdk1.4.2/include/solaris/  mainjni.c
gcc -o bugsun mainjni.o -L/usr/j2sdk1.4.2/jre/lib/sparc/ -ljvm -lthread -lcI noticed that if I only call the function bar() three times in the function foo(), it works...

Similar Messages

  • Loading JVM problem

    Hi,
    I am loading JVM ( 1.5 Ver) from Windows Application.
    JVM gets failed for the following JVM parameter -Xmx is 850MB. It is getting success for -Xmx is 845MB.
    My Application should support upto -Xmx value upto 2GB.
    May I know the reason why loading for JVM for -Xmx is 850MB is failed?
    Same application I tested in different system, In that system application gets success when -Xmx is 850MB, and it is failed when -Xmx is 875MB.
    Any additional parameters are required to be added while loading JVM?
    Any pre requisites of system environment to support 2GB(or >850MB) of heap memory for the process?
    Regards,
    Srinivas.

    Srinivas.Anubham wrote:
    JNI_CreateJavaVM().That loads the VM into your native application, right? I guess your application already is consuming some memory, and there are limits how much memory a process can allocate in a 32 bit OS. I think the limitation on Windows is less than 2GB.

  • JVM Crash while loading StackFrame

    # HotSpot Virtual Machine Error, Internal Error
    # Please report this error at
    # http://java.sun.com/cgi-bin/bugreport.cgi
    # Java VM: Java HotSpot(TM) Client VM (1.4.2_04-b05 mixed mode)
    # Error ID: 53414645504F494E540E4350500159
    # Problematic Thread: prio=5 tid=0x008cf798 nid=0x8a8 runnable
    I would get very similar or same error like above.
    I have got around it, but I would like to find out why it was happening.
    If you look at following function, you will notice this.get_ID() call.
    I used to pass "this" object instead of this.get_ID().
    If I replace this.get_ID() with "this" object JVM would crash while loading stackframe.
    Also, it would crash around while loading
    "Iterator Keys = m_UserCollection.getKeys();"
    Does anybody have any idea what might have caused above function to crash while loading stackframe?
    Thanks in advance.
    public void setUsers(UserCollection value)
    if(m_UserCollection == null)
    m_UserCollection = UserFactory.GetUsers(get_ID());
    UserCollection inCol = value;
    Iterator Keys = m_UserCollection.getKeys();
    while(Keys != null && Keys.hasNext())
    Object key = Keys.next();
    User current = m_UserCollection.getm_users(key);
    User newUser = inCol.getm_users(key);
    if(current != null && newUser == null)
    current.RemoveFromGroup(this.get_ID());
    else
    inCol.Remove(key);
    Iterator enums2 = inCol.getKeys();
    while(enums2.hasNext())
    inCol.getm_users(enums2.next()).AddToGroup(this.get_ID());

    Hi
    Did it dump out where the function name is?
    Is it happening consistenly?
    Can u try running with -XX:+PrintCompilation and show the last few printed line? You will see something like
    11 b java.lang.String::lastIndexOf (67 bytes)
    Thanks.

  • System Error 998 While loading the Labview Run-Time Engine

    Hello.
    I have a DLL made with LV 7.1 I run the dll using a C compiler and works great in WINXP, but cannot run in Win2K. Error is:
    "System error 998 while loading the Labview Run-Time Engin(c:\program
    files\National Instruments\Shared\Labview Run-Time\7.1\\lvrt.dll)
    READVOLTAGE requires a version 7.1 (or compatible) Labview Runtime
    Engine. Please contact the vendor of READVOLTAGE to correct this
    problem"
    READVOLTAGE is my function inside the dll. The runtime is already
    installed. I tried it in another WINXP running machine and works fine.

    This is actually a Microsoft bug with statically loaded DLLs. There are a couple of workarounds for it, and I have included two links below to posts that address this issue:
    Not found error message from LabVIEW runtime when called from VC++ with statically linked MFC
    I get error 998 when calling a LabVIEW buildt DLL from MSVC++
    Kind Regards,
    E. Sulzer
    Applications Engineer
    National Instruments

  • Issue while loading the library files(".so" or ".sl") using JNI

    Hi,
    We are loading the c library files using system.load during the init phase of servlet.
    While loading the application for the first time everything goes smooth and application behaves as expected.
    We are facing the below issue when we try restarting the application through admin console in case of WAS (web sphere) for any patch deployment in the application.
    java.lang.UnsatisfiedLinkError: Native Library /users/test1/siva/jnilib.so already loaded in another classloader.
    If we restart the complete WAS every thing works fine.
    There is no specific System.unload function available in java to remove the loaded library in JVM.
    Is there any alternate way to unload the library which is loaded in class loader to resolve this issue which can be called in the destroy phase of servlet?
    Any help here is highly apreciated.
    TIA,
    Siva.

    sivabalan wrote:
    Hi,
    We are loading the c library files using system.load during the init phase of servlet.
    You mean a shared library, not C files (which would be source.)
    However I am not sure that loading it in a servlet is a good idea. But that is a different issue.
    Is there any alternate way to unload the library which is loaded in class loader to resolve this issue which can be called in the destroy phase of servlet?This is how it works on the Sun VM back to about 1.2. And as far as I know there is no other way for it to work on any other VM.
    You have a class with native methods that relies on the shared library. The class and the shared library are loaded into a class loader. If the class loader is unloaded by the GC then the native library will be unloaded as well.
    A class loader can be collected by the GC if if the classes loaded by it are no longer actively references. So ALL class instances can be collected.
    If the above is true then by running System.gc() twice it will collect the classloader and thus the native library.
    So in your situation it might work if your app server allows you do GC (full GC is better if that is an option). You could try unloading the app, then doing the GC option several times, then do a load. Try the GC option about 6 times and the reduce it down to see if 2 work.
    If that doesn't work then there could be some programmatic solutions using the same idiom.

  • Error while loading shared libraries: libtasn1.so.3: cannot open share

    Hello,
    I have done an update to the system today and now I see the following error:
    emacs: error while loading shared libraries: libtasn1.so.3: cannot open shared object file: No such file or directory
    same happens if I try to open epiphany.
    I have:
    extra/libtasn1 3.0-1 [installed]
    I tried to reinstall it, but there is no effect. Any idea what I can do to fix this?
    Thanks!

    looking at the file list, libtasn1 3.0-1 comes with libtasn1.so.6. The packages that depend on it will need to be rebuilt for the soname bump. If you're sure that you're completely up to date, file a bug report. If you got the versions of the programs you're using from the AUR, rebuild them yourself.
    Last edited by Scimmia (2012-11-05 14:34:01)

  • Error while loading entity  ORM

    entityLoad('Account') throws this error,
    Error while loading entity
    java.sql.SQLException: [Macromedia][Oracle JDBC Driver]Numeric overflow.
    However  entityLoad('Account',1) returns the proper record.
    I am using oracle 10g as a datebase.
    Is this a bug with oracle? entityLoad('Account') should return all my accounts.

    What if you use the offset & maxrows settings to return the whole lot? Does that work?
    If not, it might be bung data: try paging through all the records to see if one page in particular gives you a problem, then you can maybe narrow it down to a specific record.
    Can you profile the SQL that Hibernate is passing to the DB? Anything unexpected about it?
    Adam

  • Error while loading metadata in HPCM application using Import Staging table

    Hello All,
    I was loading metadata in HPCM using Import Staging table. I successfully uploaded Driver Definition metadata.
    However while loading "Driver Exception" metadata, I am not able to load it successfully. I have checked the HPCM logs but found nothing. I then checked the "Import Exception" table and found the following error message.
    ERROR_POPULATED_DIM_COLUMNS_DO_NOT_MATCH_STAGE_DEFINITIONCan anyone please help me with this.
    Regards,
    -SM

    It is a bug and there is a patch available.
    Oracle Support - "Bug 12905298 : INTERFACE FAILS TO INTEGRATE ON STEP "LOAD DATA INTO PLANNING"
    Patch = 12905298: INTERFACE FAILS TO INTEGRATE ON STEP "LOAD DATA INTO PLANNING"
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • Error message while opening a project: "an error was encountered while loading the image"

    We've run into a new error message here today:
    an error was encountered while loading the image
    It appears when we try to load a recorded project. It occurs on both the cp-file and the backup file.
    It's on a windows 7-machine.
    Anyone encountered it and knows what it means?
    is the project lost forever?

    Hi there
    Hmmm, it may be related to Windows 7, but let's check the obvious stuff first.
    Where exactly is th project if you locate it using Windows Explorer? Is it found on your local C drive or is it found on a network drive?
    If it's on a network drive, please note that Captivate has never worked well with projects being edited while they are on network resources. So the first step in this case (assuming that's where the project is) would be to move the project file off the network and onto the local C drive. Then try opening again.
    Assuming the project isn't on a network, all still may not be lost. The next thing to try would be to create a new blank project sized identically to the one that seems to have gone south. Then click File > Import > Slides/Objects and see if you can import the content from the errant project into the new.
    And if those steps fail, it's likely time to restart from scratch. But depending on what you have done so far and how you have done it, you might be able to salvage some of it by playing back the content (assuming you have published it during testing) and record what you are playing back with Captivate.
    Best of luck to you in sorting things. You should also consider filing a Bug Report.
    Cheers... Rick
    Helpful and Handy Links
    Captivate Wish Form/Bug Reporting Form
    Adobe Certified Captivate Training
    SorcerStone Blog
    Captivate eBooks

  • LV crashes while loading my llb, but the built app. functions correctly???

    I�m hoping someone may understand the cause of the LabVIEW crash I�m experiencing.
    LabVIEW 6.1 crashes and Windows 2000 says, "LabVIEW.exe has generated errors and will be closed by Windows" when I try to load an llb by clicking on the top-level vi from within LabVIEW or when opening the llb from outside LabVIEW. It crashes while loading particular sub-vi�s of the llb. If I try to load the offending subvi�s directly, I also get the same crash. If I build the llb into an application, the build goes smoothly and the resulting application functions correctly. If I use a �splash screen� approach and do not load the offending sub-vi�s (by not opening vi references to them), they load-up fi
    ne when the top-level vi loads and then I am able to edit and re-save any vi of the llb including the offending sub-vi�s. I�ve tried re-saving the llb as a separate development distribution and still get the same crash behavior. I�ve also tried saving the offending sub-vi�s to separate files outside the mother llb (after getting them open with the splash screen approach) and I get the same crash when I open these files. If I save one of the offending sub-vi�s as a separate llb, I can�t get it open even with the splash screen approach. I�ve loaded the latest video driver for my Dell Inspiron 8100 laptop and I get the same behavior on a Dell Dimension 8200 desktop that is also running Windows 2000 (Version 5 SP4). There are 110 objects in my llb that includes *.vi�s, *.rtm�s, and *.ctl�s.. Any ideas as to why/how this is occurring and how I can fix it? Is this a known 6.1 bug that is fixed in 7? Any info would be greatly appreciated. I�ve included my splash screen like loader, f
    or what it�s worth. Thanks.
    Attachments:
    __loadVIs.vi ‏88 KB

    Thanks for responding. Your understanding is correct. Mass compiling was one of the first things I tried (although I failed to mention it). I also un-installed and re-installed LabVIEW. It crashes during mass compiling of the full llb, although the vi that it appears to be working on when it crashes is not an �offender�, i.e. I can open that vi fine. The crash during mass compiling is the same crash, i.e. Windows says it had to close LabVIEW because it generated errors.
    I�ve attached one of the offenders. It is missing many of it�s sub-vi�s so you�ll have to hit �ignore vi� a bunch when opening it. (The llb of it is ~2.6 MB. I thought that might be too big/rude to post.) This vi crashes LabVIEW upon mass compile or upon opening it (after hit
    ting �ignore subvi� a bunch).
    I was going to attach an llb of another smaller offender, but in the process of editing it to be a little prettier and better documented, the problem kind of vanished for that vi. The main routine still crashes when I mass compile the full llb, but now I can open some of the old offenders without incident. I still can�t open the main routine directly as it crashes LabVIEW. Thanks for your time.
    Attachments:
    aveParam.vi ‏769 KB

  • Sun PKCS#11 provider ignores the PIN while loading keystore in Windows JRE

    We are using smart card based login in our GUI application. We use active client for Card reader. We are using sun PKCS#11 provider to read certificate from the CARD. In the code we are passing PIN while loading the keystore. It seems the pin is getting ignored and we get active client pin dialog.
    PS: In linux JRE the pin passed while loading keystore is working properly.
    Below is the code snippet that i used for testing.
    public static void  main(String arg[]) throws Exception
           try
             //Create our certificates from our CAC Card
            String configName = "card.config";
             Provider p = new sun.security.pkcs11.SunPKCS11(configName);
             Security.addProvider(p);
             char[] pin = { '1', '2', '3', '4', '5', '6' };
             KeyStore cac = null;
             cac = KeyStore.getInstance("PKCS11");
             cac.load(null, pin);
             showInfoAboutCAC(cac);
          catch(Exception ex)
             ex.printStackTrace();
             System.exit(0);
       public static void showInfoAboutCAC(KeyStore ks) throws KeyStoreException, CertificateException, FileNotFoundException, IOException
          Enumeration<String> aliases = ks.aliases();
           int count = 0;
          while (aliases.hasMoreElements()) 
             String alias = aliases.nextElement();
             X509Certificate[] cchain = (X509Certificate[]) ks.getCertificateChain(alias);
             if (cchain != null){
             System.out.println("Certificate Chain for : " + alias);
             for (int i = 0; i < cchain.length; i ++)
                System.out.println(i + " SubjectDN: " + cchain.getSubjectDN());
    System.out.println(i + " IssuerDN: " + cchain[i].getIssuerDN());
    content of card.config is
    name = myConfig
    library = C:\\WINDOWS\\system32\\acpkcs211.dll
    Alternative we can see the same behaviour if we run the following command
    keytool -keystore NONE -storetype PKCS11 -providerClass sun.security.pkcs11.SunPKCS11 -providerArg "E:\work1\card.config" -list
    This command will ask ping in the command line and again active client PIN diaolog will be prompted.
    Please let me know if this a bug in Sun PKCS#11 provider in Windows and is there any work around to fix the issue.
    Enviornmnet Details::
    OS Win XP sp3
    Java version "1.6.0_17"
    Active client library version :
    P11 Library:
    Name:  acpkcs211.dll
    Version: 4-0-0-12
    Thanks in advanced
    Ruhul                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

    The program is just to simulate the issue. I understand that user have to pass the pin. In our GUI we have our own dialog to get the pin from user and pass it to the PKCS#11 provider that uses the pin while loading the keystore.
    cac.load(null, pin); // the pin passed in load method is not used at all
    My problem here is even after the proper pin is supplied by the user the active client PIN dialog is prompted. Whereas in LInux JRE this works fine.
    We have a command line application where active client dialog popup is not acceptable. We need to get the PIN from user as command argument and load the keystore.
    Please let me know if this clarifies the confusion.
    Thanks,
    Ruhul

  • Anyone else seen this while loading a plugin: "Error #2044: Unhandled IOErrorEvent:"

    Hello All,
    I'm curious if anyone else has seen this error while loading an OSMF plugin dynamically:
    "Error #2044: Unhandled IOErrorEvent:. text=Error #2124: Loaded file is an unknown type."
    You will only see this with the debug version of the Flash Player. The plugin loads fine, but the RTE appears. I've submitted a bug for this (http://bugs.adobe.com/jira/browse/FM-1104) but apparently no one at Adobe can reproduce it while everyone on our team can easily reproduce it at will. Some use Windows, some use Macs.
    I've written a very simple player and a very simple plugin, you can simply refresh your browser to try to reproduce the error. You won't see anything on the page, just hit refresh a few times until you see it. You'll need the debug version of the Flash Player to see the RTE. One guy on our team (uses Windows) claims he sees it after he clears his browser cache. I can make it happen on Safari for Mac by simply hitting Cmd-R a few times.
    http://mediapm.edgesuite.net/chuck/osmf-test/OSMFPluginErrorTest.html
    I also see this on cnn.com. I've attached a screen shot.
    Go to cnn.com and watch any video. I get the RTE every time on the first try. We are seeing this repeatedly on OSMF built players that load OSMF plugins dynamically.
    Reply if you see the error. This will greatly help in determining that I've not completely lost my mind
    In the mean time, I'll be working locally on a work around and hopefully submit that to the OSMF trunk.
    Thanks,
    - charles

    Hi Charles,
    Re:  CNN.com > Yes I am seeing the error (with each video twice in fact, 1st on start of preroll, 2nd on start of main video)
    Re:  http://mediapm.edgesuite.net/chuck/osmf-test/OSMFPluginErrorTest.html
    This link is not loading.
    Both cases using both:
    Windows XP > IE 6.0.2900 > Flash Player 10,1,85,3 installed
    Windows XP > Firefox 2.0.0.18 > Flash Player 10,1,85,3 installed
    hth,
    g

  • MainPage.xaml throws an error while loading designer.

    Hello,
    I am new to WIndows store app development.
    I am creating a sample windows store App using VC++ UAP using Visual Studio 2015 CTP5. 
    MainPage.xaml throws an error while loading the designer:
    "The element [Grid] could not be displayed because of a problem with WIndows..UI.Xaml.Control.Grid"
    Exception:
    NullReferenceException: Object reference not set to an instance of an object.
    at Microsoft.VisualStudio.DesignTools.WindowsXamlDesigner.WindowsStoreXamlPlatform.get_ThemeResources()
    at Microsoft.VisualStudio.DesignTools.Platform.InstanceBuilders.ClrObjectInstanceBuilder.FindInstantiatedResource(IInstanceBuilderContext context, ViewNode viewNode, DocumentNode documentNode, DocumentNode keyNode)
    at Microsoft.VisualStudio.DesignTools.Platform.InstanceBuilders.ClrObjectInstanceBuilder.UpdatePropertyOrChildValue(IInstanceBuilderContext context, ViewNode viewNode, IProperty propertyKey, Int32 childIndex, DocumentNodeChangeAction action, DocumentNode valueNode, ViewNode& childViewNode, IInstanceBuilder& valueBuilder, Boolean& isNewInstance)
    at Microsoft.VisualStudio.DesignTools.Platform.InstanceBuilders.ClrObjectInstanceBuilder.UpdateProperty(IInstanceBuilderContext context, ViewNode viewNode, IProperty propertyKey, DocumentNode valueNode)
    at Microsoft.VisualStudio.DesignTools.Platform.InstanceBuilders.DependencyObjectInstanceBuilderBase`1.UpdateProperty(IInstanceBuilderContext context, ViewNode viewNode, IProperty propertyKey, DocumentNode valueNode)
    at Microsoft.VisualStudio.DesignTools.WindowsXamlDesigner.InstanceBuilders.FrameworkElementInstanceBuilder.UpdateProperty(IInstanceBuilderContext context, ViewNode viewNode, IProperty propertyKey, DocumentNode valueNode)
    at Microsoft.VisualStudio.DesignTools.Platform.InstanceBuilders.ClrObjectInstanceBuilder.InstantiateProperties(IInstanceBuilderContext context, ViewNode viewNode, DocumentCompositeNode compositeNode)
    at Microsoft.VisualStudio.DesignTools.Platform.InstanceBuilders.ClrObjectInstanceBuilder.Initialize(IInstanceBuilderContext context, ViewNode viewNode, Boolean isNewInstance)
    at Microsoft.VisualStudio.DesignTools.Platform.InstanceBuilders.ViewNodeManager.InitializeInstance(IInstanceBuilder builder, ViewNode viewNode, Boolean isNewInstance)
    The default contents of MainPage.Xaml for windows 8.1 project is :
    <Page
    x:Class="HelloWorld.MainPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="using:HelloWorld"
    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}">
    </Grid>
    </Page>
    The windows Phone 8.1 project loads the MainPage.xaml correctly. What is wrong with MainPage.xaml of Windows 8.1 project ?
    Thanks,
    Kunal

    There is nothing wrong with the code.
    >> using Visual Studio 2015 CTP5. 
    You're using a beta version of Visual Studio. Try using VS2013 instead. There's probably a bug.
    It could also be a problem with your Visual Studio install. Try repairing and/or reinstalling.
    Does taking out the Background property fix the issue? (i.e. just leave a completely empty grid)
    I'm a self-taught noob amateur. Please take this into account when responding to my posts or when taking advice from me.

  • INS-08106] Unexpected error occurred while loading the view 'GridPlugPlayInfoUI'

    Hi
    I got the below error message while installing the Oracle 11g R2 Database Grid software on Oracle Linux 6.4 OS using vnc viewer.
    "INS-08106] Unexpected error occurred while loading the view 'GridPlugPlayInfoUI' associated to state 'GridPlugPlayInfoUI'."
    Please let me know how to overcome this error and proceed with the installation.
    Contents of the error log file:
    java.lang.NullPointerException
      at oracle.sysman.oii.oiin.OiinNetOps.addNICInfo(OiinNetOps.java:144)
      at oracle.sysman.oii.oiin.OiinNetOps.computeNICList(OiinNetOps.java:109)
      at oracle.sysman.oii.oiin.OiinNetOps.<init>(OiinNetOps.java:76)
      at oracle.sysman.oii.oiin.OiinNetOps.getNetOps(OiinNetOps.java:90)
      at oracle.sysman.oii.oiix.OiixNetOps.getFullHostName(OiixNetOps.java:49)
      at oracle.install.library.util.MachineInfo.getFullHostName(MachineInfo.java:109)
      at oracle.install.library.db.RAC92Info.is92RACPresent(RAC92Info.java:115)
      at oracle.install.ivw.crs.view.InstallTypeGUI.onEvent(InstallTypeGUI.java:120)
      at oracle.install.commons.flow.AbstractFlowExecutor.loadView(AbstractFlowExecutor.java:508)
      at oracle.install.commons.flow.AbstractGraphicalFlowExecutor.access$001(AbstractGraphicalFlowExecutor.java:39)
      at oracle.install.commons.flow.AbstractGraphicalFlowExecutor$1.call(AbstractGraphicalFlowExecutor.java:99)
      at oracle.install.commons.flow.AbstractGraphicalFlowExecutor$1.call(AbstractGraphicalFlowExecutor.java:98)
      at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:269)
      at java.util.concurrent.FutureTask.run(FutureTask.java:123)
      at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
      at java.awt.EventQueue.dispatchEvent(EventQueue.java:461)
      at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
      at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
      at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
      at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
      at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
    ---# Begin Stacktrace #---------------------------
    ID: oracle.install.commons.util.exception.DefaultErrorAdvisor:458
    oracle.install.commons.flow.FlowException: [INS-08106] Unexpected error occurred while loading the view 'GridPlugPlayInfoUI' associated to state 'GridPlugPlayInfoUI'.
      at oracle.install.commons.flow.AbstractFlowExecutor.loadView(AbstractFlowExecutor.java:510)
      at oracle.install.commons.flow.AbstractGraphicalFlowExecutor.access$001(AbstractGraphicalFlowExecutor.java:39)
      at oracle.install.commons.flow.AbstractGraphicalFlowExecutor$1.call(AbstractGraphicalFlowExecutor.java:99)
      at oracle.install.commons.flow.AbstractGraphicalFlowExecutor$1.call(AbstractGraphicalFlowExecutor.java:98)
      at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:269)
      at java.util.concurrent.FutureTask.run(FutureTask.java:123)
      at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
      at java.awt.EventQueue.dispatchEvent(EventQueue.java:461)
      at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
      at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
      at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
      at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
      at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
    Caused by: java.lang.NullPointerException
      at oracle.install.library.crs.CRSInfo.getDefaultIPAddressForGNSVIP(CRSInfo.java:584)
      at oracle.install.ivw.crs.view.GridPlugPlayInfoUI.onEvent(GridPlugPlayInfoUI.java:373)
      at oracle.install.commons.flow.AbstractFlowExecutor.loadView(AbstractFlowExecutor.java:508)
      ... 12 more
    ---# End Stacktrace #-----------------------------

    Hello,
    It's a Bug.
    Try selecting all languages and give a try ...
    Bug 9632373: UNEXPECTED ERROR OCCURRED WHILE LOADING THE VIEW 'GRIDPLUGPLAYINFOUI'
    <Moderator Edit - deleted MOS Doc content - pl do not post such content - it is a violation of your Support agreement>
    Thank you

  • ATV2: Error occurred while loading this content

    This error started appearing out of the blue today. And I'm nearly at my wits end with this, because no solution I could possibly think of makes any difference. I would get this error intermittently once a month or so, but unplugging ATV2 and doing a cold start would usually resolve this.
    Any ideas? Anyone?
    Symptoms:
    "An error occurred while loading this content" appears
    It appears exclusively for movies, TV shows and music in my iTunes library
    It affects all media - nothing in my iTunes library will play
    Streaming of purchased content form iTunes store is not affected by this error
    I am able to play my iTunes content on my Mac
    I am able to play my iTunes content on a different Mac via HomeSharing
    I am unable to play any media stored in my iTunes library on my ATV. Period.
    What I've tried (to no avail):
    Power cycled my cable modem (DOCSIS 3 compliant)
    Power cycled my AirPort
    Power cycled my Mac
    Power cycled my ATV2
    Logged out of iTunes store on Mac and ATV2 and logged back in
    Turned off Home Sharing on Mac and ATV2 and started it up again
    My setup:
    I have a 25+ mbps cable internet
    Airport Extreme is my main router
    Mac is connected to AE via ethernet (it houses my iTunes library and has WiFi shut off)
    ATV2 is connected to AE via ethernet as well
    Both Mac and ATV2 have reserved IP addresses on Airport Extreme and always get the same IP, no conflicts
    Both Mac and ATV2 have a good connection speed when tested
    All software and firmware is up to date and Mac, AE and ATV2

    You are definitely NOT the only one here with this MAJOR issue: http://discussions.apple.com/thread.jspa?threadID=2615363
    I have the same issue, and I have a 6MB AT&T Elite Pro DSL service that I have always had since purchasing my ATV2 in October. Never have I had these issues until the 4.2 update. Horrible software bug and it keeps coming back up. TV shows, movies, etc. No rhyme or reason. Some shows new, some old. Some movies HD, some SD. It is almost as if the Apple TV rolls a die and if I get an odd number, I get the error message. Even number, it plays through...
    Why would Apple continue to release software updates that do not address these issues? We have to keep leaving Apple feedback on this issue that is big enough that over 13,000 views on their own message board confirm this problem since the 4.2 software update a few weeks ago...
    Tell your friends: http://www.apple.com/feedback/appletv.html

Maybe you are looking for