locked
Why I got a black screen in an app from Store?

    Question

  • Hi,

    I have an app certified in Store Words Gen.
    When I installed from Store don't start and I have a black screen.

    The app has a SQLite database  WordGen.db 8k

    The installed has 0k and when I oppend error is not a database file is encrypted.
    I copied the db with 8k in:
    C:\Users\ADRIAN\AppData\Local\Packages\ADIBUCORP.WordsGen_7g2nn1rq3a0g0\LocalState
    it works.

    In properties db I put Content and Copy always.
    Reference: SQLite for Windows Runtime (Windows 8.1)

    Thanks


    ADRIAN DIBU

    Thursday, October 9, 2014 10:16 PM

Answers

  • Hi,

    Problem solved.

    I rebuilt and I made a new release and it works.

    I have no idea how it fixed I did the same thing.

    Thanks for help.

    Best regards 


    ADRIAN DIBU

    • Marked as answer by adibu Tuesday, October 14, 2014 8:03 PM
    Tuesday, October 14, 2014 8:03 PM

All replies

  • It sounds like the database you want deployed with the app isn't packaged as content.

    Matt Small - Microsoft Escalation Engineer - Forum Moderator
    If my reply answers your question, please mark this post as answered.

    NOTE: If I ask for code, please provide something that I can drop directly into a project and run (including XAML), or an actual application project. I'm trying to help a lot of people, so I don't have time to figure out weird snippets with undefined objects and unknown namespaces.

    Friday, October 10, 2014 12:52 PM
    Moderator
  • Hi,

    I made a new release no 2. It passed.

    I checked if is correct built and if:

    In properties db I put Content and Copy always.
    Reference: SQLite for Windows Runtime (Windows 8.1) ok not with yellow.

    I uninstalled the app and I downloaded the app. I couldn't figure if is release 2 (in store they

    don't show).

    I even updated and it starts to download something(if it is release 2 nothing suppose to happen)

    maybe it was release 1)

    The same the WordGen.db is 0k not 8k.

    Do me a favor and download the app and see if you have black screen and tell me what

    processor you used.

    Thanks


    ADRIAN DIBU

    Friday, October 10, 2014 4:26 PM
  • I don't see it in the store. I searched on "Words Gen". I also searched on "Adibu Corp" and found a bunch of apps, but none of them were "Words Gen".

    Matt Small - Microsoft Escalation Engineer - Forum Moderator
    If my reply answers your question, please mark this post as answered.

    NOTE: If I ask for code, please provide something that I can drop directly into a project and run (including XAML), or an actual application project. I'm trying to help a lot of people, so I don't have time to figure out weird snippets with undefined objects and unknown namespaces.

    Friday, October 10, 2014 5:43 PM
    Moderator
  • Hi,

    Thanks for helping me.

    I found it with

    Clear cache : wsreset.exe

    Shut Down

    Store -- Account -- My Apps -- Words Gen

    and I am able to install and uninstall, it install release 1 with WordGen.db 0k instead of 8k.

    In my dashboard is release 2 and it ok.

    Any idea ? Please.

    How can I get the release if I have not the dashboard?

    Thanks


    ADRIAN DIBU

    Friday, October 10, 2014 7:27 PM
  • Hi,

    If you are able to download.

    Please check at

    C:\Users\YourUserName\AppData\Local\Packages\ADIBUCORP.WordsGen_7g2nn1rq3a0g0\LocalState

    WordGen.db how many K it haves.

    Thanks


    ADRIAN DIBU

    Friday, October 10, 2014 7:34 PM
  • Hi,

    I tried to test the app installed and passed the test with WACK3.4 from VS2013 with

    WACK4.3 app and I got this error:


    Debug configuration test

    FAILED

    Debug configuration

    • Error Found: The debug configuration test detected the following errors: ◦The binary Words Gen.exe is built in debug mode.
    ◦The binary sqlite3.dll is built in debug mode.
    ◦This package has a dependency on Microsoft.VCLibs.120.00.Debug.
    • Impact if not fixed:  Windows Store doesn’t allow a debug version of an app. 

    • How to fix:  Please make sure the app isn’t linking to any debug versions of a framework, and it is built with release configuration. If this is a managed app please make sure you have installed the correct version of .NET framework.

     Thanks


    ADRIAN DIBU

    Friday, October 10, 2014 8:49 PM
  • Hi,
    I uninstalled the app
    I installed and I ran WACK3.4 it passed and the Version was 1.0.0.3
    the release 1
    I updated from store  I ran WACK3.4 it passed and the Version was 1.0.0.8
    the release 2.

    Same problem
    Thanls


    ADRIAN DIBU

    Friday, October 10, 2014 9:17 PM
  • Hi,

    I rebuilt and VS2013 generate version 1.0.0.10 with this error:

    FAILED
    Crashes and hangs
      • Error Found: The crashes and hangs test detected the following errors:
        • Executable C:\Program Files\WindowsApps\ADIBUCORP.WordsGen_1.0.0.10_x64__7g2nn1rq3a0g0\Words Gen.exe was detected by Windows Error Reporting and experienced a crash or hang.
        • Application ADIBUCORP.WordsGen_1.0.0.10_x64__7g2nn1rq3a0g0 was detected by Windows Error Reporting and experienced a crash or hang.
      • Crash dump file C:\Users\ADRIAN\AppData\Local\Microsoft\AppCertKit\Words Gen.exe.17544.dmp was created by Windows Error Reporting and provides additional information.
    • Impact if not fixed: An app that stops responding or crashes can cause data loss and is a poor user experience.
    • How to fix:     Investigate and debug the app to identify and fix the problem.  
      Using Application Verifier Within Your Software Development Lifecycle

    If I tested Version 1.0.0.10 with application WACK 3.4 it passed. It passes the black screen and I can see the main screeen. When is tested in VS2013 it is with black screen.

     Why ?????????????????

    How is possible to have different result and different behavior?

    Thanks


    ADRIAN DIBU

    Saturday, October 11, 2014 12:14 AM
  • Hi,
    I know what the problem is

    C:\WordsGenBinObj\bin\ARM\Release\AppX
    C:\WordsGenBinObj\bin\x86\Release\AppX
    C:\WordsGenBinObj\bin\x64\Release\AppX

    contains WordGen.db and is 8k and I can see the content.

    It suppose to be 8k in the uploaded in Store,
    but is 0k and after installing
    if I try to open it I got error with encryted file.

    If I replace it with the db 8k works perfect.

    Why is not copied correctly by Store?
    Thanks


    ADRIAN DIBU

    Saturday, October 11, 2014 2:10 PM
  • Works here. x64 processor.
    • Edited by RandyPete Saturday, October 11, 2014 4:37 PM
    Saturday, October 11, 2014 4:36 PM
  • Hi,

    Thanks RandyPete for trying to help me.

    I made a new rebuild Version 4 and I have black screen on x64 processor the only what I have.

    If somebody has ARM or x86 I will be happy to know what happen.

    Is any limitation on SQLite database mine is made with SQLite2009Pro and Type SQLite3 database (.db)

    When is installed the app from Store the database is not present it will be copied

    C:\Users\ADRIAN\AppData\Local\Packages\ADIBUCORP.WordsGen_7g2nn1rq3a0g0\LocalState

    at the first lunch with the code from App.xmal.cs

       private async void CopyDatabase()
            {
                System.Diagnostics.Debug.WriteLine("In App Init CopyDatabase()");
              
                bool isDatabaseExisting = false;

                try
                {
                    StorageFile storageFile = await ApplicationData.Current.LocalFolder.GetFileAsync("WordsGen.db");
                    isDatabaseExisting = true;
                }
                catch
                {
                    isDatabaseExisting = false;
                }

                if (!isDatabaseExisting)
                {
                    StorageFile databaseFile = await Package.Current.InstalledLocation.GetFileAsync("WordsGen.db");
                    await databaseFile.CopyAsync(ApplicationData.Current.LocalFolder);
                }
            }

           protected async override void OnLaunched(LaunchActivatedEventArgs e)
            {

    #if DEBUG
                if (System.Diagnostics.Debugger.IsAttached)
                {
                  //  this.DebugSettings.EnableFrameRateCounter = true;
                }
    #endif
                Frame rootFrame = Window.Current.Content as Frame;
                // Do not repeat app initialization when the Window already has content,
                // just ensure that the window is active
                if (rootFrame == null)
                {
                    // Create a Frame to act as the navigation context and navigate to the first page
                    rootFrame = new Frame();
                    // Set the default language
                    rootFrame.Language = Windows.Globalization.ApplicationLanguages.Languages[0];

                    rootFrame.NavigationFailed += OnNavigationFailed;

                    if (e.PreviousExecutionState == ApplicationExecutionState.Terminated)
                    {
                        //TODO: Load state from previously suspended application
                        await Words_Gen.Common.SuspensionManager.RestoreAsync(); // Added
                  
                    }

                    // Place the frame in the current Window
                    Window.Current.Content = rootFrame;
                    // Get a reference to the SQLite database    
                    DBPath = Path.Combine( Windows.Storage.ApplicationData.Current.LocalFolder.Path, "WordsGen.db");

                    CopyDatabase();  // Copy Database from device it is how is delivered

                    //   DataService.CreateDbAsync(); // Added for Sqlite
                   // isSaved = false;
                    if (roamingSettings.Values.ContainsKey("MyValueisSaved"))
                    {
                        if (roamingSettings.Values["MyValueisSaved"].ToString().Equals("0"))
                        {
                            App.isSaved = false;
                        }
                        else if (roamingSettings.Values["MyValueisSaved"].ToString().Equals("1"))
                        {
                            App.isSaved = true;
                        }
                    }
                    else
                    {
                        roamingSettings.Values["MyValueisSaved"] = "0";
                        App.isSaved = false;
                    }

                }   
                if (rootFrame.Content == null)
                {
                    // When the navigation stack isn't restored navigate to the first page,
                    // configuring the new page by passing required information as a navigation
                    // parameter
                    rootFrame.Navigate(typeof(MainPage), e.Arguments);
                }
         
                // Ensure the current window is active

                //Moved from MainPage to prevent duplicate
                SettingsPane.GetForCurrentView().CommandsRequested += OnCommandsRequested;
                Window.Current.Activate();
            }


    ADRIAN DIBU

    Saturday, October 11, 2014 7:56 PM
  • X86 here. Black screen.
    Sunday, October 12, 2014 5:10 PM
  • Hi,

    Thanks for help.

    Please replace WordsGen.db at

    C:\Users\YourUserName\AppData\Local\Packages\ADIBUCORP.WordsGen_7g2nn1rq3a0g0\LocalState

    with 8k database is at

    https://onedrive.live.com/redir?resid=857BC62170EDDB22!3912&authkey=!AAYA6YFiiYHSOJI&ithint=file%2cdb

    Tell me please if it works.

    Thanks


    ADRIAN DIBU

    Sunday, October 12, 2014 9:20 PM
  • Works on my x86 with the new file.  Good job in solving it.
    Monday, October 13, 2014 11:08 AM
  • Hi,

    Thanks for help.

    The problem is not solved.

    The Store download has the WordsGen.db with 0k not 8k.

    I can't understand why with Store download on your x64

    system works and on mine not.

    How can I inform the certification team that something is wrong?

    Thanks


    ADRIAN DIBU

    Monday, October 13, 2014 12:42 PM
  • Well, it is quite hard to say where it went wrong.  It is definitely not because of the certification process.  It's something in you code.  I can't say for sure what since I don't have the project. 

    I can try to help you debug it if you email me your project at livingenzyme att yahoo dott com.  I know sharing one's project is a sensitive issue, so don't worry about it if you don't want to.  If you do, I promise to delete it as soon as I find out why it's doing what it's doing.

    Monday, October 13, 2014 1:36 PM
  • Hi,

    I haven't a problem posting the code.

    I will be more than happy if somebody will find something to learn from my experience or correct me

    if I am wrong. I worked months and maybe is boring because of tens thousands of line.

    More info at www.fatslimmer.com

    The link is 

    https://onedrive.live.com/redir?resid=857BC62170EDDB22!3913&authkey=!AKIaYBO5wfzS950&ithint=file%2czip

    Thanks


    ADRIAN DIBU


    • Edited by adibu Monday, October 13, 2014 4:13 PM Error
    Monday, October 13, 2014 4:05 PM
  • Your problem is you only have sqlite3 for x64 installed.  The data for that file will only be created in x64 system.

    Edit.

    In other words, you need to get the x86 and winrt versions and reference them as well.


    • Edited by RandyPete Monday, October 13, 2014 5:44 PM
    Monday, October 13, 2014 5:35 PM
  • Hi.

    Thanks for the prompt answer.

    "Your problem is you only have sqlite3 for x64 installed.  The data for that file will only be created in x64 system."

    My x64 not working

    "In other words, you need to get the x86 and winrt versions and reference them as well."

    I don't understand what means x86 and winrt versions where can I find.

    I have another app Class Time where I use the same type sqlite3 and works perfect. You can

    try it is 7 day free trial.

    C:\WordsGenBinObj\bin\ARM\Release\AppX
    C:\WordsGenBinObj\bin\x86\Release\AppX
    C:\WordsGenBinObj\bin\x64\Release\AppX

    contains WordGen.db and is 8k and I can see the content.

    Where can I find the installed WordsGen.db?

    I know where is copied

    C:\Users\ADRIAN\AppData\Local\Packages\ADIBUCORP.WordsGen_7g2nn1rq3a0g0\LocalState

    Thanks


    ADRIAN DIBU

    Monday, October 13, 2014 8:37 PM
  • Hi.

    Thanks for the prompt answer.

    "Your problem is you only have sqlite3 for x64 installed.  The data for that file will only be created in x64 system."

    My x64 not working

    "In other words, you need to get the x86 and winrt versions and reference them as well."

    I don't understand what means x86 and winrt versions where can I find.

    I have another app Class Time where I use the same type sqlite3 and works perfect. You can

    try it is 7 day free trial.

    C:\WordsGenBinObj\bin\ARM\Release\AppX
    C:\WordsGenBinObj\bin\x86\Release\AppX
    C:\WordsGenBinObj\bin\x64\Release\AppX

    contains WordGen.db and is 8k and I can see the content.

    Where can I find the installed WordsGen.db?

    I know where is copied

    C:\Users\ADRIAN\AppData\Local\Packages\ADIBUCORP.WordsGen_7g2nn1rq3a0g0\LocalState

    Thanks


    ADRIAN DIBU


    Well, in that case, I'm stumped as well.
    Monday, October 13, 2014 11:24 PM
  • Hi,

    Problem solved.

    I rebuilt and I made a new release and it works.

    I have no idea how it fixed I did the same thing.

    Thanks for help.

    Best regards 


    ADRIAN DIBU

    • Marked as answer by adibu Tuesday, October 14, 2014 8:03 PM
    Tuesday, October 14, 2014 8:03 PM