Skip to forum
No analysis on impo...
 
Notifications
Clear all

[Closed] No analysis on import

13 Posts
3 Users
0 Reactions
3,306 Views

Since i had problems installing the official release i went with the latest dev version 0.75 which installs fine.
The problem though is that it does not seem to be able to analyse the imported hands in the database and gets stuck trying. Nothing hangs but the only way of shutting it down is through task manager.

I've played around with my time settings as i found in the forum that this was a problem in earlier versions but it did not help.

I've tried restarting postgresql and creating a new database as well as reinstalling.

Any ideas?

edit: hands come from everest


12 replies
MichaelWagner42
Joined: 12.09.2009

Hi,

I have no ideas so far, but could you please post the log content when this happens? You also may send us some of the hand histories via email to elephant(at)pokerstrategy.com so we can try it ourselves.

Thanks
Michael


thanks for the reply!
how do i find the log?

edit:
it's supposed to be at "Documents and Settings\Administrator\Local Settings\Application Data\PokerStrategy\Elephant"?
it's not, strange


MichaelWagner42
Joined: 12.09.2009

Hi,

The logfiles are moved to the users documents folder (My Documents\PokerStrategy.com\
PokerStrategy.com Elephant
\Logs).

Ciao
Michael


Seems like it's missing a file, where do i find it? :)

2010-02-20 11:26:44,687 - 8140 [1] ERROR PokerStrategy.Elephant.NHibernate: Error updating database to current version
-------------------- NHibernate.Cfg.HibernateConfigException --------------------
- Message: An exception occurred during configuration of persistence layer.
- Data: System.Collections.ListDictionaryInternal
- TargetSite: Void .ctor(System.Xml.XmlReader, Boolean)
- HelpLink: <null>
- Source: NHibernate
- InnerException: System.IO.FileNotFoundException<none>
- StackTrace:
at NHibernate.Cfg.ConfigurationSchema.HibernateConfiguration..ctor(XmlReader hbConfigurationReader, Boolean fromAppSetting)
at NHibernate.Cfg.Configuration.Configure(XmlReader textReader)
at NHibernate.Cfg.Configuration.Configure(String fileName, Boolean ignoreSessionFactoryConfig)
at NHibernate.Cfg.Configuration.Configure()
at PokerStrategy.Elephant.NHibernate.NHibernateHelper.CreateSingleton(String connectionString)
at PokerStrategy.Elephant.NHibernate.NHibernateHelper.get_SessionFactory()
at PokerStrategy.Elephant.NHibernate.SessionLayer.get_Session()
at PokerStrategy.Elephant.NHibernate.SessionLayer.Linq[T]()
at PokerStrategy.Elephant.NHibernate.VersionHistoryRepository.GetHighestVersion()
at PokerStrategy.Elephant.NHibernate.DatabaseMaintenance.TryUpdateDatabase()
-------------------- System.IO.FileNotFoundException --------------------
- Message: Could not find file 'F:\Program Files (x86)\PokerStrategy.com\PokerStrategy.com Elephant\hibernate.cfg.xml'.
- FileName: F:\Program Files (x86)\PokerStrategy.com\PokerStrategy.com Elephant\hibernate.cfg.xml
- FusionLog: <null>
- Data: System.Collections.ListDictionaryInternal
- TargetSite: Void WinIOError(Int32, System.String)
- HelpLink: <null>
- Source: mscorlib
- InnerException: <null><none>
- StackTrace:
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize)
at System.Xml.XmlDownloadManager.GetStream(Uri uri, ICredentials credentials)
at System.Xml.XmlUrlResolver.GetEntity(Uri absoluteUri, String role, Type ofObjectToReturn)
at System.Xml.XmlTextReaderImpl.OpenUrlDelegate(Object xmlResolver)
at System.Threading.CompressedStack.runTryCode(Object userData)
at System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData)
at System.Threading.CompressedStack.Run(CompressedStack compressedStack, ContextCallback callback, Object state)
at System.Xml.XmlTextReaderImpl.OpenUrl()
at System.Xml.XmlTextReaderImpl.Read()
at System.Xml.XmlTextReader.Read()
at System.Xml.XmlCharCheckingReader.Read()
at System.Xml.XsdValidatingReader.Read()
at System.Xml.XPath.XPathDocument.LoadFromReader(XmlReader reader, XmlSpace space)
at System.Xml.XPath.XPathDocument..ctor(XmlReader reader, XmlSpace space)
at System.Xml.XPath.XPathDocument..ctor(XmlReader reader)
at NHibernate.Cfg.ConfigurationSchema.HibernateConfiguration..ctor(XmlReader hbConfigurationReader, Boolean fromAppSetting)
2010-02-20 11:26:44,734 - 8187 [1] ERROR PBNLogger: Exception caught in Boolean PokerStrategyElephant.MainForm.UseDatabase(PokerStrategyElephant.DatabaseDescription, Boolean): Cannot export nHibernate schema


