hiramvillarreal / iotpos

IotPOS, an open source Point of Sale software.
GNU General Public License v2.0
145 stars 77 forks source link

Program freeze #9

Closed ocaman closed 5 years ago

ocaman commented 6 years ago

Hi, when i click quickly a product after 5 o six times, the program freeze and dont response anymore, i cant finalize the program too on ther task manager.

thanks.

hiramvillarreal commented 6 years ago

Hello, thanks for the input, do you mean the picture preview?

ocaman commented 6 years ago

hi, sometimes on the picture preview, sometimes when adding products, sometimes suddenly. I think that would be some problem when accesing to database. I'll try your SD image and i'll be back to comment. Saludos.

hiramvillarreal commented 6 years ago

Plase do, I try clicking fast and not had any freeze on my setup.

Shaggs commented 6 years ago

@ocaman are you still having this issue? Is it the whole PI that freezes or just the program?

if its just the program may i suggest a new cone followed by new build now some more changes have been made it may help

ocaman commented 6 years ago

@Shaggs I just download the SD image V2 and no problem.

The sd image had items added, now, how can i reset all the data and start again from zero? i mean, no products, tickets, etc. thanks.

Shaggs commented 6 years ago

@ocaman I've never used the as image I build from source. @hiramvillarreal I'm sure could help.. A possibly would be using PHP myadmin to remove unwanted data but use with caution

hiramvillarreal commented 6 years ago

Hello, you can drop the entire database, just enter to mysql command:

mysql> drop database iotposdb;

then in command prompt recreate an blank database with:

cd ~/iotpos/database_resources cat iotpos_mysql.sql | mysql -u root -p

or restore the database with these commands it only contain 5 products:

cd ~/iotpos/database_resources sudo mysql -u root -p iotposdb < iotposdb.sql

Shaggs commented 5 years ago

with no further comments this shall be closed if needed please re-open