First build of 1.2 succeeds, but crashes when it runs the initial config app. (1 Viewer)

gfmoore

Portal Member
May 15, 2011
28
0
Stoke-on-Trent
Home Country
United Kingdom United Kingdom
EDIT: Solved

Sorry about this, but I can't get the Media Portal config to run.

I am using VStudio 2010

This is part of the wiki entry that I am following:
Setting up Visual Studio
Open up MediaPortal.sln in Visual Studio, right click on the included C# project "MediaPortal" and chose "Set as StartUp Project". Now set the solution configuration to "Debug" and run the solution with the green "Play" symbol or hit F5 on your keyboard.
Configuring your Debug build
On the first startup of your new debug build you are asked to follow the configuration wizard. Please do so, it will set up all basic functions.
It builds correctly, runs the splash screen and the popup for Standard mode or expert mode - I leave it at Standard Mode and press the continue button.

I get a popup saying MediaPortal Configuration has stopped working.
These are the details:
Description:
Stopped working

Problem signature:
Problem Event Name: CLR20r3
Problem Signature 01: configuration.exe
Problem Signature 02: 1.1.7.0
Problem Signature 03: 4ddbc937
Problem Signature 04: Utils
Problem Signature 05: 1.1.7.0
Problem Signature 06: 4ddbc90b
Problem Signature 07: 196
Problem Signature 08: 9a
Problem Signature 09: System.ArgumentException
OS Version: 6.1.7601.2.1.0.256.48
Locale ID: 2057

I select the debug the program option. The Visual Studio just in time debugger shows
An unhandled exception('System Argument exception') occured in configuration.exe [176]

I select the first entry in the list of possible debuggers - Media Portal ...

It jumps to LocalisationProvider.cs and line 83 and shows that the ArgumentException that was unhandled was "no available language found".

The code segment before this was
GetAvailableLangauges();

// If the language cannot be found default to Local language or English
CultureInfo cultureInfo = null;
if (cultureName != null && _availableLanguages.TryGetValue(cultureName, out cultureInfo))
{
_currentLanguage = cultureInfo;
}
else
{
_currentLanguage = GetBestLanguage();
}

if (_currentLanguage == null)
{
throw (new ArgumentException("No available language found"));
}

_languageStrings = new Dictionary<string, Dictionary<int, StringLocalised>>();

My version of VS is Microsoft Visual Studio 2010
Version 10.0.30319.1 RTMRel

I am pretty certain I have downloaded and installed all the pre-requisites:

I am using Tortoise
I have downloaded the entire trunk!!
My folder is C:\svnroot\mediaportal\trunk\...
I've installed .net2.0
I've installed the latest DirectX SDK
I've put the YASM.exe in the ..\VC\bin folder
[incidentally the readme for YASM says:
place the three files vsyasm.xml, vsyasm.props and vsyasm.targets
in the directory alongside the other files with which VSYASM will
be used.
I have no idea where these should go, is it imortant at this stage?]
I've installed the Nunit framework - just in case
I've checked that the build config for the solution is set to debug (32 bit)
I've downloaded and installed the Windows 7 sdk and .net 3.5 sp1 (not that I am using the build scripts)
I've installed NSIS (again probably not relevant)
I'm following the instructions on the debugging wiki page as noted above.

I'm a bit stuck :(

btw what net framework version is this to be compiled against? 3.5? The reason i ask is that
I tried to set MediaPortal.configuration as the startup and build/debug that and I got a
Cross-thread operation not valid: Control 'DlgConfigModeHint' accessed from a thread other than the thread it was created on.
Which I seem to recall from some work I did years ago is due to one thread trying to access (oftentimes) a textfield etc in another form which isn't allowed anymore, but once was. However, this may be confusing the issue.

Added:
Following a suggestion in another post: https://forum.team-mediaportal.com/.../mediaportal-first-compile-run-problem-91888/
I did a build with MSBuild and tried the installer and that works. Strange.

Added:
The post after this https://forum.team-mediaportal.com/...l-first-compile-run-problem-91888/#post702947
solved the problem.

The MediaPortalDirs.xml file (in the C:\svnroot\mediaportal\trunk\mediaportal\MediaPortal.Application\bin\Debug folder) is pointing to the C:\ProgramData\Team MediaPortal\MediaPortal folders (including language) which aren't there because I did a full clean uninstall.

Could this step be added to the wiki please.

:)
 

mm1352000

Retired Team Member
  • Premium Supporter
  • September 1, 2008
    21,577
    8,224
    Home Country
    New Zealand New Zealand
    Re: AW: First build of 1.2 succeeds, but crashes when it runs the initial config app.

    Hi,
    whats the solution for the crossthread operation ?

    Install MP configuration files (ie. install MP) if you want to run debugging sessions.

    mm
     

    Users who are viewing this thread

    Top Bottom