richelbilderbeek / djog_unos_2018

Project by the Uno's at DJOG 2018-2019: Nature Zen
GNU General Public License v3.0
6 stars 2 forks source link

Not running on JOG laptop #592

Closed AramPetiet closed 5 years ago

AramPetiet commented 5 years ago

I have tried on 2 laptops and on both the following problem occurs:

image

AramPetiet commented 5 years ago

I suspect it has to do with SFML, but not sure. We worked around by using my laptop instead, but should be addressed.

AramPetiet commented 5 years ago

We have verified it works on other machines with the same latest of development branch

richelbilderbeek commented 5 years ago

std::bad_alloc usually indicates a lack of memory ...

richelbilderbeek commented 5 years ago

I guess the new graphics and sound consume too much memory (for now).

What happens when running in debug mode?

If I am right, the exception is thrown in sfml_resources :grin:

DynCoder commented 5 years ago

I believe appveyor had this issue too, i thought i added a CXX_FLAG for that but last time i checked it was gone. You should try googling for something like: resources_big qt creator

Op za 4 mei 2019 11:56 schreef Richel Bilderbeek notifications@github.com:

I guess the new graphics and sound consume too much memory (for now).

What happens when running in debug mode?

If I am right, the exception is thrown in sfml_resources 😁

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/richelbilderbeek/djog_unos_2018/issues/592#issuecomment-489312862, or mute the thread https://github.com/notifications/unsubscribe-auth/AG7ZHES7EGPZEGZADTCZFKLPTVMUJANCNFSM4HKWUKRQ .

DynCoder commented 5 years ago

Add CONFIG += resources_big into the *.pro file. from https://stackoverflow.com/questions/12231266/qt-compiling-error-out-of-memory-allocating-134-mb-cc1plus-exe-not-found

EDIT: idk if this link work markdown on mobile doesn't quite work

EDIT 2: CONFIG += resources_big is already at the top of the file

Op za 4 mei 2019 12:45 schreef Joshua van Waardenberg < joshuavwaardenberg@gmail.com>:

I believe appveyor had this issue too, i thought i added a CXX_FLAG for that but last time i checked it was gone. You should try googling for something like: resources_big qt creator

Op za 4 mei 2019 11:56 schreef Richel Bilderbeek <notifications@github.com

:

I guess the new graphics and sound consume too much memory (for now).

What happens when running in debug mode?

If I am right, the exception is thrown in sfml_resources 😁

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/richelbilderbeek/djog_unos_2018/issues/592#issuecomment-489312862, or mute the thread https://github.com/notifications/unsubscribe-auth/AG7ZHES7EGPZEGZADTCZFKLPTVMUJANCNFSM4HKWUKRQ .

DynCoder commented 5 years ago

Another solution could be just to copy the resources to the CWD (executable location for the team, parent dir on travis) without using a qrc since sfml is able to use uncompiled resources. You should assign me to if you want me to try this alternative solution.

janderkkotlarski commented 5 years ago

Segfault borked under Linux.

richelbilderbeek commented 5 years ago

I assume this fixed. @janderkkotlarski will work on this today, and create a new Issue if this still happens.