mayase's picture
Jan 15, 2014
10322 views
Reputation: 50

SambaPOS crashes many times mostly when execute print job or pay (cash or credit card)

[General Info]

 

Application: SambaPOS

Version:     3.0.34 BETA

Region:      en

DB:          CE

Machine:     POS

User:        Owner

Date:        14/01/2014

Time:        19:25

 

User Explanation:

 

Owner said ""

-----------------------------

 

[Exception Info 1]

 

Top-level Exception

Type:        System.InvalidOperationException

Message:     Sequence contains more than one matching element

Source:      System.Core

Stack Trace: at System.Linq.Enumerable.SingleOrDefault[TSource](IEnumerable`1 source, Func`2 predicate)

   at Samba.Services.Implementations.CacheService.FindMenuItemByBarcode(String insertedData)

   at Samba.Modules.PosModule.MenuItemSelectorViewModel.FindMenuItem()

   at Samba.Modules.PosModule.MenuItemSelectorViewModel.OnTypeValueExecute(String obj)

   at Samba.Modules.PosModule.PosViewModel.HandleTextInput(String text)

   at Samba.Modules.PosModule.PosView.UserControl_PreviewTextInput(Object sender, TextCompositionEventArgs e)

   at System.Windows.Input.TextCompositionEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget)

   at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)

   at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)

   at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)

   at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)

   at System.Windows.UIElement.RaiseTrustedEvent(RoutedEventArgs args)

   at System.Windows.UIElement.RaiseEvent(RoutedEventArgs args, Boolean trusted)

   at System.Windows.Input.InputManager.ProcessStagingArea()

   at System.Windows.Input.InputManager.ProcessInput(InputEventArgs input)

   at System.Windows.Input.TextCompositionManager.UnsafeCompleteComposition(TextComposition composition)

   at System.Windows.Input.TextCompositionManager.PostProcessInput(Object sender, ProcessInputEventArgs e)

   at System.Windows.Input.InputManager.RaiseProcessInputEventHandlers(ProcessInputEventHandler postProcessInput, ProcessInputEventArgs processInputEventArgs)

   at System.Windows.Input.InputManager.ProcessStagingArea()

   at System.Windows.Input.InputManager.ProcessInput(InputEventArgs input)

   at System.Windows.Input.TextCompositionManager.UnsafeStartComposition(TextComposition composition)

   at System.Windows.Input.TextCompositionManager.PostProcessInput(Object sender, ProcessInputEventArgs e)

   at System.Windows.Input.InputManager.RaiseProcessInputEventHandlers(ProcessInputEventHandler postProcessInput, ProcessInputEventArgs processInputEventArgs)

   at System.Windows.Input.InputManager.ProcessStagingArea()

   at System.Windows.Input.InputManager.ProcessInput(InputEventArgs input)

   at System.Windows.Input.InputProviderSite.ReportInput(InputReport inputReport)

   at System.Windows.Interop.HwndKeyboardInputProvider.ProcessTextInputAction(IntPtr hwnd, WindowMessage msg, IntPtr wParam, IntPtr lParam, Boolean& handled)

   at System.Windows.Interop.HwndSource.OnPreprocessMessage(Object param)

   at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)

   at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)

   at System.Windows.Threading.Dispatcher.InvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs)

   at System.Windows.Interop.HwndSource.OnPreprocessMessageThunk(MSG& msg, Boolean& handled)

   at System.Windows.Interop.HwndSource.WeakEventPreprocessMessage.OnPreprocessMessage(MSG& msg, Boolean& handled)

   at System.Windows.Interop.ThreadMessageEventHandler.Invoke(MSG& msg, Boolean& handled)

   at System.Windows.Interop.ComponentDispatcherThread.RaiseThreadMessage(MSG& msg)

   at System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame)

   at System.Windows.Threading.Dispatcher.PushFrame(DispatcherFrame frame)

   at System.Windows.Application.RunDispatcher(Object ignore)

   at System.Windows.Application.RunInternal(Window window)

   at System.Windows.Application.Run(Window window)

   at Samba.Presentation.App.Main()

 