MichaelWagner42
Joined: 12.09.2009

Hi,

It seems like your app.config is old or corrupt: The nHibernate settings are stored there. Do you have copied back the old app.config after the installation?

Please post the content of your app.config here - you will find it in your installation folder.

Ciao
Michael


the mystery continous, i don't seem to have an app.config anywhere on my comp. Should i try another reinstall?

edit: reinstall yielded no app.config


MichaelWagner42
Joined: 12.09.2009

Sorry,
the file name is Elephant.exe.config - app.config is a developer name for it.


ah hehe edited at the same time as your post, here it is:

<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<configSections>
<section name="hibernate-configuration" type="NHibernate.Cfg.ConfigurationSectionHandler, NHibernate" />
<sectionGroup name="userSettings" type="System.Configuration.UserSettingsGroup, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" >
<section name="PokerSuite.Properties.Settings" type="System.Configuration.ClientSettingsSection, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" allowExeDefinition="MachineToLocalUser" requirePermission="false" />
</sectionGroup>
</configSections>
<userSettings>
<PokerSuite.Properties.Settings>
<setting name="LocationX" serializeAs="String">
<value>-1</value>
</setting>
<setting name="LocationY" serializeAs="String">
<value>-1</value>
</setting>
<setting name="FormWidth" serializeAs="String">
<value>1024</value>
</setting>
<setting name="FormHeight" serializeAs="String">
<value>768</value>
</setting>
<setting name="Language" serializeAs="String">
<value>en</value>
</setting>
<setting name="CheckForUpdate" serializeAs="String">
<value>False</value>
</setting>
<setting name="LastReminder" serializeAs="String">
<value>0</value>
</setting>
<setting name="HandSorting" serializeAs="String">
<value>random1</value>
</setting>
</PokerSuite.Properties.Settings>
</userSettings>
<hibernate-configuration xmlns="urn:nhibernate-configuration-2.2" >
<session-factory name="NHibernate.Test">
<property name="connection.provider">NHibernate.Connection.DriverConnectionProvider</property>
<property name="connection.driver_class">NHibernate.Driver.NpgsqlDriver</property>
<property name="connection.connection_string">Server=localhost;User ID=elephantdb;Password=elephantdb;Database=elephantdb</property>
<property name="dialect">NHibernate.Dialect.PostgreSQLDialect</property>
<property name="proxyfactory.factory_class">NHibernate.ByteCode.LinFu.ProxyFactoryFactory, NHibernate.ByteCode.LinFu</property>
<property name="show_sql">false</property>
<property name="adonet.batch_size">100</property>
<!--<property name="hbm2ddl.auto">update</property>-->
</session-factory>
</hibernate-configuration>
</configuration>


i tried the 0.67 release and it seems to work!


MichaelWagner42
Joined: 12.09.2009

Hi,

You should at least use version 0.69 - version 0.67 is very old and contains a lot more bugs than the 0.67.

Ciao
Michael


Hi,

I encountered a similar issue with v0.76.
After a fresh install of 0.76.697.1428 Elephant started to hang during hand import.
Restarts an re-installs didn't help.

In the logs I found the same exception as reported here, about hibernate.cfg.xml file missing.
Thanks to the information in this thread I copied Elephant.exe.config renaming it to hibernate.cfg.xml (which was in fact missing).
I corrected <property name="connection.connection_string">...</property> to reflect my db user and password and hand import started working.

Also I updated to 0.76.718.1449 and it is still OK :)


MichaelWagner42
Joined: 12.09.2009

Hi,

Are you using PartyPoker? There was a parser bug related to the latest PartyPoker update. This will be fixed in the upcoming 0.78 release which will be published today or tomorrow in our blog.

Please try your import with this version.

Ciao
Michael