antony@cubase:~/wayforth/hbros/work/src/fix_order_window$ autodia -d
lib/Humpos/ -r
getting handlers..
getting pattern for perl
using directory : lib/Humpos/
recursively searching files..
AutoDia - version 2.03(c) Copyright 2003 A Trevena
using language : perl
..using Autodia::Handler::Perl
opening lib/Humpos/StatsHandler.pm
opening lib/Humpos/Branch.pm
opening lib/Humpos/UserInterface.pm
opening lib/Humpos/Logger.pm
opening lib/Humpos/PrintoutHandler.pm
opening lib/Humpos/Init.pm
opening lib/Humpos/Till.pm
opening lib/Humpos/Info.pm
opening lib/Humpos/OrderEntrySession.pm
opening lib/Humpos/UserInterface/MiddleRow.pm
opening lib/Humpos/UserInterface/LeftColumn.pm
opening lib/Humpos/UserInterface/SplitOrderDialog.pm
opening lib/Humpos/UserInterface/WhereEatingWidget.pm
opening lib/Humpos/UserInterface/PasswordEntry.pm
opening lib/Humpos/UserInterface/OpenOrdersWindow.pm
opening lib/Humpos/UserInterface/LoginWidget.pm
opening lib/Humpos/UserInterface/MainWindow.pm
opening lib/Humpos/UserInterface/ListBox.pm
opening lib/Humpos/UserInterface/RightColumn.pm
opening lib/Humpos/UserInterface/SelectionPane.pm
opening lib/Humpos/UserInterface/RootWindow.pm
opening lib/Humpos/UserInterface/TextEntryField.pm
opening lib/Humpos/UserInterface/CustomDialog.pm
opening lib/Humpos/UserInterface/Header.pm
opening lib/Humpos/UserInterface/Window.pm
opening lib/Humpos/UserInterface/ModeWidget.pm
opening lib/Humpos/UserInterface/LoginWindow.pm
opening lib/Humpos/UserInterface/TextEditor.pm
opening lib/Humpos/UserInterface/Label.pm
opening lib/Humpos/UserInterface/ChangeWindow.pm
opening lib/Humpos/UserInterface/Footer.pm
opening lib/Humpos/UserInterface/Widget.pm
opening lib/Humpos/UserInterface/Dialog.pm
opening lib/Humpos/UserInterface/ReceiptTotalWindow.pm
opening lib/Humpos/UserInterface/DiscountSelectDialog.pm
opening lib/Humpos/UserInterface/CurrentDishWindow.pm
opening lib/Humpos/UserInterface/SettleBillDialog.pm
opening lib/Humpos/UserInterface/PriceListWidget.pm
opening lib/Humpos/UserInterface/DropDown.pm
opening lib/Humpos/UserInterface/MenuWindow.pm
opening lib/Humpos/UserInterface/Button.pm
opening lib/Humpos/UserInterface/TextEntry.pm
opening lib/Humpos/UserInterface/OrderEnteredDialog.pm
opening lib/Humpos/UserInterface/SubtotalWindow.pm
opening lib/Humpos/UserInterface/ButtonBox.pm
opening lib/Humpos/UserInterface/OrderWindow.pm
opening lib/Humpos/UserInterface/CustomizeDishWindow.pm
opening lib/Humpos/UserInterface/Tuple.pm
opening lib/Humpos/UserInterface/Dialog/EatInOrTakeAway.pm
opening lib/Humpos/UserInterface/Button/Discount.pm
opening lib/Humpos/UserInterface/Button/Ok.pm
opening lib/Humpos/UserInterface/Button/Cancel.pm
opening lib/Humpos/UserInterface/Admin/AddDishTypeDialog.pm
opening lib/Humpos/UserInterface/Admin/ModifyVatRateDialog.pm
opening lib/Humpos/UserInterface/Admin/ModifyUserDialog.pm
opening lib/Humpos/UserInterface/Admin/AddXForYDiscountDialog.pm
opening lib/Humpos/UserInterface/Admin/VatOptionsDialog.pm
opening lib/Humpos/UserInterface/Admin/UserOptionsDialog.pm
opening lib/Humpos/UserInterface/Admin/AddEmailRecipientDialog.pm
opening lib/Humpos/UserInterface/Admin/ModifyCustomizationDialog.pm
opening lib/Humpos/UserInterface/Admin/AddCustomizationDialog.pm
opening lib/Humpos/UserInterface/Admin/AdminDialog.pm
opening lib/Humpos/UserInterface/Admin/AddPercentageDiscountDialog.pm
opening lib/Humpos/UserInterface/Admin/ChooseEmailRecipientDialog.pm
opening lib/Humpos/UserInterface/Admin/ChooseXForYDiscountDialog.pm
opening lib/Humpos/UserInterface/Admin/ChooseDishDialog.pm
opening lib/Humpos/UserInterface/Admin/ModifyDishDialog.pm
opening lib/Humpos/UserInterface/Admin/ChooseUserDialog.pm
opening lib/Humpos/UserInterface/Admin/ModifyIngredientDialog.pm
opening lib/Humpos/UserInterface/Admin/AddVatRateDialog.pm
opening lib/Humpos/UserInterface/Admin/ModifyEmailRecipientDialog.pm
opening lib/Humpos/UserInterface/Admin/ChooseIngredientDialog.pm
opening lib/Humpos/UserInterface/Admin/AddDishDialog.pm
opening lib/Humpos/UserInterface/Admin/ChooseVatRateDialog.pm
opening lib/Humpos/UserInterface/Admin/PrinterOptions.pm
opening lib/Humpos/UserInterface/Admin/ChooseDishtypeDialog.pm
opening lib/Humpos/UserInterface/Admin/ChoosePercentageDiscountDialog.pm
opening lib/Humpos/UserInterface/Admin/AddIngredientDialog.pm
opening lib/Humpos/UserInterface/Admin/EmailOptionsDialog.pm
opening lib/Humpos/UserInterface/Admin/ModifyXForYDiscountDialog.pm
opening lib/Humpos/UserInterface/Admin/AssignPrintersDialog.pm
opening lib/Humpos/UserInterface/Admin/MenuOptionsDialog.pm
opening lib/Humpos/UserInterface/Admin/ModifyPercentageDiscountDialog.pm
opening lib/Humpos/UserInterface/Admin/AddUserDialog.pm
opening lib/Humpos/UserInterface/Admin/ModifyDishtypeDialog.pm
opening lib/Humpos/UserInterface/Admin/DiscountOptionsDialog.pm
opening lib/Humpos/UserInterface/Admin/ChooseCustomizationDialog.pm
opening lib/Humpos/UserInterface/Footer/ClockWidget.pm
opening lib/Humpos/UserInterface/MenuWindow/DishLabel.pm
opening lib/Humpos/UserInterface/ChangeWindow/ChangeWidget.pm
opening lib/Humpos/UserInterface/OrderWindow/Line.pm
opening lib/Humpos/UserInterface/Header/UserWidget.pm
opening lib/Humpos/UserInterface/Header/OrderWidget.pm
opening lib/Humpos/UserInterface/Header/TillWidget.pm
opening lib/Humpos/DataStore/Creator.pm
opening lib/Humpos/DataStore/Schema.pm
opening lib/Humpos/DataStore/Schema/ResultSet/Dish.pm
opening lib/Humpos/DataStore/Schema/ResultSet/User.pm
opening lib/Humpos/DataStore/Schema/ResultSet/Order.pm
opening lib/Humpos/DataStore/Schema/ResultSet/Customization.pm
opening lib/Humpos/DataStore/Schema/ResultSet/DishType.pm
opening lib/Humpos/DataStore/Schema/ResultSet/Remittance.pm
opening lib/Humpos/DataStore/Schema/ResultSet/DishesOrders.pm
opening lib/Humpos/DataStore/Schema/ResultSet/Receipt.pm
opening lib/Humpos/DataStore/Schema/ResultSet/Ingredient.pm
opening lib/Humpos/DataStore/Schema/Result/Discount.pm
opening lib/Humpos/DataStore/Schema/Result/Dish.pm
opening lib/Humpos/DataStore/Schema/Result/ReceiptLineCustomization.pm
opening lib/Humpos/DataStore/Schema/Result/IngredientsPriceLists.pm
opening lib/Humpos/DataStore/Schema/Result/DiscountsDishes.pm
opening lib/Humpos/DataStore/Schema/Result/User.pm
opening lib/Humpos/DataStore/Schema/Result/EmailRecipient.pm
opening lib/Humpos/DataStore/Schema/Result/Order.pm
opening lib/Humpos/DataStore/Schema/Result/DishesIngredients.pm
opening lib/Humpos/DataStore/Schema/Result/PriceList.pm
opening lib/Humpos/DataStore/Schema/Result/CustomizationsDishTypes.pm
opening lib/Humpos/DataStore/Schema/Result/Customization.pm
opening lib/Humpos/DataStore/Schema/Result/ReceiptLineIngredient.pm
opening lib/Humpos/DataStore/Schema/Result/DiscountXForY.pm
opening lib/Humpos/DataStore/Schema/Result/DishType.pm
opening lib/Humpos/DataStore/Schema/Result/Remittance.pm
opening lib/Humpos/DataStore/Schema/Result/Restaurant.pm
opening lib/Humpos/DataStore/Schema/Result/VatRate.pm
opening lib/Humpos/DataStore/Schema/Result/CustomizationsPriceLists.pm
opening lib/Humpos/DataStore/Schema/Result/DishesOrders.pm
opening lib/Humpos/DataStore/Schema/Result/CustomizationsIngredients.pm
opening lib/Humpos/DataStore/Schema/Result/DiscountsDishtypes.pm
opening lib/Humpos/DataStore/Schema/Result/CustomizationsDishesOrders.pm
opening lib/Humpos/DataStore/Schema/Result/DiscountPercentage.pm
opening lib/Humpos/DataStore/Schema/Result/Group.pm
opening lib/Humpos/DataStore/Schema/Result/Receipt.pm
opening lib/Humpos/DataStore/Schema/Result/TillOptions.pm
opening lib/Humpos/DataStore/Schema/Result/Ingredient.pm
opening lib/Humpos/DataStore/Schema/Result/UsersGroups.pm
using default (dia) template
Illegal division by zero at /usr/share/perl5/Autodia/Diagram.pm line 1300.
antony@cubase:~/wayforth/hbros/work/src/fix_order_window$
Line 1300 in my install is:
my $child_increment = (ref $self->{_dia_rows}[$depth + 1]) ?
$self->{_dia_widest_row} / (scalar @{$self->{_dia_rows}[$depth + 1]}): 0 ;
I did a Dumper($self->{_dia_rows}) and got
Debug: $VAR1 = [
[
'276',
'27',
'11',
'1249',
'273',
'702',
'253',
'5',
'7',
'1160',
'255',
'410',
'1200',
'462',
'406',
'1204',
'1',
'25',
'303',
'305',
'1196',
'271',
'269',
'13',
'3',
'248',
'9'
],
[
'1261',
'532',
'1218',
'730',
'1186',
'1312',
'1372',
'1296',
'1244',
'1213',
'1335',
'1328',
'1199',
'247',
'1248',
'1190',
'1274',
'1231',
'1293',
'1322',
'1157',
'1325',
'1308',
'1286',
'1203',
'1264',
'1252',
'21',
'1270',
'690',
'1168',
'1267',
'1315',
'1338',
'1164',
'1209',
'1362',
'1182',
'1319',
'1350',
'1290',
'1222',
'1277',
'1194',
'712',
'1341',
'1236',
'635',
'576',
'1347',
'655',
'1365',
'1226',
'1302',
'1344',
'472'
],
[
'565',
'407',
'785',
'846',
'1021',
'611',
'695',
'983',
'853',
'1067',
'1028',
'435',
'859',
'662',
'789',
'894',
'715',
'1104',
'681',
'976',
'1000',
'887',
'460',
'1122',
'1012',
'604',
'1044',
'936',
'991',
'1086',
'1132',
'701',
'481',
'958',
'476',
'547',
'1174',
'949',
'910',
'839',
'762',
'1141',
'506',
'1097',
'623',
'1060',
'597',
'736',
'781'
],
[
'537',
'919',
'822',
'744',
'722',
'649',
'494',
'523',
'670',
'770',
'1036',
'1148',
'490',
'543',
'927'
],
[
'580',
'776',
'448',
'514',
'793',
'809',
'802',
'874'
],
[
'23'
],
[],
[],
[
'291'
],
[
'268',
'0',
'250'
]
];
It's trying to index in ($depth + 1) which is 6 - as you can see, it's
empty.