-----------------------------

 

[Assembly Info]

 

Samba.Services, Version=1.0.0.0

mscorlib, Version=4.0.0.0

PresentationCore, Version=4.0.0.0

Microsoft.Practices.Prism, Version=4.0.0.0

WindowsBase, Version=4.0.0.0

Samba.Infrastructure.Data, Version=1.0.0.0

PresentationFramework, Version=4.0.0.0

System.Xaml, Version=4.0.0.0

Samba.Presentation.Services, Version=1.0.0.0

System, Version=4.0.0.0

Samba.Infrastructure, Version=1.0.0.0

FluentValidation, Version=3.4.0.0

Samba.Domain, Version=1.0.0.0

Stateless, Version=1.0.0.0

System.Core, Version=4.0.0.0

System.Drawing, Version=4.0.0.0

System.Windows.Forms, Version=4.0.0.0

System.ComponentModel.Composition, Version=4.0.0.0

Samba.Localization, Version=1.0.0.0

Microsoft.CSharp, Version=4.0.0.0

Microsoft.Practices.ServiceLocation, Version=1.0.0.0

Samba.Persistance, Version=1.0.0.0

Microsoft.Practices.Prism.MefExtensions, Version=4.0.0.0

PropertyTools, Version=2012.4.14.1

 

-----------------------------

 

[System Info]

 

Operating System

-Microsoft Windows XP Professional

--CodeSet = 1252

--CSDVersion = Service Pack 3

--CurrentTimeZone = 120

--FreePhysicalMemory = 515236

--OSLanguage = 1033

--ServicePackMajorVersion = 3

--ServicePackMinorVersion = 0

--Version = 5.1.2600

 

Machine

-POS

--Manufacturer = IBM CORPORATION

--Model = 4852E66

--TotalPhysicalMemory = 1062318080

--UserName = POS\Owner

 

-----------------------------

 

######################### E N D #########################

7 answers

emreeren's picture
emreeren
Jan 15, 2014
Reputation: 595

It seems you configured same barcode for multiple products.

mayase's picture
mayase
Jan 15, 2014
Reputation: 50

Hi emre, Im not using any barcodes on my system, but i will double check just in case

mayase's picture
mayase
Jan 15, 2014
Reputation: 50

i went through all of my products and didnt find any barcode definition in the "add product" screen, should i look in other places?

is there a way to execute sql command to find any barcode values in my SambaPOS3.sdf file? (im using "SQL Compact Query Analyzer" software)

emreeren's picture
emreeren
Jan 15, 2014
Reputation: 595

If you are not using barcode at all you can run this sql script to reset all possible barcode values.

update MenuItems set Barcode = null

PS: Don't forget backup.

 

mayase's picture
mayase
Jan 17, 2014
Reputation: 50

i executed your sql command and so far not even 1 crash :)

right before that i looked into the MenuItems in my SambaPOS.sdf (in sql analyzer) to see what was realy written: most of the products barcodes were NULL, and few of them were just empty (not even spaces - just empty)

i think the situation here was when i inserted all my products to sambapos and by mistaken wrote something in the barcode field - then i deleted it and moved on - it doesnt switch back to NULL

anyway, works like a charm, thank you Emre :) 

emreeren's picture
emreeren
Jan 17, 2014
Reputation: 595

Yes great catch! I'll correct that issue on future updates. Thank you.

chesiito's picture
chesiito
Nov 13, 2017
Reputation: 2

hi i have this error

-----------------------------

[General Info]

 

Application: SambaPOS

Version:     3.0.35 BETA

Region:      es

DB:          SQ

Machine:     MUSIC-PC

User:        Music

Date:        13/11/2017

