larsiusprime / crashdumper

A cross-platform automated crash report generator/sender for Haxe/OpenFL apps.
MIT License
113 stars 33 forks source link

linux support! ugly, but works #3

Closed misterpah closed 10 years ago

misterpah commented 10 years ago

some PC have hybrid graphics card, the script shows all the cards. if CPU is quad core, it only show the first core.

larsiusprime commented 10 years ago

Nicely done! What distribution did you test with? Also can you post an example of the output? Once I see what it looks like I'll accept the PR.

misterpah commented 10 years ago

tested with ubuntu 14.04 LTS i686

hehe.. i'll remove trace now

misterpah commented 10 years ago

screenshot from 2014-06-04 01 04 54

is this ok ?

larsiusprime commented 10 years ago

Very nice! If you could post that here in the comments as plaintext, I can add it to the example output in the readme.

misterpah commented 10 years ago
SystemData
{
  OS :  Ubuntu 14.04 LTS (i686)
  RAM: 4022044 KB (3.84 GB)
  CPU: Intel(R) Core(TM) i3-2310M CPU @ 2.10GHz
  GPU:  Intel Corporation 2nd Generation Core Processor Family Integrated Graphics Controller (rev 09)
 Advanced Micro Devices, Inc. [AMD/ATI] Whistler [Radeon HD 6630M/6650M/6750M/7670M/7690M] (rev ff)
, driver v. 
}
--------------------------------------
filename:   Example
package:    crashdumper.example
version:    1.0.0
session ID: example_app_2014-06-04_01'04'46
started:    2014-06-04 01:04:46
--------------------------------------
crashed:    2014-06-04 01:04:47
error:      Null Object Reference
stack:
*._Function_1_1 (openfl/display/Stage.hx line 120)
Main.onClick (Main.hx line 57)
openfl.events.Listener.dispatchEvent (openfl/events/EventDispatcher.hx line 268)
openfl.events.EventDispatcher.dispatchEvent (openfl/events/EventDispatcher.hx line 98)
openfl.display.DisplayObject.__dispatchEvent (openfl/display/DisplayObject.hx line 194)
openfl.display.DisplayObject.__fireEvent (openfl/display/DisplayObject.hx line 256)
openfl.display.Stage.__onMouse (openfl/display/Stage.hx line 902)
larsiusprime commented 10 years ago

Super thanks!

On Tue, Jun 3, 2014 at 12:19 PM, misterpah notifications@github.com wrote:

SystemData { OS : Ubuntu 14.04 LTS (i686) RAM: 4022044 KB (3.84 GB) CPU: Intel(R) Core(TM) i3-2310M CPU @ 2.10GHz GPU: Intel Corporation 2nd Generation Core Processor Family Integrated Graphics Controller (rev 09) Advanced Micro Devices, Inc. [AMD/ATI] Whistler Radeon HD 6630M/6650M/6750M/7670M/7690M http://rev%20ff , driver v. }

filename: Example package: crashdumper.example version: 1.0.0 session ID: example_app_2014-06-04_01'04'46 started: 2014-06-04 01:04:46

crashed: 2014-06-04 01:04:47 error: Null Object Reference stack: *._Function_1_1 (openfl/display/Stage.hx line 120) Main.onClick (Main.hx line 57) openfl.events.Listener.dispatchEvent (openfl/events/EventDispatcher.hx line 268) openfl.events.EventDispatcher.dispatchEvent (openfl/events/EventDispatcher.hx line 98) openfl.display.DisplayObject.dispatchEvent (openfl/display/DisplayObject.hx line 194) openfl.display.DisplayObject.fireEvent (openfl/display/DisplayObject.hx line 256) openfl.display.Stage.__onMouse (openfl/display/Stage.hx line 902)

— Reply to this email directly or view it on GitHub https://github.com/larsiusprime/crashdumper/pull/3#issuecomment-44993989 .

www.fortressofdoors.com -- Games, Art, Design

misterpah commented 10 years ago

you're welcome! this might be the debugger we've waiting for ! :+1:

larsiusprime commented 10 years ago

If we can't get driver information on the GPU in linux, we might consider removing the ", driver v. " output string just for linux output.

misterpah commented 10 years ago

hmm.. i think no we shouldn't. flgx and mesa works differently hence we might need the driver's name. maybe a bash guru could improve this

larsiusprime commented 10 years ago

Sounds fine. For now maybe just output "unknown" if no version information is there.