# Crash when selecting 'All changesets since last successful build'

**URL:** https://www.finalbuilder.com/forums/t/crash-when-selecting-all-changesets-since-last-successful-build/5764
**Category:** Bugs
**Created:** [December 19, 2012, 9:25am UTC](https://www.finalbuilder.com/forums/t/crash-when-selecting-all-changesets-since-last-successful-build/5764 "2012-12-19T09:25:48Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![karmasponge](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/k/4491bb/32.png) [@karmasponge](https://www.finalbuilder.com/forums/u/karmasponge)
#### Post date: [December 19, 2012, 9:25am UTC](https://www.finalbuilder.com/forums/t/crash-when-selecting-all-changesets-since-last-successful-build/5764/1 "2012-12-19T09:25:48Z")

</div>

Hi,

I'm using version 1.0.0.1250 and get a crash when selecting&nbsp;'All changesets since last successful build' on the 'Queue Options' dialog when attempting to queue a build.

I'm attempting to perform a build with multiple repositories (though the error still occurs if I disable all but one). If I use the 'Most Recent Changesets' option then I get the message 'No changeset associated with build for repository: looksoftware-trunk-client'

Heres the stack trace:

System.AggregateException: A Task's exception(s) were not observed either by Waiting on the Task or accessing its Exception property. As a result, the unobserved exception was rethrown by the finalizer thread. ---\> NHibernate.Exceptions.GenericADOException: could not update: [Continua.Modules.Builds.Build#15][SQL: UPDATE builds\_build SET BuildNumber = ?, Version = ?, Started = ?, Finished = ?, Queued = ?, Pinned = ?, PinComment = ?, Priority = ?, SummaryState = ?, BuildSuccess = ?, OnlyNotifyTriggeringUsers = ?, QuietPeriodLength = ?, QuietPeriodExpiry = ?, TimeOnQueue = ?, IsFeatureBranchBuild = ?, UsesDefaultBranch = ?, CleanedUp = ?, HasNewChanges = ?, Branches = ?, ConfigurationVersionId = ?, ConfigurationId = ?, WorkspaceId = ?, UserId = ?, PinUserId = ?, TriggerId = ?, VariableNamespaceId = ?, StatusId = ? WHERE Id = ?] ---\> Npgsql.NpgsqlException: ERROR: 22001: value too long for type character varying(1024)&nbsp;  
at Npgsql.NpgsqlState.d\_\_a.MoveNext()&nbsp;  
at Npgsql.ForwardsOnlyDataReader.GetNextResponseObject()&nbsp;  
at Npgsql.ForwardsOnlyDataReader.GetNextRowDescription()&nbsp;  
at Npgsql.ForwardsOnlyDataReader.NextResult()&nbsp;  
at Npgsql.ForwardsOnlyDataReader..ctor(IEnumerable`1 dataEnumeration, CommandBehavior behavior, NpgsqlCommand command, NotificationThreadBlock threadBlock, Boolean synchOnReadError)&nbsp;  
at Npgsql.NpgsqlCommand.GetReader(CommandBehavior cb)&nbsp;  
at Npgsql.NpgsqlCommand.ExecuteNonQuery()&nbsp;  
at NHibernate.AdoNet.AbstractBatcher.ExecuteNonQuery(IDbCommand cmd)&nbsp;  
at NHibernate.AdoNet.NonBatchingBatcher.AddToBatch(IExpectation expectation)&nbsp;  
at NHibernate.Persister.Entity.AbstractEntityPersister.Update(Object id, Object[] fields, Object[] oldFields, Object rowId, Boolean[] includeProperty, Int32 j, Object oldVersion, Object obj, SqlCommandInfo sql, ISessionImplementor session)&nbsp;  
--- End of inner exception stack trace ---&nbsp;  
at NHibernate.Persister.Entity.AbstractEntityPersister.Update(Object id, Object[] fields, Object[] oldFields, Object rowId, Boolean[] includeProperty, Int32 j, Object oldVersion, Object obj, SqlCommandInfo sql, ISessionImplementor session)&nbsp;  
at NHibernate.Persister.Entity.AbstractEntityPersister.UpdateOrInsert(Object id, Object[] fields, Object[] oldFields, Object rowId, Boolean[] includeProperty, Int32 j, Object oldVersion, Object obj, SqlCommandInfo sql, ISessionImplementor session)&nbsp;  
at NHibernate.Persister.Entity.AbstractEntityPersister.Update(Object id, Object[] fields, Int32[] dirtyFields, Boolean hasDirtyCollection, Object[] oldFields, Object oldVersion, Object obj, Object rowId, ISessionImplementor session)&nbsp;  
at NHibernate.Action.EntityUpdateAction.Execute()&nbsp;  
at NHibernate.Engine.ActionQueue.Execute(IExecutable executable)&nbsp;  
at NHibernate.Engine.ActionQueue.ExecuteActions(IList list)&nbsp;  
at NHibernate.Engine.ActionQueue.ExecuteActions()&nbsp;  
at NHibernate.Event.Default.AbstractFlushingEventListener.PerformExecutions(IEventSource session)&nbsp;  
at NHibernate.Event.Default.DefaultFlushEventListener.OnFlush(FlushEvent event)&nbsp;  
at NHibernate.Impl.SessionImpl.Flush()&nbsp;  
at NHibernate.Transaction.AdoTransaction.Commit()&nbsp;  
at Continua.Shared.Data.Hibernate.NHibernateDatabase.SaveChanges()&nbsp;  
at Continua.Modules.Builds.BuildManager.AssociateChangeSets(Build build, BuildChangesetAssociationOptions associationOptions)&nbsp;  
at Continua.Modules.Builds.BuildManager.AssociateChangeSets(Int32 buidId, BuildChangesetAssociationOptions associationOptions)&nbsp;  
at Continua.Modules.Builds.BuildManager.\<\>c\_\_DisplayClass3a.\<\>c\_\_DisplayClass40.b\_\_36()&nbsp;  
at Continua.Modules.Builds.Repositories.RepositoryMonitor.WaitForRepositoriesToBeChecked(DateTime comparison, IEnumerable`1 repositoryIds, Action onCheckComplete, Action`1 onCheckFailed, Action`1 onWaitingOnRepository)&nbsp;  
at Continua.Modules.Builds.BuildManager.\<\>c\_\_DisplayClass3a.b\_\_33(Object x)&nbsp;  
at System.Threading.Tasks.Task.Execute()&nbsp;  
--- End of inner exception stack trace ---&nbsp;  
at System.Threading.Tasks.TaskExceptionHolder.Finalize()&nbsp;  
---\> (Inner Exception #0) NHibernate.Exceptions.GenericADOException: could not update: [Continua.Modules.Builds.Build#15][SQL: UPDATE builds\_build SET BuildNumber = ?, Version = ?, Started = ?, Finished = ?, Queued = ?, Pinned = ?, PinComment = ?, Priority = ?, SummaryState = ?, BuildSuccess = ?, OnlyNotifyTriggeringUsers = ?, QuietPeriodLength = ?, QuietPeriodExpiry = ?, TimeOnQueue = ?, IsFeatureBranchBuild = ?, UsesDefaultBranch = ?, CleanedUp = ?, HasNewChanges = ?, Branches = ?, ConfigurationVersionId = ?, ConfigurationId = ?, WorkspaceId = ?, UserId = ?, PinUserId = ?, TriggerId = ?, VariableNamespaceId = ?, StatusId = ? WHERE Id = ?] ---\> Npgsql.NpgsqlException: ERROR: 22001: value too long for type character varying(1024)&nbsp;  
at Npgsql.NpgsqlState.d\_\_a.MoveNext()&nbsp;  
at Npgsql.ForwardsOnlyDataReader.GetNextResponseObject()&nbsp;  
at Npgsql.ForwardsOnlyDataReader.GetNextRowDescription()&nbsp;  
at Npgsql.ForwardsOnlyDataReader.NextResult()&nbsp;  
at Npgsql.ForwardsOnlyDataReader..ctor(IEnumerable`1 dataEnumeration, CommandBehavior behavior, NpgsqlCommand command, NotificationThreadBlock threadBlock, Boolean synchOnReadError)&nbsp;  
at Npgsql.NpgsqlCommand.GetReader(CommandBehavior cb)&nbsp;  
at Npgsql.NpgsqlCommand.ExecuteNonQuery()&nbsp;  
at NHibernate.AdoNet.AbstractBatcher.ExecuteNonQuery(IDbCommand cmd)&nbsp;  
at NHibernate.AdoNet.NonBatchingBatcher.AddToBatch(IExpectation expectation)&nbsp;  
at NHibernate.Persister.Entity.AbstractEntityPersister.Update(Object id, Object[] fields, Object[] oldFields, Object rowId, Boolean[] includeProperty, Int32 j, Object oldVersion, Object obj, SqlCommandInfo sql, ISessionImplementor session)&nbsp;  
--- End of inner exception stack trace ---&nbsp;  
at NHibernate.Persister.Entity.AbstractEntityPersister.Update(Object id, Object[] fields, Object[] oldFields, Object rowId, Boolean[] includeProperty, Int32 j, Object oldVersion, Object obj, SqlCommandInfo sql, ISessionImplementor session)&nbsp;  
at NHibernate.Persister.Entity.AbstractEntityPersister.UpdateOrInsert(Object id, Object[] fields, Object[] oldFields, Object rowId, Boolean[] includeProperty, Int32 j, Object oldVersion, Object obj, SqlCommandInfo sql, ISessionImplementor session)&nbsp;  
at NHibernate.Persister.Entity.AbstractEntityPersister.Update(Object id, Object[] fields, Int32[] dirtyFields, Boolean hasDirtyCollection, Object[] oldFields, Object oldVersion, Object obj, Object rowId, ISessionImplementor session)&nbsp;  
at NHibernate.Action.EntityUpdateAction.Execute()&nbsp;  
at NHibernate.Engine.ActionQueue.Execute(IExecutable executable)&nbsp;  
at NHibernate.Engine.ActionQueue.ExecuteActions(IList list)&nbsp;  
at NHibernate.Engine.ActionQueue.ExecuteActions()&nbsp;  
at NHibernate.Event.Default.AbstractFlushingEventListener.PerformExecutions(IEventSource session)&nbsp;  
at NHibernate.Event.Default.DefaultFlushEventListener.OnFlush(FlushEvent event)&nbsp;  
at NHibernate.Impl.SessionImpl.Flush()&nbsp;  
at NHibernate.Transaction.AdoTransaction.Commit()&nbsp;  
at Continua.Shared.Data.Hibernate.NHibernateDatabase.SaveChanges()&nbsp;  
at Continua.Modules.Builds.BuildManager.AssociateChangeSets(Build build, BuildChangesetAssociationOptions associationOptions)&nbsp;  
at Continua.Modules.Builds.BuildManager.AssociateChangeSets(Int32 buidId, BuildChangesetAssociationOptions associationOptions)&nbsp;  
at Continua.Modules.Builds.BuildManager.\<\>c\_\_DisplayClass3a.\<\>c\_\_DisplayClass40.b\_\_36()&nbsp;  
at Continua.Modules.Builds.Repositories.RepositoryMonitor.WaitForRepositoriesToBeChecked(DateTime comparison, IEnumerable`1 repositoryIds, Action onCheckComplete, Action`1 onCheckFailed, Action`1 onWaitingOnRepository)&nbsp;  
at Continua.Modules.Builds.BuildManager.\<\>c\_\_DisplayClass3a.b\_\_33(Object x)&nbsp;  
at System.Threading.Tasks.Task.Execute()\<---

---

<div class="post-metadata">

### Author: ![Vincent](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/vincent/32/938_2.png) [@Vincent](https://www.finalbuilder.com/forums/u/Vincent)
#### Post date: [December 19, 2012, 10:04am UTC](https://www.finalbuilder.com/forums/t/crash-when-selecting-all-changesets-since-last-successful-build/5764/2 "2012-12-19T10:04:30Z")

</div>

I think I may have found the cause. Do you know roughly how many changesets since the last successful build? I suspect it’s the list of branches on the build, the dev who wrote that code forgot to dedupe the list. I’m running a build with that fix now, I’ll post here when it’s uploaded.

---

<div class="post-metadata">

### Author: ![karmasponge](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/k/4491bb/32.png) [@karmasponge](https://www.finalbuilder.com/forums/u/karmasponge)
#### Post date: [December 19, 2012, 10:23am UTC](https://www.finalbuilder.com/forums/t/crash-when-selecting-all-changesets-since-last-successful-build/5764/3 "2012-12-19T10:23:02Z")

</div>

Hi Vincent,

I know there should be at least 6 changesets (in the looksoftware-trunk) since I ran a build yesturday but I only see the latest changeset in the list and no other changes.

There are no changesets in the looksoftware-trunk-client.

NOTE: The 'looksoftware-trunk-client' tree is under the 'looksoftware-trunk' branch. I'm not sure it that's an issue. I was looking for ways to conditionally build the 'looksoftware-trunk-client' tree but only if it had changed.

Thx,

Simon. K

---

<div class="post-metadata">

### Author: ![Vincent](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/vincent/32/938_2.png) [@Vincent](https://www.finalbuilder.com/forums/u/Vincent)
#### Post date: [December 19, 2012, 1:14am UTC](https://www.finalbuilder.com/forums/t/crash-when-selecting-all-changesets-since-last-successful-build/5764/4 "2012-12-19T01:14:19Z")

</div>

Hi Simon

Please try this build (1264):

[32-bit Continua Server Installer](http://downloads.finalbuilder.com/downloads/continua/beta/ContinuaCI.Server.Setup_1.0.0.1264.exe "32-bit Continua Server Installer")

[64-bit Continua Server Installer](http://downloads.finalbuilder.com/downloads/continua/beta/ContinuaCI.Server.Setup_x64_1.0.0.1264.exe "64-bit Continua Server Installer")

---

<div class="post-metadata">

### Author: ![karmasponge](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/k/4491bb/32.png) [@karmasponge](https://www.finalbuilder.com/forums/u/karmasponge)
#### Post date: [December 20, 2012, 12:24pm UTC](https://www.finalbuilder.com/forums/t/crash-when-selecting-all-changesets-since-last-successful-build/5764/5 "2012-12-20T12:24:30Z")

</div>

Hi Vincent,   
  
 That build fixes the crash and now I see all changes (when selecting ‘All changes since last successful build’).   
  
 I’m still confused about this ‘No changeset associated with build for repository:’.   
  
 It would appear that if you have multiple repositories associated with a project then the project will only build if all repositories have changed. Is this correct? I can see no way to get the build going if only one has changed.   
  
 Thanks,   
  
 Simon. K

---

<div class="post-metadata">

### Author: ![Vincent](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/vincent/32/938_2.png) [@Vincent](https://www.finalbuilder.com/forums/u/Vincent)
#### Post date: [December 20, 2012, 8:21am UTC](https://www.finalbuilder.com/forums/t/crash-when-selecting-all-changesets-since-last-successful-build/5764/6 "2012-12-20T08:21:58Z")

</div>

It doesn’t need new changes for every repository, however each repository must have at registered at least one changeset (that’s how we know which version of the source to copy to the build workspace). Not sure why you have a repository with no changes detected, what repository type is it? It might be worth checking if that repository is reporting any errors, failing that, delete the repository and re-create it. Also, is this a completely new install or did you have these repositories defined with an earlier install?