Time:        08:25 p.m.

 

User Explanation:

 

Music said ""

-----------------------------

 

[Exception Info 1]

 

Top-level Exception

Type:        System.Exception

Message:     Inventory calculation generated an error. Check your recipes.

Source:

 

-----------------------------

 

[Exception Info 2]

 

Top-level Exception

Type:        System.InvalidOperationException

Message:     Sequence contains more than one matching element

Source:      System.Core

Stack Trace: at System.Linq.Enumerable.SingleOrDefault[TSource](IEnumerable`1 source, Func`2 predicate)

   at Samba.Domain.Models.Inventory.WarehouseConsumption.UpdateFinalCost(Recipe recipe)

   at System.Collections.Generic.List`1.ForEach(Action`1 action)

   at Samba.Domain.Models.Inventory.WarehouseConsumption.UpdateFinalCost(IEnumerable`1 recipes)

   at Samba.Domain.Models.Inventory.PeriodicConsumption.UpdateFinalCost(IList`1 recipes, Int32 warehouseId)

   at Samba.Presentation.Services.Implementations.InventoryModule.InventoryService.CalculateCost(PeriodicConsumption pc, WorkPeriod workPeriod)

   at Samba.Presentation.Services.Implementations.InventoryModule.InventoryService.CreateNewPeriodicConsumption(Boolean filter)

   at Samba.Presentation.Services.Implementations.InventoryModule.InventoryService.GetCurrentPeriodicConsumption()

   at Samba.Modules.InventoryModule.WarehouseInventoryViewModel.UpdateSelectedWarehouse(Int32 warehouseId)

   at Samba.Modules.InventoryModule.WarehouseInventoryViewModel.Refresh(Int32 warehouseId)

   at Samba.Modules.InventoryModule.InventoryModule.OnNavigate(String obj)

 

-----------------------------

 

[Assembly Info]

 

Samba.Services, Version=1.0.0.0

mscorlib, Version=4.0.0.0

PresentationCore, Version=4.0.0.0

Microsoft.Practices.Prism, Version=4.0.0.0

WindowsBase, Version=4.0.0.0

Samba.Infrastructure.Data, Version=1.0.0.0

PresentationFramework, Version=4.0.0.0

System.Xaml, Version=4.0.0.0

Samba.Presentation.Services, Version=1.0.0.0

System, Version=4.0.0.0

Samba.Infrastructure, Version=1.0.0.0

FluentValidation, Version=3.4.0.0

Samba.Domain, Version=1.0.0.0

Stateless, Version=1.0.0.0

System.Core, Version=4.0.0.0

System.Drawing, Version=4.0.0.0

System.Windows.Forms, Version=4.0.0.0

System.ComponentModel.Composition, Version=4.0.0.0

Samba.Localization, Version=1.0.0.0

Microsoft.CSharp, Version=4.0.0.0

Microsoft.Practices.ServiceLocation, Version=1.0.0.0

Samba.Persistance, Version=1.0.0.0

Microsoft.Practices.Prism.MefExtensions, Version=4.0.0.0

PropertyTools, Version=2012.4.14.1

 

-----------------------------

 

[System Info]

 

Operating System

-Microsoft Windows 7 Ultimate

--CodeSet = 1252

--CSDVersion = Service Pack 1

--CurrentTimeZone = -420

--FreePhysicalMemory = 5967956

--OSArchitecture = 64 bits

--OSLanguage = 3082

--ServicePackMajorVersion = 1

--ServicePackMinorVersion = 0

--Version = 6.1.7601

 

Machine

-MUSIC-PC

--Manufacturer = Gigabyte Technology Co., Ltd.

--Model = B85M-DS3H-A

--TotalPhysicalMemory = 8485011456

--UserName = Music-PC\Music

 

-----------------------------

 

 

We have already answers to
1030 questions
E-Posta Facebook Twitter RSS Skype
Telefon (212) 252 0634